TableOf<M extends TableModel<E>, E> class

Constructors

TableOf(M creator(AnyMap))

Properties

creator → M Function(AnyMap)
final
defaultExecutor SQLExecutor
latefinal
hashCode int
The hash code for this object.
no setterinherited
primaryKeys List<TableColumn>
latefinal
proto TableProto
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
no setter

Methods

delete({required Where where, Returning? returning, SQLExecutor? executor}) Future<QueryResult>
deleteBy({required Object key, Returning? returning, SQLExecutor? executor}) Future<QueryResult>
xx(key: 1, ...) xx(key: 1,name,...) support union primary key(s)
dump({SQLExecutor? executor}) → void
insert({required List<ColumnValue<Object>> values, Returning? returning, SQLExecutor? executor}) Future<RowData?>
insertAll({required List<List<ColumnValue<Object>>> rows, Returning? returning, SQLExecutor? executor}) Future<List<RowData>>
listColumn<V>({required Object column, Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, int? limit, int? offset, SQLExecutor? executor}) Future<List<V>>
listModel({Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, int? limit, int? offset, SQLExecutor? executor}) Future<List<M>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
oneBy({required Object key, Object? groupBy, Object? having, Object? window, Object? orderBy, SQLExecutor? executor}) Future<M?>
xx(key: 1, ...) xx(key: 1,name,...) support union primary key(s)
oneModel({Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, SQLExecutor? executor}) Future<M?>
oneValue<V>({required Object column, Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, SQLExecutor? executor}) Future<V?>
query({List<Object>? columns, Where? where, Object? groupBy, Object? having, Object? window, Object? orderBy, int? limit, int? offset, SQLExecutor? executor}) Future<QueryResult>
save(M? item, {SQLExecutor? executor}) Future<RowData?>
saveAll(List<M> items, {SQLExecutor? executor}) Future<List<RowData?>>
toString() String
A string representation of this object.
inherited
update({required List<ColumnValue<Object>> values, required Where where, Returning? returning, SQLExecutor? executor}) Future<QueryResult>
updateBy({required Object key, required List<ColumnValue<Object>> values, Returning? returning, SQLExecutor? executor}) Future<QueryResult>
xx(key: 1, ...) xx(key: 1,name,...) support union primary key(s)
upsert({required List<ColumnValue<Object>> values, Returning? returning, SQLExecutor? executor}) Future<RowData?>

Operators

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