moor.sqlite_keywords library Null safety

Provides utilities around sql keywords, like optional escaping etc.

Constants

sqliteKeywords → const Set<String>
Contains a set of all sqlite keywords, according to https://www.sqlite.org/lang_keywords.html. Moor will use this list to escape keywords.
{'ADD', 'ABORT', 'ACTION', 'AFTER', 'ALL', 'ALTER', 'ALWAYS', 'ANALYZE', 'AND', 'AS', 'ASC', 'ATTACH', &…

Functions

escapeIfNeeded(String s) 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.