database.location([dbName])
-
dbName
<string> 数据库名称。这可以是'main'
(默认主数据库)或任何其他已添加ATTACH DATABASE
默认值的数据库:'main'
。¥
dbName
<string> Name of the database. This can be'main'
(the default primary database) or any other database that has been added withATTACH DATABASE
Default:'main'
. -
返回:<string> | <null> 数据库文件的位置。使用内存数据库时,此方法返回 null。
¥Returns: <string> | <null> The location of the database file. When using an in-memory database, this method returns null.
此方法是对 sqlite3_db_filename()
的封装
¥This method is a wrapper around sqlite3_db_filename()