Home  Contents

sql:close

Sql Core4 Lua Commands

SYNOPSIS

db:open(filename)

DESCRIPTION

Close a database or query handle.

After closing a handle, it can no longer be used. Any such attempt throws a Lua exception.

When closing a database handle, any of its query handles that was acquired with sql:newquery() becomes unusable. Attempt to use such a query handle throws a Lua exception.

Closing happens automatically on garbage collection. However, this takes an unknown amount of time during which the database file may stay locked.

SEE ALSO