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

Method execute_unprepared

src/driver/sqlx_sqlite.rs:146–154  ·  view source on GitHub ↗
(&self, sql: &str)

Source from the content-addressed store, hash-verified

144 /// Execute an unprepared SQL statement on a SQLite backend
145 #[instrument(level = "trace")]
146 pub async fn execute_unprepared(&self, sql: &str) -> Result<ExecResult, DbErr> {
147 debug_print!("{}", sql);
148
149 let conn = &mut self.pool.acquire().await.map_err(sqlx_conn_acquire_err)?;
150 match conn.execute(sql).await {
151 Ok(res) => Ok(res.into()),
152 Err(err) => Err(sqlx_error_to_exec_err(err)),
153 }
154 }
155
156 /// Get one result from a SQL query. Returns [Option::None] if no match was found
157 #[instrument(level = "trace")]

Callers

nothing calls this directly

Calls 2

sqlx_error_to_exec_errFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected