Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2020 16:15
What would you like to do?
Code shared from the Rust Playground
use rusqlite::{Connection, Result};
fn main() -> Result<()> {
let conn = Connection::open("data.sqlite")?;
let name = "";
let stripe_id = None;
"INSERT INTO merchants (name, stripe_id) VALUES (?, ?)",
&[&name, &stripe_id],
.expect("Error inserting merchant into database");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment