createTable method
void
createTable(})
Implementation
void createTable(String table, List<String> columns, {List<String> constraints = const [], List<String> options = const []}) {
SpaceBuffer buf = SpaceBuffer();
buf << "CREATE TABLE IF NOT EXISTS";
buf << table;
buf << "(";
buf << columns.join(", ");
if (constraints.isNotEmpty) {
buf << ", ";
buf << constraints.join(", ");
}
buf << ")";
if (options.isNotEmpty) {
buf << options.join(", ");
}
execute(buf.toString());
}