EasyOrm<TModel, TDef extends ITableDefinition<TModel>> class

Abstract service (or query that is defined) that is used to specify the query in code to then translate it into sql

Constructors

EasyOrm(PostgreSQLExecutionContext connection, TDef tableDefinition)

Properties

connection PostgreSQLExecutionContext
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableDefinition → TDef
final

Methods

deleteRecords(Where where(TDef e)) Future<SqlResponse<int>>
insertRecords(List<TModel> itemsToInsert) Future<SqlResponse<List<TModel>>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runExecute(SqlRequest request) Future<SqlResponse<int>>
runQueryToReturnType<TReturnType>(SqlRequest request, TReturnType fnGetReturnTypeFromRow(Map<String, Map<String, dynamic>> row)) Future<SqlResponse<List<TReturnType>>>
runQueryToTModel(SqlRequest request) Future<SqlResponse<List<TModel>>>
selectQuery({Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?}) Future<SqlResponse<List<TModel>>>
selectQuery1Col<TType1, TType2>(Column<TType1, TModel> col1(TDef e), {Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?}) Future<SqlResponse<List<TType1>>>
selectQuery2Cols<TType1, TType2>(Column<TType1, TModel> col1(TDef e), Column<TType2, TModel> col2(TDef e), {Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?}) Future<SqlResponse<List<Tuple2<TType1, TType2>>>>
selectQuery3Cols<TType1, TType2, TType3>(Column<TType1, TModel> col1(TDef e), Column<TType2, TModel> col2(TDef e), Column<TType3, TModel> col3(TDef e), {Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?}) Future<SqlResponse<List<Tuple3<TType1, TType2, TType3>>>>
toString() String
A string representation of this object.
inherited
updateRecords({required UpdateCustom<TDef> set(TDef e), required Where where(TDef e)}) Future<SqlResponse<List<TModel>>>
Updates records and returns a list of all updated records
updateRecordsNoReturn({required UpdateCustom<TDef> set(TDef e), required Where where(TDef e)}) Future<SqlResponse<int>>
Updates records but doesn't return a list of updated records

Operators

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