build method

Table<Key> build({
  1. bool withoutRowId = false,
})

Implementation

Table<Key> build({bool withoutRowId = false}) {
  final table = Table(name: tableName, columns: columns);

  if (withoutRowId && columns.firstWhereOrNull((col) => col is IntoPrimaryKey) == null) {
    throw sqlliteGenericException("Failed to build table, table has no primary key");
  }

  return Table<Key>(
    name: tableName,
    columns: columns,
    childJoins: [],
    withoutRowId: withoutRowId,
    additionalSql: sqlBuilders.map((f) => f(table)).join("\n"),
  );
}