diff options
author | stephan <stephan@noemail.net> | 2022-10-26 11:12:14 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-26 11:12:14 +0000 |
commit | 14ae1a533160e0510f33e408b4f17c66f71e2bd7 (patch) | |
tree | 6f1a69286fa97368392aff509294ca496e18bc32 /ext/wasm/api/sqlite3-api-oo1.js | |
parent | 705d7be62dad956dac8c21856f5e93ee9156eb82 (diff) | |
download | sqlite-14ae1a533160e0510f33e408b4f17c66f71e2bd7.tar.gz sqlite-14ae1a533160e0510f33e408b4f17c66f71e2bd7.zip |
Remove oo1.DB.hasFilename() and getFilename(), as they are unnecessary.
FossilOrigin-Name: 75c546b982024bf2b527c85271111d54158cb010867f6e29fc89e86cc8457cc5
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.js b/ext/wasm/api/sqlite3-api-oo1.js index 20210a03f..05fc40371 100644 --- a/ext/wasm/api/sqlite3-api-oo1.js +++ b/ext/wasm/api/sqlite3-api-oo1.js @@ -515,27 +515,6 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ } }, /** - Similar to the this.filename property but will return a falsy - value for special names like ":memory:". Throws if the DB has - been closed. If passed an argument it then it will return the - filename of the ATTACHEd db with that name, else it assumes a - name of `main`. The argument may be either a JS string or - a pointer to a WASM-allocated C-string. - */ - getFilename: function(dbName='main'){ - return capi.sqlite3_db_filename(affirmDbOpen(this).pointer, dbName); - }, - /** - Returns true if this db instance has a name which resolves to a - file. If the name is "" or starts with ":", it resolves to false. - Note that it is not aware of the peculiarities of URI-style - names and a URI-style name for a ":memory:" db will fool it. - Returns false if this db is closed. - */ - hasFilename: function(){ - return this.filename && ':'!==this.filename[0]; - }, - /** Returns the name of the given 0-based db number, as documented for sqlite3_db_name(). */ |