MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / sqlx_query

Function sqlx_query

src/driver/sqlx_postgres.rs:305–311  ·  view source on GitHub ↗
(stmt: &Statement)

Source from the content-addressed store, hash-verified

303}
304
305pub(crate) fn sqlx_query(stmt: &Statement) -> sqlx::query::Query<'_, Postgres, SqlxValues> {
306 let values = stmt
307 .values
308 .as_ref()
309 .map_or(Values(Vec::new()), |values| values.clone());
310 sqlx::query_with(&stmt.sql, SqlxValues(values))
311}
312
313pub(crate) async fn set_transaction_config(
314 conn: &mut PoolConnection<Postgres>,

Callers 4

executeMethod · 0.70
query_oneMethod · 0.70
query_allMethod · 0.70
set_transaction_configFunction · 0.70

Calls 2

as_refMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected