SQLite
The package provides an interface to SQLite.
Documentation
Example
Open a connection, create a table, and insert a couple of rows:
let connection = open.unwrap;
connection.execute.unwrap;
Select a row from the table:
connection.iterate.unwrap;
The same query using a prepared statement:
use State;
let mut statement = connection.prepare.unwrap;
statement.bind.unwrap;
while let Row = statement.next.unwrap
The same query using a cursor, which is a wrapper around a prepared statement:
use Value;
let mut cursor = connection.prepare.unwrap.cursor;
cursor.bind.unwrap;
while let Some = cursor.next.unwrap
Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.