pub struct DuckDbApi { /* private fields */ }Expand description
Raw C ABI for GeoKernel.Data.DuckDB. Loaded modules remain resident until process exit.
Implementations§
Source§impl DuckDbApi
impl DuckDbApi
pub const SYMBOLS: &'static [&'static str]
Sourcepub unsafe fn load(path: &Path) -> Result<Self, LoadError>
pub unsafe fn load(path: &Path) -> Result<Self, LoadError>
Load a trusted, ABI-compatible GeoKernel runtime module.
§Safety
Library initializers must be safe and every symbol must match this SDK ABI.
Sourcepub unsafe fn GeoKernelDuckDb_BeginTransaction(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_BeginTransaction(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_BeginTransaction(void* connection).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CloseConnection(&self, a0: *mut c_void)
pub unsafe fn GeoKernelDuckDb_CloseConnection(&self, a0: *mut c_void)
Native declaration: void GeoKernelDuckDb_CloseConnection(void* connection).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_ClosePreparedStatement(&self, a0: *mut c_void)
pub unsafe fn GeoKernelDuckDb_ClosePreparedStatement(&self, a0: *mut c_void)
Native declaration: void GeoKernelDuckDb_ClosePreparedStatement(void* statement).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CloseQueryCursor(&self, a0: *mut c_void)
pub unsafe fn GeoKernelDuckDb_CloseQueryCursor(&self, a0: *mut c_void)
Native declaration: void GeoKernelDuckDb_CloseQueryCursor(void* cursor).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CloseQueryLayer(&self, a0: *mut c_void)
pub unsafe fn GeoKernelDuckDb_CloseQueryLayer(&self, a0: *mut c_void)
Native declaration: void GeoKernelDuckDb_CloseQueryLayer(void* layer).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CloseQueryResult(&self, a0: *mut c_void)
pub unsafe fn GeoKernelDuckDb_CloseQueryResult(&self, a0: *mut c_void)
Native declaration: void GeoKernelDuckDb_CloseQueryResult(void* result).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_Commit(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_Commit(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_Commit(void* connection).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CopyQueryResultBinary(
&self,
a0: *mut c_void,
a1: *mut u8,
a2: i64,
) -> i64
pub unsafe fn GeoKernelDuckDb_CopyQueryResultBinary( &self, a0: *mut c_void, a1: *mut u8, a2: i64, ) -> i64
Native declaration: long long GeoKernelDuckDb_CopyQueryResultBinary( void* result, unsigned char* buffer, long long bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateConnection(
&self,
a0: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateConnection( &self, a0: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateConnection(const wchar_t* databasePath).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateGeoParquetQueryCursor(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateGeoParquetQueryCursor( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateGeoParquetQueryCursor(void* connection, const wchar_t* path, const wchar_t* requestJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateGeoParquetQueryResult(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateGeoParquetQueryResult( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateGeoParquetQueryResult( void* connection, const wchar_t* path, const wchar_t* requestJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreatePreparedQueryCursor(
&self,
a0: *mut c_void,
a1: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreatePreparedQueryCursor( &self, a0: *mut c_void, a1: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreatePreparedQueryCursor(void* statement, const wchar_t* parametersJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreatePreparedStatement(
&self,
a0: *mut c_void,
a1: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreatePreparedStatement( &self, a0: *mut c_void, a1: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreatePreparedStatement(void* connection, const wchar_t* sql).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateQueryCursor(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateQueryCursor( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateQueryCursor(void* connection, const wchar_t* sql, const wchar_t* parametersJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateQueryLayer(
&self,
a0: *mut c_void,
a1: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateQueryLayer( &self, a0: *mut c_void, a1: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateQueryLayer(void* connection, const wchar_t* requestJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_CreateQueryResult(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_CreateQueryResult( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_CreateQueryResult( void* connection, const wchar_t* sql, const wchar_t* parametersJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_ExecutePrepared(
&self,
a0: *mut c_void,
a1: *const WChar,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_ExecutePrepared( &self, a0: *mut c_void, a1: *const WChar, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_ExecutePrepared(void* statement, const wchar_t* parametersJson).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_FetchQueryCursor(
&self,
a0: *mut c_void,
a1: i64,
) -> *mut c_void
pub unsafe fn GeoKernelDuckDb_FetchQueryCursor( &self, a0: *mut c_void, a1: i64, ) -> *mut c_void
Native declaration: void* GeoKernelDuckDb_FetchQueryCursor(void* cursor, long long maximumRows).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_InspectGeoParquetJson(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *mut WChar,
a3: i32,
) -> i32
pub unsafe fn GeoKernelDuckDb_InspectGeoParquetJson( &self, a0: *mut c_void, a1: *const WChar, a2: *mut WChar, a3: i32, ) -> i32
Native declaration: int GeoKernelDuckDb_InspectGeoParquetJson( void* connection, const wchar_t* path, wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_Interrupt(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_Interrupt(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_Interrupt(void* connection).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_LastError(&self, a0: *mut WChar, a1: i32) -> i32
pub unsafe fn GeoKernelDuckDb_LastError(&self, a0: *mut WChar, a1: i32) -> i32
Native declaration: int GeoKernelDuckDb_LastError(wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_LibraryVersion(
&self,
a0: *mut WChar,
a1: i32,
) -> i32
pub unsafe fn GeoKernelDuckDb_LibraryVersion( &self, a0: *mut WChar, a1: i32, ) -> i32
Native declaration: int GeoKernelDuckDb_LibraryVersion(wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_LoadSpatialExtension(
&self,
a0: *mut c_void,
a1: *const WChar,
) -> i32
pub unsafe fn GeoKernelDuckDb_LoadSpatialExtension( &self, a0: *mut c_void, a1: *const WChar, ) -> i32
Native declaration: int GeoKernelDuckDb_LoadSpatialExtension( void* connection, const wchar_t* extensionDirectory).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_PreparedStatementParameterCount(
&self,
a0: *mut c_void,
) -> i64
pub unsafe fn GeoKernelDuckDb_PreparedStatementParameterCount( &self, a0: *mut c_void, ) -> i64
Native declaration: long long GeoKernelDuckDb_PreparedStatementParameterCount(void* statement).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_QueryCursorFinished(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_QueryCursorFinished(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_QueryCursorFinished(void* cursor).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_QueryGeoParquetJson(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
a3: *mut WChar,
a4: i32,
) -> i32
pub unsafe fn GeoKernelDuckDb_QueryGeoParquetJson( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, a3: *mut WChar, a4: i32, ) -> i32
Native declaration: int GeoKernelDuckDb_QueryGeoParquetJson( void* connection, const wchar_t* path, const wchar_t* requestJson, wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_QueryJson(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
a3: *mut WChar,
a4: i32,
) -> i32
pub unsafe fn GeoKernelDuckDb_QueryJson( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, a3: *mut WChar, a4: i32, ) -> i32
Native declaration: int GeoKernelDuckDb_QueryJson( void* connection, const wchar_t* sql, const wchar_t* parametersJson, wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_QueryResultBinarySize(
&self,
a0: *mut c_void,
) -> i64
pub unsafe fn GeoKernelDuckDb_QueryResultBinarySize( &self, a0: *mut c_void, ) -> i64
Native declaration: long long GeoKernelDuckDb_QueryResultBinarySize(void* result).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_RefreshQueryLayer(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_RefreshQueryLayer(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_RefreshQueryLayer(void* layer).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_Rollback(&self, a0: *mut c_void) -> i32
pub unsafe fn GeoKernelDuckDb_Rollback(&self, a0: *mut c_void) -> i32
Native declaration: int GeoKernelDuckDb_Rollback(void* connection).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.
Sourcepub unsafe fn GeoKernelDuckDb_WriteGeoParquetJson(
&self,
a0: *mut c_void,
a1: *const WChar,
a2: *const WChar,
a3: *mut WChar,
a4: i32,
) -> i32
pub unsafe fn GeoKernelDuckDb_WriteGeoParquetJson( &self, a0: *mut c_void, a1: *const WChar, a2: *const WChar, a3: *mut WChar, a4: i32, ) -> i32
Native declaration: int GeoKernelDuckDb_WriteGeoParquetJson( void* connection, const wchar_t* path, const wchar_t* requestJson, wchar_t* buffer, int bufferLength).
§Safety
Obey the native pointer, ownership, buffer, thread, and callback contracts.