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

Method execute

src/query/query_handler.rs:47–59  ·  view source on GitHub ↗
(&self, sql: &str)

Source from the content-addressed store, hash-verified

45 }
46
47 async fn execute(&self, sql: &str) -> Result<DbResponse, PgSqliteError> {
48 match self {
49 QueryHandlerImpl::Direct(db) => {
50 db.execute(sql).await
51 },
52 QueryHandlerImpl::Routed(router) => {
53 // For routed queries, we need the session state to determine transaction status
54 let session = SessionState::new("temp".to_string(), "temp".to_string());
55 router.execute_query(sql, &session).await
56 .map_err(|e| PgSqliteError::Protocol(e.to_string()))
57 }
58 }
59 }
60
61 async fn get_schema_type(&self, table: &str, column: &str) -> Result<Option<String>, PgSqliteError> {
62 match self {

Callers 5

execute_fast_pathFunction · 0.45
execute_ddlMethod · 0.45
execute_ddlMethod · 0.45

Calls 1

execute_queryMethod · 0.45

Tested by

no test coverage detected