Mlocation
Bun

method

sqlite.DatabaseSync.location

dbName?: string
): null | string;
@param dbName

Name of the database. This can be 'main' (the default primary database) or any other database that has been added with ATTACH DATABASE Default: 'main'.

@returns

The location of the database file. When using an in-memory database, this method returns null.