Database.file readonly

Get the file where the Database is stored on disk as a File, or the string ":memory:" in case of an in-memory Database.

Example

--! luart-extensions import sqlite -- Create an in-:memory: database local db = sqlite.Database(":memory:") -- Prints ":memory:" print(db.file)