createTable method

Future<bool> createTable()

Implementation

Future<bool> createTable() async {
  if (!initialized) throw ArgumentError(C_MUST_INIT);
  String sql = sqlCommands.createTable();
  print(sql);
  try {
    await transaction.getConnection().query(sql, FieldData.wee(table_id));
  } on SqlException catch (e) {
    throw SqlException(e.sqlExceptionEnum,
        cause: e.cause,
        sql: sql,
        json: smd.getTableByName(tableName)!.toJson());
  }
  return true;
}