Skip to main content

Module dialect

Module dialect 

Source
Expand description

SQLRite SQL dialect.

Wraps sqlparser’s SQLiteDialect so we get every SQLite-specific tokenizer/parser quirk (delimited identifiers, NOTNULL operator, LIMIT a, b, MATCH/REGEXP infix, …) and overrides only what we need for SQLRite’s vector extensions:

  • supports_create_index_with_clause = true — lets the parser accept CREATE INDEX … USING hnsw (col) WITH (metric = 'cosine'). sqlparser’s SQLiteDialect returns false from this method, so the WITH clause would otherwise be parked in index_options (or error). The PostgreSQL dialect already turns it on; we copy that behaviour here without taking the rest of the pgsql parser divergences.

Add new dialect overrides here as the surface grows; everything not explicitly listed defers to the base SQLite dialect.

Structs§

SqlriteDialect