Run the `SQL` string using the provided `WasmInstance` and `ModuleDef` The query will always be executed on the module's thread.
(
instance: &mut RefInstance<I>,
db: Arc<RelationalDB>,
sql_text: String,
auth: AuthCtx,
subs: Option<ModuleSubscriptions>,
head: &mut Vec<(RawIdentifier, AlgebraicType)>,
)
| 67 | /// |
| 68 | /// The query will always be executed on the module's thread. |
| 69 | pub(crate) fn run_with_instance<I: WasmInstance>( |
| 70 | instance: &mut RefInstance<I>, |
| 71 | db: Arc<RelationalDB>, |
| 72 | sql_text: String, |
| 73 | auth: AuthCtx, |
| 74 | subs: Option<ModuleSubscriptions>, |
| 75 | head: &mut Vec<(RawIdentifier, AlgebraicType)>, |
| 76 | ) -> Result<(SqlResult, bool), DBError> { |
| 77 | run_inner::<I>(Some(instance), db, sql_text, auth, subs, head) |
| 78 | } |
| 79 | |
| 80 | fn run_inner<I: WasmInstance>( |
| 81 | instance: Option<&mut RefInstance<I>>, |
no outgoing calls
no test coverage detected
searching dependent graphs…