TableSchema class

Represents a schema for a database table.

Constructors

TableSchema.new({required String name, required List<TableColumn> columns, List<Index> indexes = const [], bool isInternalTable = false, bool isVirtual = false, String? module, List<String>? moduleArgs})
Creates a new table schema.
const
TableSchema.virtual({required String name, required String module, List<String> moduleArgs = const [], List<TableColumn> columns = const [], List<Index> indexes = const [], bool isInternalTable = false})
Creates a virtual table schema.
factory

Properties

columns List<TableColumn>
The columns in the table.
final
foreignKeyColumns List<TableColumn>
Gets the foreign key columns for this table.
no setter
hashCode int
The hash code for this object.
no setteroverride
indexes List<Index>
The indexes on the table.
final
isInternalTable bool
Whether this is an internal PocketSync table.
final
isVirtual bool
Whether the table is a virtual table.
final
module String?
The module for the virtual table.
final
moduleArgs List<String>?
The module arguments for the virtual table.
final
name String
The name of the table.
final
primaryKeyColumns List<TableColumn>
Gets the primary key columns for this table.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override