registerTable method

void registerTable(
  1. String table,
  2. Iterable<String> columns
)

Registers columns as the schema for table. Tests call this before validateSchema to simulate user-declared tables.

Implementation

void registerTable(String table, Iterable<String> columns) {
  _tables.putIfAbsent(table, () => <String, Map<String, dynamic>>{});
  _schemas[table] = columns.toSet();
}