Kontrak-SQLite
The package provides an interface to [Kontrak-SQLite][1].
The Example
Open a connection, create a table, and insert some rows:
let connection = open.unwrap;
connection
.execute
.unwrap;
Select some rows and process them one by one as plain text:
connection
.iterate
.unwrap;
The same query using a prepared statement, which is much more efficient than the previous technique:
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 providing the concept of row and featuring all-at-once binding:
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.