Autocomplete and Snippets
The editor actively helps you write SQL by suggesting names from your database schema, the snippet reference, and Kvery's own directives.
Schema-aware autocomplete
As you type, Kvery suggests the names of the schemas, tables and
columns that the query's connection can see — depending on the database,
system schemas such as information_schema too. The names come in one list,
shorter names first, whatever the context of the cursor; words that are already in
the editor (3 or more characters) follow them. This way you can write correct SQL
quickly without memorising your schema or switching to another tool to look up
column names.
The names are read when the editor opens. While the connection is unavailable, there are no schema suggestions.
Snippet suggestions
The autocomplete offers snippet(''): write the alias of one of your group's
snippets between the quotes, and the reference is replaced
with the snippet's SQL each time the query runs. Snippets are the recommended way
to reuse tested fragments — joins, filter blocks, or directive boilerplate — across
many queries.
Kvery directive suggestions
The editor also suggests Kvery's own directives and column modifiers as completions, so you can discover and insert them without memorising the syntax:
- Directives such as
ON ERROR RETURN,SET HTTPCODE, andON SUCCESS POST '' TO ''/ON ERROR POST '' TO ''. See Directives. - Column modifiers such as
json::,hidden::,selectable::, and more. See Column modifiers. - Helpers:
return();andreturnk();, the HTTP requestsget(''),post(''),put(''),patch(''),delete(''),rpost(''),rput(''),rpatch('')andrdelete(''), and the batch variables$_rawIndexand$_rawLastIndex.
Tips
- Start typing a table name and let autocomplete complete the rest — this avoids typos that cause runtime errors.
- Build a small library of group snippets for the patterns your team uses most.
- Use directive completions to learn the available directives and modifiers.