INNER CODE UNIT · Rust
query1str
mlin/GenomicSQLite · bindings/rust/src/lib.rs:81
fn query1str<P>(conn: &Connection, sql: &str, params: P) -> Result<String>
where
P: rusqlite::Params,
{
let ans: Result<String> = conn.query_row(sql, params, |row| row.get(0));
ans
}
static START: Once = Once::new();
/// Open a [rusqlite::Connection] for a compressed database with the [ConnectionMethods] available.
///
/// # Arguments
///
/// * `path` - Database filename
/// * `flags` - SQLite open mode flags, as in [rusqlite::Connection::open_with_flags]
/// * `config` - [GenomicSQLite tuning options](https://mlin.github.io/GenomicSQLite/guide/#tuning-options),
/// as JSON keys & values; may be empty `Object::new()` to use defaults