pub struct AppenderHandle { /* private fields */ }

Implementations§

source§

impl AppenderHandle

source

pub fn create( connection: Arc<ConnectionHandle>, schema: Option<&CStr>, table: &CStr ) -> Result<Self, String>

source

pub unsafe fn from_raw( raw: duckdb_appender, connection: Arc<ConnectionHandle> ) -> Self

source

pub fn error(&self) -> String

source

pub fn flush(&self) -> Result<(), String>

source

pub fn close(&self) -> Result<(), String>

source§

impl AppenderHandle

source

pub fn begin_row(&self) -> Result<(), String>

source

pub fn end_row(&self) -> Result<(), String>

source

pub fn append_bool(&self, value: bool) -> Result<(), String>

source

pub fn append_int8(&self, value: i8) -> Result<(), String>

source

pub fn append_int16(&self, value: i16) -> Result<(), String>

source

pub fn append_int32(&self, value: i32) -> Result<(), String>

source

pub fn append_int64(&self, value: i64) -> Result<(), String>

source

pub fn append_hugeint(&self, value: i128) -> Result<(), String>

source

pub fn append_uint8(&self, value: u8) -> Result<(), String>

source

pub fn append_uint16(&self, value: u16) -> Result<(), String>

source

pub fn append_uint32(&self, value: u32) -> Result<(), String>

source

pub fn append_uint64(&self, value: u64) -> Result<(), String>

source

pub fn append_float(&self, value: f32) -> Result<(), String>

source

pub fn append_double(&self, value: f64) -> Result<(), String>

source

pub fn append_date(&self, value: Date) -> Result<(), String>

source

pub fn append_time(&self, value: Time) -> Result<(), String>

source

pub fn append_timestamp(&self, value: PrimitiveDateTime) -> Result<(), String>

source

pub fn append_interval(&self, value: Duration) -> Result<(), String>

source

pub fn append_varchar(&self, value: &CStr) -> Result<(), String>

source

pub fn append_varchar_length(&self, value: &str) -> Result<(), String>

source

pub fn append_blob(&self, value: &[u8]) -> Result<(), String>

source

pub fn append_null(&self) -> Result<(), String>

Trait Implementations§

source§

impl Deref for AppenderHandle

§

type Target = *mut _duckdb_appender

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Drop for AppenderHandle

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.