Execution

The Libgda's SQL console tool runs is a terminal emulator, and can be launched using the gda-sql-4.0:

gda-sql-4.0 [--help] [-l] [-L] [-C command] [-f commands file] [-o output file] [-p] [connection specification...]

The options are the following ones:

Connections to be opened can be specified on the command line using either defined data sources (the ones listed using the -l option), or using connection strings which have the following format: "[<provider>://][<username>[:<password>]@]<connection_params>". Note that if provided, <username>, <password> and <provider> must be encoded as per RFC 1738.

Connections can also be opened while the tool is running using the .c internal command.

Examples:

[prompt]> gda-sql-4.0 Sales
[prompt]> gda-sql-4.0 Postgresql://username@DB_NAME=mydb SQLite://DB_NAME=fspot Sales