Database.file readonly property

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

local sqlite = require "sqlite" -- Create an in-:memory: database local db = sqlite.Database(":memory:") -- Prints ":memory:" print(db.file)