Skip to content

Commit b573f59

Browse files
committed
add close function
1 parent 5f00acd commit b573f59

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/orm.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@ export class SqliteOrm {
546546

547547
//#region misc
548548

549+
/**
550+
* Cleanly close the database.
551+
*/
552+
public close() {
553+
this.db.close();
554+
}
555+
549556
/**
550557
* Should be called when all models are loaded. If backups are enabled a
551558
* backup is created if tables were been modified.

0 commit comments

Comments
 (0)