anyquery
A tool to query any data source
Synopsis
Anyquery allows you to query any data source by writing SQL queries. It can be extended with plugins
anyquery [database] [query] [flags]
Examples
# Run a one-off queryanyquery -d mydatabase.db -q "SELECT * FROM mytable"
# Open the interactive shellanyquery -d mydatabase.db
# Open a database in memoryanyquery -d ":memory:"
Options
-c, --config string Path to the configuration database --csv Output format as CSV -d, --database string Database to connect to (a path or :memory:) --dev Run the program in developer mode --extension strings Load one or more extensions by specifying their path. Separate multiple extensions with a comma. --format string Output format (pretty, json, csv, plain) -h, --help help for anyquery --in-memory Use an in-memory database --init stringArray Run SQL commands in a file before the query. You can specify multiple files. --json Output format as JSON --language string Alternative language to use --log-file string Log file --log-format string Log format (text, json) (default "text") --log-level string Log level (trace, debug, info, warn, error, off) (default "info") --no-input Do not launch an interactive input --plain Output format as plain text --pql Use the PQL language --prql Use the PRQL language (requires prqlc in PATH) -q, --query string Query to run --read-only Start the server in read-only mode --readonly Start the server in read-only mode
SEE ALSO
- anyquery alias - Manage the aliases
- anyquery completion - Generate the autocompletion script for the specified shell
- anyquery connection - Manage connections to other databases
- anyquery install - Search and install a plugin
- anyquery plugins - Print the plugins installed on the system
- anyquery profiles - Print the profiles installed on the system
- anyquery query - Run a SQL query
- anyquery registry - List the registries where plugins can be downloaded
- anyquery run - Run a SQL query from the community repository
- anyquery server - Lets you connect to anyquery remotely
- anyquery tool - Tools to help you with using anyquery