drift.sqlite_keywords library Null safety

Provides utilities around sql keywords, like optional escaping etc.


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.


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.