diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-30 20:27:44 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-30 20:28:44 -0400 |
commit | 8095d9138c413f27b26c9ccba2ca2ae9762707f3 (patch) | |
tree | a3b1b125802aa51adf3a60d0d0355c4eed5c0788 /ext/bg/js/database.js | |
parent | 1a8bbf32d580173f5997754f6b36015ae212c9f9 (diff) |
Add isPrepared
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index effa50a6..269ad57e 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -110,6 +110,10 @@ class Database { this.db = null; } + isPrepared() { + return this.db !== null; + } + async purge() { this._validate(); |