2 ms·
Oh I think I get what you mean. Something like: interface IDatabase { wal: IWAL, transactionManager: ITransactionManager, // etc } And then y
by gavinray 4y ago
Oh I think I get what you mean.
Something like:
interface IDatabase {
wal: IWAL,
transactionManager: ITransactionManager,
// etc
}
And then your application has multiple instances of these "IDatabase" objects, maybe one per physical/logical database file, e.g. ".sqlite3" in the case of SQLite
And at the root of your application, you have something like an:
interface IDatabaseManager {
databases: Set<IDatabase>
transactions: Map<IDatabase, Set<Transaction>>
}