PostgresBox class
Methods
-
close()
→ Future
-
Closes the underlying connection of this Box. After closing, a Box can no longer be used.
override
-
deleteAll<T>([Type? type])
→ Future
-
Deletes all entities of the specified type from this Box.
override
-
deleteFrom<T>([Type? type])
→ DeleteStep<T>
-
Starts a new delete statement with a condition. SQL equivalent DELETE FROM
override
-
find<T>(dynamic key, [Type? type])
→ Future<T?>
-
Finds an entity of the specified type by primary key.
override
-
insertAll<T>(Iterable<T> entities)
→ Future
-
Inserts all specified entities of the same type in this Box.
inherited
-
keyOf(dynamic entity)
→ dynamic
-
Returns the key of the specified entity.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
select(List<Field> fields)
→ SelectStep
-
Starts a new query selecting the specified fields from the specified type. SQL equivalent SELECT
override
-
selectFrom<T>([Type? type, String? alias])
→ QueryStep<T>
-
Starts a new query selecting all fields from the specified type. SQL: SELECT * FROM
override
-
store<K>(dynamic entity)
→ Future<K>
-
Stores an entity in this Box. The entity is persisted if this Box implementation is persistent.
override
-
storeAll<K>(Iterable entities)
→ Future<List<K>>
-
Stores all specified entities in this Box.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update<T>([Type? type])
→ UpdateStep<T>
-
Starts a new update statement for the specified type from this Box.
override