Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 1.67 KB

File metadata and controls

84 lines (57 loc) · 1.67 KB

gsqlpad - docs

Useful documentation for gsqlpad CLI usages.

commands

some available commands.

configure

add a new SQLPad instance configuration.

In your terminal, execute:

gsqlpad configure \
    --instance-name myinstance \
    --user myuser@domain.com \
    --password PASS_HERE \
    --instance localhost:3000

Post 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.

import-config

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.json
gsqlpad 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.

query

Open a query terminal to a specific instance.

gsqlpad query --instance=myinstance

✅ Connected successfully to localhost:3000

> SELECT * FROM test.test;

+-----------+-------------+----------+
|     id    |    name     |   age    |
+-----------+-------------+----------+