Skip to main content

DuckDbApi

Struct DuckDbApi 

Source
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

Source

pub const SYMBOLS: &'static [&'static str]

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.