← 返回命令列表

Linux command

gsql 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect to TigerGraph

gsql

Run query from file

gsql [query.gsql]

Run inline query

gsql -g [graphname] "[GSQL query]"

Specify graph

gsql -g [mygraph]

Run as user

gsql -u [username] -p [password]

说明

GSQL is the query language and shell for TigerGraph, a graph database. It provides SQL-like syntax for graph queries, data loading, and schema management. GSQL supports pattern matching, graph algorithms, and procedural extensions for complex graph analytics.

参数

-g _graph_
Graph name to use.
-u _user_
Username.
-p _password_
Password.
-ip _host_
Server IP address.
--ssl
Use SSL connection.

FAQ

What is the gsql command used for?

GSQL is the query language and shell for TigerGraph, a graph database. It provides SQL-like syntax for graph queries, data loading, and schema management. GSQL supports pattern matching, graph algorithms, and procedural extensions for complex graph analytics.

How do I run a basic gsql example?

Run `gsql` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -g _graph_ do in gsql?

Graph name to use.