getSqliteTableSchema function
The CREATE TABLE statement for table (omp's getTableSchema).
Implementation
String getSqliteTableSchema(SqliteDatabase db, String table) {
final row = _getTableMasterRow(db, table);
final sql = row['sql'] as String?;
if (sql == null) {
throw StateError("SQLite schema for table '$table' is unavailable");
}
return sql;
}