sqlite 0.14.0

The package provides an interface to SQLite.
docs.rs failed to build sqlite-0.14.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sqlite-0.36.0

SQLite Version Status

The package provides an interface to SQLite.

Documentation

Example

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 statement.step().unwrap() == sqlite::State::Row {
    println!("id = {}", statement.read::<i64>(0).unwrap());
    println!("name = {}", statement.read::<String>(1).unwrap());
}

Contributing

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