Useful documentation for gsqlpad CLI usages.
some available commands.
add a new SQLPad instance configuration.
In your terminal, execute:
gsqlpad configure \
--instance-name myinstance \
--user myuser@domain.com \
--password PASS_HERE \
--instance localhost:3000Post executed, the following result must be displayed.
root $ gsqlpad configure --instance-name myinstance --user myuser@domain.com --password PASS_HERE --instance localhost:3000
🔘 Validating specified instance
🔘 Validating provided credentials
✅ Instance configured successfully!And then, the configuration will be available at $HOME/.gsqlpad/config JSON file.
In the same way that it's possible configure instances manually via configure command, it's too possible import a configuration,
the file should follow the following JSON schema.
/config.json
{
"instances": [
{
"name": "string",
"user": "string",
"password": "string",
"uri": "string"
}
]
}gsqlpad import-config --config-file=config.jsongsqlpad import-config --config-file=config.json
🔘 Validating config file
✅ Configuration imported successfully.And then, the content of config file at $ROOT/.gsqlpad/config.json will be replaced by the specified config file.
Open a query terminal to a specific instance.
gsqlpad query --instance=myinstance
✅ Connected successfully to localhost:3000
> SELECT * FROM test.test;
+-----------+-------------+----------+
| id | name | age |
+-----------+-------------+----------+