markOpened method
void
markOpened(
- Database db
Tracks the db
. The path
argument can be used to track the path
of that database, if it's bound to a file.
Implementation
void markOpened(Database db) {
final ptr = db.handle.address;
try {
_db?.execute('INSERT INTO $_tableName($_ptrColName) VALUES($ptr)');
} catch (_) {
// Handle when the same pointer is inserted twice
// sqlite tends to reuse the same pointer
}
}