Core Concepts
Before you dive in, it helps to understand the handful of building blocks that make up Kvery. Everything else is built on top of these.
Group
A group is your workspace. It is the top-level container that owns:
- Database connections — the credentials Kvery uses to reach your databases.
- Members — the people who can access the group, each with their own permissions.
- Queries — every saved SQL query in the workspace.
- Dashboards — visual layouts built from query results.
- Settings — group name, slow-query and rate-limit thresholds, an IP whitelist, snippets, tags, and the log level (the default for new queries).
You can be a member of multiple groups and switch between them from the group switcher. Each group has its own plan and limits.
Database connection
A connection stores how Kvery reaches one of your databases: its database type (MySQL, PostgreSQL, or MSSQL) and one of two kinds of access:
- Database — Kvery connects to the database server itself, with its host, port and credentials, and optional security: an SSH tunnel, and SSL certificates for PostgreSQL. See Database connections.
- Agent — Kvery sends the statements to the Kvery Agent, a small service you run next to a database that Kvery cannot reach directly. See Agent connections.
Queries are always run against a connection, so you set one up first.
Query
A query is the central object in Kvery. At minimum it is a piece of SQL bound to a connection, but a saved query can also carry:
- A name, tags, and an internal note for organisation.
- Form variables that turn parameters into input fields.
- A layout describing how its results are displayed (table, chart, chart and table, card, or the simple view).
- A share hash that makes it accessible as a link or a REST API endpoint.
- A schedule that runs it automatically and sends the results by e-mail or to a URL.
- A history of its versions (the 100 newest are listed) you can compare and roll back to.
The Editor
The editor is where you write and test SQL. It is a Monaco-based code editor with autocomplete for your schema, snippets, and Kvery's own directives (such as error handling and webhooks). You can open several queries side by side and run them against any connection in the group.
Result layouts
When a query returns rows, Kvery can render them as a table (sortable, searchable, paginated), as a chart (bar, line, mixed, pie, or doughnut), as a chart with the table below it, or — for a result of exactly one row — as a card that lists the columns as label / value pairs, or in the simple view. The chosen layout is saved with the query and reused everywhere it appears, including on dashboards.
Dashboard
A dashboard arranges the results of several queries into a single view. Each tile runs its query on its own and shows the result with its saved layout. Dashboards can be shared by link and cloned.
Board
The board is a lightweight Kanban-style space of each user for organising queries visually; its cards can be queries from any of the user's groups. See Board overview.
With these concepts in mind, the Quick start shows how they fit together end to end.