moor.sqlite_keywords library

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.
const {'ABORT', 'ACTION', 'ADD', 'AFTER', 'ALL', 'ALTER', 'ANALYZE', 'AND', 'AS', 'ASC', 'ATTACH', 'AUTOINCR…

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.