SQL Autocomplete
Autocomplete analyzes your cursor position, the SQL syntax context, referenced tables and aliases, and your database schema to suggest only relevant completions at each point in the query.

How Autocomplete Works
The autocomplete engine analyzes four things:- Your current position in the query
- SQL syntax context (SELECT, FROM, WHERE, etc.)
- Referenced tables and their aliases
- Your database schema (tables, columns, functions)
Triggering Autocomplete
Autocomplete appears automatically as you type (after 1-2 characters, after. for column access, or after keywords like SELECT/FROM/JOIN). Press Escape to dismiss or continue typing to filter suggestions.
Completion Types
SQL Keywords
Keywords are suggested based on SQL syntax context:

| Category | Keywords |
|---|---|
| Statements | SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP |
| Clauses | FROM, WHERE, JOIN, ON, GROUP BY, ORDER BY, HAVING, LIMIT |
| Operators | AND, OR, NOT, IN, LIKE, BETWEEN, IS NULL, EXISTS |
| Joins | INNER JOIN, LEFT JOIN, RIGHT JOIN, CROSS JOIN |
Table Names
Tables are suggested after keywords that expect table references:

Column Names
Columns are suggested based on referenced tables:After Table Alias
Typing an alias followed by. shows that table’s columns:


Functions
SQL functions are suggested in appropriate contexts:| Category | Functions |
|---|---|
| Aggregate | COUNT, SUM, AVG, MAX, MIN |
| String | CONCAT, SUBSTRING, UPPER, LOWER, TRIM |
| Date | NOW, CURRENT_DATE, DATE_FORMAT, DATEADD |
| Math | ROUND, ABS, CEIL, FLOOR |
| Conditional | COALESCE, NULLIF, CASE, IF |


Schema Names
For databases with multiple schemas (PostgreSQL):Context-Aware Suggestions
Suggestions adapt to SQL context: after SELECT, shows columns and aggregate functions; after FROM/JOIN, shows table names; after WHERE, shows columns and operators; after ON (JOIN), shows columns from both tables; after GROUP BY/ORDER BY, shows relevant columns and modifiers.Using Completions
Use arrow keys to navigate,Enter or Tab to accept, Escape to dismiss. Continue typing to filter suggestions; accepted suggestions replace the typed prefix and move the cursor to the end.
