mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Format code in doc comments for good measure
This commit is contained in:
parent
f0990c38bf
commit
7574124233
@ -111,10 +111,7 @@
|
||||
//! // Insert a BLOB into the `content` column of `test_table`. Note that the Blob
|
||||
//! // I/O API provides no way of inserting or resizing BLOBs in the DB -- this
|
||||
//! // must be done via SQL.
|
||||
//! db.execute(
|
||||
//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))",
|
||||
//! [],
|
||||
//! )?;
|
||||
//! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?;
|
||||
//!
|
||||
//! // Get the row id off the BLOB we just inserted.
|
||||
//! let rowid = db.last_insert_rowid();
|
||||
@ -162,10 +159,7 @@
|
||||
//! // Insert a blob into the `content` column of `test_table`. Note that the Blob
|
||||
//! // I/O API provides no way of inserting or resizing blobs in the DB -- this
|
||||
//! // must be done via SQL.
|
||||
//! db.execute(
|
||||
//! "INSERT INTO test_table (content) VALUES (ZEROBLOB(10))",
|
||||
//! [],
|
||||
//! )?;
|
||||
//! db.execute("INSERT INTO test_table (content) VALUES (ZEROBLOB(10))", [])?;
|
||||
//! // Get the row id off the blob we just inserted.
|
||||
//! let rowid = db.last_insert_rowid();
|
||||
//! // Open the blob we just inserted for IO.
|
||||
|
@ -43,11 +43,10 @@
|
||||
//! let db = Connection::open_in_memory()?;
|
||||
//! add_regexp_function(&db)?;
|
||||
//!
|
||||
//! let is_match: bool = db.query_row(
|
||||
//! "SELECT regexp('[aeiou]*', 'aaaaeeeiii')",
|
||||
//! [],
|
||||
//! |row| row.get(0),
|
||||
//! )?;
|
||||
//! let is_match: bool =
|
||||
//! db.query_row("SELECT regexp('[aeiou]*', 'aaaaeeeiii')", [], |row| {
|
||||
//! row.get(0)
|
||||
//! })?;
|
||||
//!
|
||||
//! assert!(is_match);
|
||||
//! Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user