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(TDef tableDefinition)
Properties
- 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), {PostgreSQLExecutionContext? cn = null}) → Future< SqlResponse< int> > -
insertRecords(
List< TModel> itemsToInsert, {PostgreSQLExecutionContext? cn = null}) → Future<SqlResponse< List< >TModel> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runExecute(
SqlRequest request, PostgreSQLExecutionContext? cn) → Future< SqlResponse< int> > -
runQueryToReturnType<
TReturnType> (SqlRequest request, TReturnType fnGetReturnTypeFromRow(Map< String, Map< row), PostgreSQLExecutionContext? cn) → Future<String, dynamic> >SqlResponse< List< >TReturnType> > -
runQueryToTModel(
SqlRequest request, PostgreSQLExecutionContext? cn) → Future< SqlResponse< List< >TModel> > -
selectQuery(
{Where where(TDef e)?, OrderBy< ITableDefinition> orderBy(TDef e)?, PostgreSQLExecutionContext? cn = null}) → Future<SqlResponse< List< >TModel> > -
selectQuery1Col<
TType1, TType2> (Column< TType1, TModel> col1(TDef e), {Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?, PostgreSQLExecutionContext? cn = null}) → 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)?, PostgreSQLExecutionContext? cn = null}) → 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)?, PostgreSQLExecutionContext? cn}) → Future<SqlResponse< List< >Tuple3< >TType1, TType2, TType3> > -
selectQueryBy<
TType1, TType2> (Column< TType1, TModel> col1(TDef e), Column<TType2, TModel> col2(TDef e), {Where where(TDef e)?, OrderBy<ITableDefinition> orderBy(TDef e)?, PostgreSQLExecutionContext? cn}) → Future<SqlResponse< List< >TType1> > -
toString(
) → String -
A string representation of this object.
inherited
-
updateRecords(
{required UpdateCustom< TDef> set(TDef e), required Where where(TDef e), PostgreSQLExecutionContext? cn = null}) → 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), PostgreSQLExecutionContext? cn = null}) → Future<SqlResponse< int> > - Updates records but doesn't return a list of updated records
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited