Skip to content
t edited this page Sep 13, 2010 · 18 revisions

DB Commands modify/select data in graph store.

Initialize DB

Command

gas db init —db=/var/sampledb

Remove Temporary Files

Command

gas db tmp_clear —db=/var/sampledb

or add —tmp_clear flag when running other command

gas any command —tmp_clear —db=/var/sampledb

Insert edges

Command

gas edge insert —db=/var/sampledb < sample

Select edges

Command

gas edge select 1 —db=/var/sampledb

Result

result: edges: - [1,3] - [1,4] edge_count: 2

Select all edges

Command

gas edge all —db=/var/sampledb

Result

result: edges: - [1,3] - [1,4] - [2,3] - [2,4] - [3,1] - [3,2] - [4,2] - [4,3] edge_count: 8