duckdb 0.3.3-dev1395.0 → 0.3.3-dev1397.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/duckdb.cpp +5 -1
- package/src/duckdb.hpp +13 -4
- package/src/parquet-amalgamation.cpp +28061 -28061
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -104647,8 +104647,12 @@ void duckdb_destroy_value(duckdb_value *value) {
|
|
|
104647
104647
|
}
|
|
104648
104648
|
}
|
|
104649
104649
|
|
|
104650
|
+
duckdb_value duckdb_create_varchar_length(const char *text, idx_t length) {
|
|
104651
|
+
return (duckdb_value) new duckdb::Value(std::string(text, length));
|
|
104652
|
+
}
|
|
104653
|
+
|
|
104650
104654
|
duckdb_value duckdb_create_varchar(const char *text) {
|
|
104651
|
-
return (
|
|
104655
|
+
return duckdb_create_varchar_length(text, strlen(text));
|
|
104652
104656
|
}
|
|
104653
104657
|
|
|
104654
104658
|
duckdb_value duckdb_create_int64(int64_t input) {
|
package/src/duckdb.hpp
CHANGED
|
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
13
|
#define DUCKDB_AMALGAMATION_EXTENDED 1
|
|
14
|
-
#define DUCKDB_SOURCE_ID "
|
|
15
|
-
#define DUCKDB_VERSION "v0.3.3-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "c3ba7e5b0"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev1397"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -15896,13 +15896,22 @@ Destroys the value and de-allocates all memory allocated for that type.
|
|
|
15896
15896
|
DUCKDB_API void duckdb_destroy_value(duckdb_value *value);
|
|
15897
15897
|
|
|
15898
15898
|
/*!
|
|
15899
|
-
Creates a value from a
|
|
15899
|
+
Creates a value from a null-terminated string
|
|
15900
15900
|
|
|
15901
|
-
* value: The
|
|
15901
|
+
* value: The null-terminated string
|
|
15902
15902
|
* returns: The value. This must be destroyed with `duckdb_destroy_value`.
|
|
15903
15903
|
*/
|
|
15904
15904
|
DUCKDB_API duckdb_value duckdb_create_varchar(const char *text);
|
|
15905
15905
|
|
|
15906
|
+
/*!
|
|
15907
|
+
Creates a value from a string
|
|
15908
|
+
|
|
15909
|
+
* value: The text
|
|
15910
|
+
* length: The length of the text
|
|
15911
|
+
* returns: The value. This must be destroyed with `duckdb_destroy_value`.
|
|
15912
|
+
*/
|
|
15913
|
+
DUCKDB_API duckdb_value duckdb_create_varchar_length(const char *text, idx_t length);
|
|
15914
|
+
|
|
15906
15915
|
/*!
|
|
15907
15916
|
Creates a value from an int64
|
|
15908
15917
|
|