SqfEntityModel class

Constructors

SqfEntityModel({String? databaseName, List<SqfEntityTable>? databaseTables, String? bundledDatabasePath, String? modelName, List<SqfEntitySequence>? sequences, List<SqfEntityTable>? formTables, String? password, List<String>? ignoreForFile, int? dbVersion, List<SqfEntityField>? defaultColumns, PreSaveAction? preSaveAction, LogFunction? logFunction, String? databasePath})
This class is required for DB MODEL definitions using in /lib/model/model.dart file Simple DB Model definition must be below:
const

Properties

bundledDatabasePath String?
This value is optional. When bundledDatabasePath is empty then EntityBase creats a new database when initializing database
final
databaseName String?
Declare your sqlite database name
final
databasePath String?
This value is optional. When databasePath is empty then EntityBase uses the path from sqflite.getDatabasesPath()
final
databaseTables List<SqfEntityTable>?
Add tables that you defined as SqfEntityTable const into
final
dbVersion int?
You can specify the version of the database
final
defaultColumns List<SqfEntityField>?
Indicates columns that will be added to all tables by default
final
formTables List<SqfEntityTable>?
Add tables that you want to generate its add/update forms and list views (Optional)
final
hashCode int
The hash code for this object.
no setterinherited
ignoreForFile List<String>?
You can specify the names of rules to be ignored which are specified in analysis_options.yaml file.
final
logFunction LogFunction?
Log events on failure of insert/update operation
final
modelName String?
Specify a name of DB Model collection (Optional)
final
password String?
Password for SQLite encryption (Optional)
final
preSaveAction PreSaveAction?
Action Execute pre save. (Perform actions before each insert/update)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequences List<SqfEntitySequence>?
Add sequences that you defined as SqfEntitySequence const into
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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