@@ -71,8 +71,50 @@ public static class Value
7171 [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_create_blob" ) ]
7272 public static extern DuckDBValue DuckDBCreateBlob ( [ In ] byte [ ] value , long length ) ;
7373
74+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_bool" ) ]
75+ public static extern bool DuckDBGetBool ( DuckDBValue value ) ;
76+
77+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_int8" ) ]
78+ public static extern sbyte DuckDBGetInt8 ( DuckDBValue value ) ;
79+
80+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_uint8" ) ]
81+ public static extern byte DuckDBGetUInt8 ( DuckDBValue value ) ;
82+
83+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_int16" ) ]
84+ public static extern short DuckDBGetInt16 ( DuckDBValue value ) ;
85+
86+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_uint16" ) ]
87+ public static extern ushort DuckDBGetUInt16 ( DuckDBValue value ) ;
88+
7489 [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_int32" ) ]
7590 public static extern int DuckDBGetInt32 ( DuckDBValue value ) ;
91+
92+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_uint32" ) ]
93+ public static extern uint DuckDBGetUInt32 ( DuckDBValue value ) ;
94+
95+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_int64" ) ]
96+ public static extern long DuckDBGetInt64 ( DuckDBValue value ) ;
97+
98+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_uint64" ) ]
99+ public static extern ulong DuckDBGetUInt64 ( DuckDBValue value ) ;
100+
101+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_hugeint" ) ]
102+ public static extern DuckDBHugeInt DuckDBGetHugeInt ( DuckDBValue value ) ;
103+
104+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_uhugeint" ) ]
105+ public static extern DuckDBUHugeInt DuckDBGetUHugeInt ( DuckDBValue value ) ;
106+
107+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_float" ) ]
108+ public static extern float DuckDBGetFloat ( DuckDBValue value ) ;
109+
110+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_double" ) ]
111+ public static extern double DuckDBGetDouble ( DuckDBValue value ) ;
112+
113+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_value_type" ) ]
114+ public static extern unsafe DuckDBLogicalType DuckDBGetValueType ( DuckDBValue value ) ;
115+
116+ [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_get_varchar" ) ]
117+ public static extern string DuckDBGetVarchar ( DuckDBValue value ) ;
76118
77119 [ DllImport ( DuckDbLibrary , CallingConvention = CallingConvention . Cdecl , EntryPoint = "duckdb_create_list_value" ) ]
78120 public static extern DuckDBValue DuckDBCreateListValue ( DuckDBLogicalType logicalType , IntPtr [ ] values , long count ) ;
0 commit comments