SQLite Version Status

The package provides an interface to SQLite.

Documentation

Example

```rust let connection = sqlite::open(":memory:").unwrap();

connection.execute(" CREATE TABLE users (id INTEGER, name VARCHAR(255)); INSERT INTO users (id, name) VALUES (1, 'Alice'); ").unwrap();

connection.process("SELECT * FROM users", |pairs| { for &(column, value) in pairs.iter() { println!("{} = {}", column, value.unwrap()); } true }).unwrap();

let mut statement = connection.prepare("SELECT * FROM users").unwrap(); while let sqlite::State::Row = statement.step().unwrap() { println!("id = {}", statement.read::(0).unwrap()); println!("name = {}", statement.read::(1).unwrap()); } ```

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Open a pull request.