gsql
from an operating system shell prompt. A user name, password, and a graph name may also be provided on the command line.exit
or quit
at the GSQL prompt: GSQL> EXIT
or GSQL> QUIT
gsql
, but this is not a requirement. Command files are automatically treated as multi-line mode, so BEGIN and END statements are not needed. Command files may be run either from within the GSQL shell by prefixing the filename with an @ symbol: help
command displays a summary of the available GSQL commands:ls
command displays the catalog : all the vertex types, edge types, graphs, queries, jobs, and session parameters which have been defined by the user.file.gsql
from within the GSQL shell.os$ gsql file.gsql
file.gsql
from an operating system shell.os$ gsql 'command_string'
os$ gsql --reset
INT
UINT
FLOAT
DOUBLE
BOOL
STRING
STRING COMPRESS
DATETIME
FIXED_BINARY(
n
)
LIST
: A list is an ordered collection of elements of the same type. []
INT
, UINT
, DOUBLE
, FLOAT
, STRING
, STRING COMPRESS
, DATETIME
, and UDT
<>
to enclose the element type, e.g. LIST<STRING>.
SET
: A set is an unordered collection of unique elements of the same type.()
INT
, UINT
, DOUBLE
, FLOAT
, STRING
, STRING COMPRESS
, DATETIME
, and UDT
. <>
to enclose the element type, e.g. SET<INT>
MAP
: A map is a collection of key-value pairs. It cannot contain duplicate keys and each key maps to one value. INT
, STRING
, STRING COMPRESS
, and DATETIME
INT
, DOUBLE
, STRING
, STRING COMPRESS
, DATETIME
, and UDT
. <>
to enclose the types, with a comma to separate the key and value types, e.g., MAP<INT, DOUBLE>
.STRING
field must be given a size in characters, and the loader will only load the first given number of characters. An INT
or UINT
field can optionally be given a size in bytes.INT
UINT
FLOAT
DOUBLE
DATETIME
BOOL
true
or false
STRING
TYPEDEF TUPLE
statement. Below is an example of a TYPEDEF TUPLE
statement:myTuple
is the name of the UDT. It contains four fields: an 1-byte INT
field named field1
, a 4-byte UINT
field named field2
, a 10-character STRING
field named field3
, and an (8-byte) DOUBLE
field named field4
.