SqfEntityProvider class

Inheritance
  • Object
  • SqfEntityModelBase
  • SqfEntityProvider

Constructors

SqfEntityProvider(SqfEntityModelProvider dbModel, {String? tableName, List<String>? primaryKeyList, String? whereStr, SqfEntityConnection? connection})

Properties

bundledDatabasePath String?
getter/setter pairinherited
databaseName String?
getter/setter pairinherited
databasePath String?
getter/setter pairinherited
databaseTables List<SqfEntityTableBase>?
getter/setter pairinherited
db Future<Database?>
no setter
dbVersion int?
getter/setter pairinherited
formTables List<SqfEntityTableBase>?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
ignoreForFile List<String>?
getter/setter pairinherited
instanceName String?
getter/setter pairinherited
logFunction ↔ LogFunction?
getter/setter pairinherited
modelName String?
getter/setter pairinherited
password String?
getter/setter pairinherited
preSaveAction ↔ PreSaveAction?
Action Execute pre save
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequences List<SqfEntitySequenceBase>?
getter/setter pairinherited

Methods

batchCommit({bool? exclusive, bool? noResult, bool? continueOnError}) Future<List?>
Commits all of the operations in this batch as a single atomic unit
batchRollback() → void
Rollback transaction
batchStart() Future<bool>
Start a batch to commit all of the operations in a batch as a single atomic unit
buildWhereArgs(dynamic o) List?
closeDatabase() Future<void>
delete(QueryParams params) Future<BoolResult>
execDataTable(String pSql, [List? arguments]) Future<List<Map<String, Object?>>>
Run Select Command and return List<Map<String, Object?>> such as datatable
execScalar(String pSql, [List? arguments]) Future
Run Select Command and return first col of first row
execSQL(String pSql, [List? arguments]) Future<BoolResult>
Run sql command with arguments (arguments is optional)
execSQLList(List<String> pSql, {bool? exclusive, bool? noResult, bool? continueOnError}) Future<BoolCommitResult>
Run sql command List
getById(List? ids) Future
getForeignKeys(String tableName) Future<List>
init() → void
inherited
insert<T extends TableBase>(T obj, bool ignoreBatch) Future<int?>
insertOrThrow<T extends TableBase>(T obj, bool ignoreBatch) Future<int?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rawInsert(String pSql, List? params, bool ignoreBatch) Future<int?>
rawInsertAll(String pSql, List? params, {bool? exclusive, bool? noResult, bool? continueOnError}) Future<BoolCommitResult>
saveAll(String pSql, List<TableBase> objList) Future<List<BoolResult>>
sequence(SqfEntitySequenceBase seq, bool increase, {bool reset = false}) Future<int>
toList(QueryParams params) Future<List>
toString() String
A string representation of this object.
inherited
update<T extends TableBase>(T obj) Future<int?>
updateBatch(QueryParams params, Map<String, dynamic> values) Future<BoolResult>
updateOrThrow<T extends TableBase>(T obj) Future<int?>
writeDatabase(ByteData data) Future<void>

Operators

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

Static Properties

get SqfEntityProvider
getter/setter pair
openedBatch Map<String, Batch?>
no setter