mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Replace the newly-removed oo1.DB.getFilename() with DB.dbFilename() with the hope that the distinction from the dbInstance.filename property is clearer.
FossilOrigin-Name: 0b80543d75504c733b73b32f73b96074a4b0cebad64e47032926a3fefee41726
This commit is contained in:
@ -514,6 +514,15 @@ self.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
|
||||
: capi.sqlite3_changes(p);
|
||||
}
|
||||
},
|
||||
/**
|
||||
Similar to the this.filename but returns the
|
||||
sqlite3_db_filename() value for the given database name,
|
||||
defaulting to "main". The argument may be either a JS string
|
||||
or a pointer to a WASM-allocated C-string.
|
||||
*/
|
||||
dbFilename: function(dbName='main'){
|
||||
return capi.sqlite3_db_filename(affirmDbOpen(this).pointer, dbName);
|
||||
},
|
||||
/**
|
||||
Returns the name of the given 0-based db number, as documented
|
||||
for sqlite3_db_name().
|
||||
|
Reference in New Issue
Block a user