View Source Exqlite.Sqlite3 (Exqlite v0.11.8)
The interface to the NIF implementation.
Link to this section Summary
Functions
Get the number of changes recently.
Closes the database and releases any underlying resources.
Disconnect from database and then reopen as an in-memory database based on the serialized binary.
Allow loading native extensions.
Executes an sql script. Multiple stanzas can be passed at once.
Opens a new sqlite database at the Path provided.
Once finished with the prepared statement, call this to release the underlying resources.
Serialize the contents of the database to a binary.
Causes the database connection to free as much memory as it can. This is useful if you are on a memory restricted system.
Link to this section Types
Link to this section Functions
Get the number of changes recently.
Note: If triggers are used, the count may be larger than expected.
Closes the database and releases any underlying resources.
Disconnect from database and then reopen as an in-memory database based on the serialized binary.
Allow loading native extensions.
Executes an sql script. Multiple stanzas can be passed at once.
Opens a new sqlite database at the Path provided.
path
can be ":memory"
to keep the sqlite database in memory.
options
Options
:mode
- use:readwrite
to open the database for reading and writing or:readonly
to open it in read-only mode.:readwrite
will also create the database if it doesn't already exist. Defaults to:readwrite
.
Once finished with the prepared statement, call this to release the underlying resources.
This should be called whenever you are done operating with the prepared statement. If the system has a high load the garbage collector may not clean up the prepared statements in a timely manner and causing higher than normal levels of memory pressure.
If you are operating on limited memory capacity systems, definitely call this.
Serialize the contents of the database to a binary.
Causes the database connection to free as much memory as it can. This is useful if you are on a memory restricted system.
@spec transaction_status(db()) :: {:ok, :idle | :transaction}