sqlite_keywords library

Provides utilities around sql keywords, like optional escaping etc.

Constants

additionalMariaDBKeywords → const Set<String>
A set of keywords that need to be escaped on mariadb and aren't contained in baseKeywords.
additionalPostgresKeywords → const Set<String>
A set of keywords that need to be escaped on postgres and aren't contained in baseKeywords.
additionalSqliteKeywords → const Set<String>
A set of keywords that need to be escaped on sqlite and aren't contained in baseKeywords.
baseKeywords → const Set<String>
A set of SQL keywords.
sqliteKeywords → const Set<String>
Contains a set of all sqlite keywords, according to https://www.sqlite.org/lang_keywords.html. Drift will use this list to escape keywords.

Functions

escapeIfNeeded(String s, [SqlDialect dialect = SqlDialect.sqlite]) String
Escapes s by wrapping it in backticks if it's an sqlite keyword.
isSqliteKeyword(String s) bool
Returns whether s is an sql keyword by comparing it to the sqliteKeywords.