MCPcopy Create free account
hub / github.com/erans/pgsqlite / execute_cached

Method execute_cached

src/cache/statement_pool.rs:103–111  ·  view source on GitHub ↗

Execute a cached statement with parameters

(
        &self,
        conn: &Connection,
        query: &str,
        params: P,
    )

Source from the content-addressed store, hash-verified

101
102 /// Execute a cached statement with parameters
103 pub fn execute_cached<P: Params>(
104 &self,
105 conn: &Connection,
106 query: &str,
107 params: P,
108 ) -> Result<usize, rusqlite::Error> {
109 let (mut stmt, _metadata) = self.prepare_and_cache(conn, query)?;
110 stmt.execute(params)
111 }
112
113 /// Query with a cached statement
114 pub fn query_cached<P: Params>(

Callers 1

Calls 2

prepare_and_cacheMethod · 0.80
executeMethod · 0.45

Tested by 1