createTable method

Future<void> createTable(
  1. TableInfo<Table, dynamic> table
)

Creates the given table if it doesn't exist

Implementation

Future<void> createTable(TableInfo table) async {
  final context = _createContext();

  if (table is VirtualTableInfo) {
    _writeCreateVirtual(table, context);
  } else {
    _writeCreateTable(table, context);
  }

  return _issueCustomQuery(context.sql, context.boundVariables);
}