Skip to content

Commit

Permalink
change SQLite to DuckDB (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
era127 committed Jun 3, 2024
1 parent d7438c7 commit 6640ff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Connection {
/// stmt.execute(["Joe Smith"])?;
/// }
/// {
/// // This will return the same underlying SQLite statement handle without
/// // This will return the same underlying DuckDB statement handle without
/// // having to prepare it again.
/// let mut stmt = conn.prepare_cached("INSERT INTO People (name) VALUES (?)")?;
/// stmt.execute(["Bob Jones"])?;
Expand All @@ -34,7 +34,7 @@ impl Connection {
/// # Failure
///
/// Will return `Err` if `sql` cannot be converted to a C-compatible string
/// or if the underlying SQLite call fails.
/// or if the underlying DuckDB call fails.
#[inline]
pub fn prepare_cached(&self, sql: &str) -> Result<CachedStatement<'_>> {
self.cache.get(self, sql)
Expand Down Expand Up @@ -135,7 +135,7 @@ impl StatementCache {
// # Failure
//
// Will return `Err` if no cached statement can be found and the underlying
// SQLite prepare call fails.
// DuckDB prepare call fails.
fn get<'conn>(&'conn self, conn: &'conn Connection, sql: &str) -> Result<CachedStatement<'conn>> {
let trimmed = sql.trim();
let mut cache = self.0.borrow_mut();
Expand Down

0 comments on commit 6640ff2

Please sign in to comment.