Database:close(sql)

Closes the Database.

When garbage collected (for example when going out of scope), Database are automatically closed before destruction. In this case, it's not necessary to call the Database:close() method.

Return value

The function returns no value.
local sqlite = require "sqlite" -- Create an in-:memory: database local db = sqlite.Database(":memory:") db:close()