mirror of
https://github.com/frappe/books.git
synced 2026-09-24 07:15:17 -05:00
incr: get schemaMap on db handler init
This commit is contained in:
@@ -14,6 +14,10 @@ export class DatabaseManager {
|
||||
return this.db !== undefined && this.db.knex !== undefined;
|
||||
}
|
||||
|
||||
getSchemaMap() {
|
||||
return this.db?.schemaMap ?? {};
|
||||
}
|
||||
|
||||
async createNewDatabase(dbPath: string, countryCode?: string) {
|
||||
await this.#unlinkIfExists(dbPath);
|
||||
await this.connectToDatabase(dbPath, countryCode);
|
||||
|
||||
Reference in New Issue
Block a user