Column names can, in theory, be the same as sqlite keywords, so long as they are always surrounded in double-quotes in the generated sql. SqlBuilder from package:sqflite/src/sql_builder.dart already does this, so it might be enough to reimplement all the different compose functions as just calls to their respective SqlBuilder methods, e.g. composeInsert becomes return SqlBuilder.insert(info.table, info.values);.
For reference, here's the error for a column named "when":
Column names can, in theory, be the same as sqlite keywords, so long as they are always surrounded in double-quotes in the generated sql.
SqlBuilder
frompackage:sqflite/src/sql_builder.dart
already does this, so it might be enough to reimplement all the different compose functions as just calls to their respectiveSqlBuilder
methods, e.g.composeInsert
becomesreturn SqlBuilder.insert(info.table, info.values);
.For reference, here's the error for a column named
"when"
:(plus 30 other frames that are just flutter)