Skip to main content

AutoComplete Extension

The autocomplete extension adds support for autocomplete in the CLI client. The extension is shipped by default with the CLI client.

Behavior

For the behavior of the autocomplete extension, see the documentation of the CLI client.

Functions

FunctionDescription
sql_auto_complete(query_string)Attempts autocompletion on the given query_string.

Example

SELECT *
FROM sql_auto_complete('SEL');

Returns:

suggestionsuggestion_start
SELECT0
DELETE0
INSERT0
CALL0
LOAD0
CALL0
ALTER0
BEGIN0
EXPORT0
CREATE0
PREPARE0
EXECUTE0
EXPLAIN0
ROLLBACK0
DESCRIBE0
SUMMARIZE0
CHECKPOINT0
DEALLOCATE0
UPDATE0
DROP0