Table of Contents

Class NativeMethods.PreparedStatements

Namespace
DuckDB.NET.Native
Assembly
DuckDB.NET.Bindings.dll
public static class NativeMethods.PreparedStatements
Inheritance
NativeMethods.PreparedStatements
Inherited Members

Methods

DuckDBBindBlob(DuckDBPreparedStatement, long, byte[], long)

public static extern DuckDBState DuckDBBindBlob(DuckDBPreparedStatement preparedStatement, long index, byte[] data, long length)

Parameters

preparedStatement DuckDBPreparedStatement
index long
data byte[]
length long

Returns

DuckDBState

DuckDBBindBoolean(DuckDBPreparedStatement, long, bool)

public static extern DuckDBState DuckDBBindBoolean(DuckDBPreparedStatement preparedStatement, long index, bool val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val bool

Returns

DuckDBState

DuckDBBindDate(DuckDBPreparedStatement, long, DuckDBDate)

public static extern DuckDBState DuckDBBindDate(DuckDBPreparedStatement preparedStatement, long index, DuckDBDate val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val DuckDBDate

Returns

DuckDBState

DuckDBBindDouble(DuckDBPreparedStatement, long, double)

public static extern DuckDBState DuckDBBindDouble(DuckDBPreparedStatement preparedStatement, long index, double val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val double

Returns

DuckDBState

DuckDBBindFloat(DuckDBPreparedStatement, long, float)

public static extern DuckDBState DuckDBBindFloat(DuckDBPreparedStatement preparedStatement, long index, float val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val float

Returns

DuckDBState

DuckDBBindHugeInt(DuckDBPreparedStatement, long, DuckDBHugeInt)

public static extern DuckDBState DuckDBBindHugeInt(DuckDBPreparedStatement preparedStatement, long index, DuckDBHugeInt val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val DuckDBHugeInt

Returns

DuckDBState

DuckDBBindInt16(DuckDBPreparedStatement, long, short)

public static extern DuckDBState DuckDBBindInt16(DuckDBPreparedStatement preparedStatement, long index, short val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val short

Returns

DuckDBState

DuckDBBindInt32(DuckDBPreparedStatement, long, int)

public static extern DuckDBState DuckDBBindInt32(DuckDBPreparedStatement preparedStatement, long index, int val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val int

Returns

DuckDBState

DuckDBBindInt64(DuckDBPreparedStatement, long, long)

public static extern DuckDBState DuckDBBindInt64(DuckDBPreparedStatement preparedStatement, long index, long val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val long

Returns

DuckDBState

DuckDBBindInt8(DuckDBPreparedStatement, long, sbyte)

public static extern DuckDBState DuckDBBindInt8(DuckDBPreparedStatement preparedStatement, long index, sbyte val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val sbyte

Returns

DuckDBState

DuckDBBindNull(DuckDBPreparedStatement, long)

public static extern DuckDBState DuckDBBindNull(DuckDBPreparedStatement preparedStatement, long index)

Parameters

preparedStatement DuckDBPreparedStatement
index long

Returns

DuckDBState

DuckDBBindParameterIndex(DuckDBPreparedStatement, out int, SafeUnmanagedMemoryHandle)

public static extern DuckDBState DuckDBBindParameterIndex(DuckDBPreparedStatement preparedStatement, out int index, SafeUnmanagedMemoryHandle name)

Parameters

preparedStatement DuckDBPreparedStatement
index int
name SafeUnmanagedMemoryHandle

Returns

DuckDBState

DuckDBBindParameterIndex(DuckDBPreparedStatement, out int, string)

public static extern DuckDBState DuckDBBindParameterIndex(DuckDBPreparedStatement preparedStatement, out int index, string name)

Parameters

preparedStatement DuckDBPreparedStatement
index int
name string

Returns

DuckDBState

DuckDBBindTime(DuckDBPreparedStatement, long, DuckDBTime)

public static extern DuckDBState DuckDBBindTime(DuckDBPreparedStatement preparedStatement, long index, DuckDBTime val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val DuckDBTime

Returns

DuckDBState

DuckDBBindTimestamp(DuckDBPreparedStatement, long, DuckDBTimestampStruct)

public static extern DuckDBState DuckDBBindTimestamp(DuckDBPreparedStatement preparedStatement, long index, DuckDBTimestampStruct val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val DuckDBTimestampStruct

Returns

DuckDBState

DuckDBBindUInt16(DuckDBPreparedStatement, long, ushort)

public static extern DuckDBState DuckDBBindUInt16(DuckDBPreparedStatement preparedStatement, long index, ushort val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val ushort

Returns

DuckDBState

DuckDBBindUInt32(DuckDBPreparedStatement, long, uint)

public static extern DuckDBState DuckDBBindUInt32(DuckDBPreparedStatement preparedStatement, long index, uint val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val uint

Returns

DuckDBState

DuckDBBindUInt64(DuckDBPreparedStatement, long, ulong)

public static extern DuckDBState DuckDBBindUInt64(DuckDBPreparedStatement preparedStatement, long index, ulong val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val ulong

Returns

DuckDBState

DuckDBBindUInt8(DuckDBPreparedStatement, long, byte)

public static extern DuckDBState DuckDBBindUInt8(DuckDBPreparedStatement preparedStatement, long index, byte val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val byte

Returns

DuckDBState

DuckDBBindValue(DuckDBPreparedStatement, long, DuckDBValue)

public static extern DuckDBState DuckDBBindValue(DuckDBPreparedStatement preparedStatement, long index, DuckDBValue val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val DuckDBValue

Returns

DuckDBState

DuckDBBindVarchar(DuckDBPreparedStatement, long, SafeUnmanagedMemoryHandle)

public static extern DuckDBState DuckDBBindVarchar(DuckDBPreparedStatement preparedStatement, long index, SafeUnmanagedMemoryHandle val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val SafeUnmanagedMemoryHandle

Returns

DuckDBState

DuckDBBindVarchar(DuckDBPreparedStatement, long, string)

public static extern DuckDBState DuckDBBindVarchar(DuckDBPreparedStatement preparedStatement, long index, string val)

Parameters

preparedStatement DuckDBPreparedStatement
index long
val string

Returns

DuckDBState

DuckDBDestroyPrepare(out nint)

public static extern void DuckDBDestroyPrepare(out nint preparedStatement)

Parameters

preparedStatement nint

DuckDBExecutePrepared(DuckDBPreparedStatement, out DuckDBResult)

public static extern DuckDBState DuckDBExecutePrepared(DuckDBPreparedStatement preparedStatement, out DuckDBResult result)

Parameters

preparedStatement DuckDBPreparedStatement
result DuckDBResult

Returns

DuckDBState

DuckDBExecutePreparedStreaming(DuckDBPreparedStatement, out DuckDBResult)

public static extern DuckDBState DuckDBExecutePreparedStreaming(DuckDBPreparedStatement preparedStatement, out DuckDBResult result)

Parameters

preparedStatement DuckDBPreparedStatement
result DuckDBResult

Returns

DuckDBState

DuckDBParamLogicalType(DuckDBPreparedStatement, long)

public static extern DuckDBLogicalType DuckDBParamLogicalType(DuckDBPreparedStatement preparedStatement, long index)

Parameters

preparedStatement DuckDBPreparedStatement
index long

Returns

DuckDBLogicalType

DuckDBParams(DuckDBPreparedStatement)

public static extern long DuckDBParams(DuckDBPreparedStatement preparedStatement)

Parameters

preparedStatement DuckDBPreparedStatement

Returns

long

DuckDBPrepare(DuckDBNativeConnection, SafeUnmanagedMemoryHandle, out DuckDBPreparedStatement)

public static extern DuckDBState DuckDBPrepare(DuckDBNativeConnection connection, SafeUnmanagedMemoryHandle query, out DuckDBPreparedStatement preparedStatement)

Parameters

connection DuckDBNativeConnection
query SafeUnmanagedMemoryHandle
preparedStatement DuckDBPreparedStatement

Returns

DuckDBState

DuckDBPrepare(DuckDBNativeConnection, string, out DuckDBPreparedStatement)

public static extern DuckDBState DuckDBPrepare(DuckDBNativeConnection connection, string query, out DuckDBPreparedStatement preparedStatement)

Parameters

connection DuckDBNativeConnection
query string
preparedStatement DuckDBPreparedStatement

Returns

DuckDBState

DuckDBPrepareError(DuckDBPreparedStatement)

public static extern nint DuckDBPrepareError(DuckDBPreparedStatement preparedStatement)

Parameters

preparedStatement DuckDBPreparedStatement

Returns

nint