duckdb 0.5.2-dev2.0 → 0.5.2-dev2001.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/.mocharc.json +5 -0
- package/lib/duckdb.d.ts +103 -0
- package/lib/duckdb.js +182 -12
- package/package.json +16 -4
- package/src/connection.cpp +117 -10
- package/src/duckdb.cpp +121772 -103769
- package/src/duckdb.hpp +10933 -8241
- package/src/duckdb_node.hpp +9 -2
- package/src/parquet-amalgamation.cpp +32150 -31985
- package/src/parquet-amalgamation.hpp +6 -3
- package/src/statement.cpp +124 -7
- package/test/data_type_support.test.js +6 -0
- package/test/open_close.test.js +2 -2
- package/test/support/createdb.js +13 -11
- package/test/typescript_decls.test.ts +209 -0
- package/test/udf.test.js +42 -42
- package/tsconfig.json +12 -0
package/src/duckdb_node.hpp
CHANGED
|
@@ -113,8 +113,10 @@ public:
|
|
|
113
113
|
public:
|
|
114
114
|
Napi::Value Prepare(const Napi::CallbackInfo &info);
|
|
115
115
|
Napi::Value Exec(const Napi::CallbackInfo &info);
|
|
116
|
-
Napi::Value
|
|
117
|
-
Napi::Value
|
|
116
|
+
Napi::Value RegisterUdf(const Napi::CallbackInfo &info);
|
|
117
|
+
Napi::Value UnregisterUdf(const Napi::CallbackInfo &info);
|
|
118
|
+
Napi::Value RegisterBuffer(const Napi::CallbackInfo &info);
|
|
119
|
+
Napi::Value UnRegisterBuffer(const Napi::CallbackInfo &info);
|
|
118
120
|
|
|
119
121
|
static bool HasInstance(Napi::Value val) {
|
|
120
122
|
Napi::Env env = val.Env();
|
|
@@ -131,6 +133,8 @@ public:
|
|
|
131
133
|
std::unique_ptr<duckdb::Connection> connection;
|
|
132
134
|
Database *database_ref;
|
|
133
135
|
std::unordered_map<std::string, duckdb_node_udf_function_t> udfs;
|
|
136
|
+
std::unordered_map<std::string, std::vector<std::pair<uint64_t, uint64_t>>> buffers;
|
|
137
|
+
std::unordered_map<std::string, Napi::Reference<Napi::Array>> array_references;
|
|
134
138
|
};
|
|
135
139
|
|
|
136
140
|
struct StatementParam;
|
|
@@ -146,6 +150,7 @@ public:
|
|
|
146
150
|
|
|
147
151
|
public:
|
|
148
152
|
Napi::Value All(const Napi::CallbackInfo &info);
|
|
153
|
+
Napi::Value ArrowIPCAll(const Napi::CallbackInfo &info);
|
|
149
154
|
Napi::Value Each(const Napi::CallbackInfo &info);
|
|
150
155
|
Napi::Value Run(const Napi::CallbackInfo &info);
|
|
151
156
|
Napi::Value Finish(const Napi::CallbackInfo &info);
|
|
@@ -172,6 +177,8 @@ public:
|
|
|
172
177
|
public:
|
|
173
178
|
static Napi::FunctionReference constructor;
|
|
174
179
|
Napi::Value NextChunk(const Napi::CallbackInfo &info);
|
|
180
|
+
Napi::Value NextIpcBuffer(const Napi::CallbackInfo &info);
|
|
181
|
+
duckdb::shared_ptr<ArrowSchema> cschema;
|
|
175
182
|
|
|
176
183
|
private:
|
|
177
184
|
Database *database_ref;
|