MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / exec_rows_json

Function exec_rows_json

xtask/src/main.rs:3793–3796  ·  view source on GitHub ↗
(db: &mut Pglite, sql: &str)

Source from the content-addressed store, hash-verified

3791}
3792
3793fn exec_rows_json(db: &mut Pglite, sql: &str) -> Result<serde_json::Value> {
3794 let results = db.exec(sql, None)?;
3795 Ok(results_to_json(results))
3796}
3797
3798fn results_to_json(results: Vec<pglite_oxide::Results>) -> serde_json::Value {
3799 serde_json::Value::Array(

Callers 1

Calls 2

results_to_jsonFunction · 0.85
execMethod · 0.80

Tested by

no test coverage detected