database property
TSQLConnection?
get
database
Implementation
TSQLConnection? get database => _database;
set
database
(TSQLConnection? aValue)
Implementation
set database(TSQLConnection? aValue) {
if (identical(_database, aValue)) return;
unprepare();
if (_database != null) {
_database!.unRegisterStatement(this);
_database!.removeFreeNotification(this);
}
_database = aValue;
if (_database != null) {
_database!.freeNotification(this);
_database!.registerStatement(this);
if (_database!.transaction != null &&
(transaction == null ||
!identical(transaction!.database, _database))) {
transaction = _database!.transaction;
}
onChangeSQL(this);
}
}