| 550 | } |
| 551 | |
| 552 | unsafe extern "C" fn inverse_callback( |
| 553 | context: *mut sqlite3_context, |
| 554 | argc: c_int, |
| 555 | argv: *mut *mut sqlite3_value, |
| 556 | ) { |
| 557 | let context = SqliteContext::from(context); |
| 558 | let (_, vm) = unsafe { (*context.user_data::<Self>()).retrieve() }; |
| 559 | let args = unsafe { core::slice::from_raw_parts(argv, argc as usize) }; |
| 560 | let instance = context.aggregate_context::<*const PyObject>(); |
| 561 | let instance = unsafe { &**instance }; |
| 562 | |
| 563 | Self::call_method_with_args(context, instance, "inverse", args, vm); |
| 564 | } |
| 565 | |
| 566 | unsafe extern "C" fn authorizer_callback( |
| 567 | data: *mut c_void, |