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.
@@ -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 Register(const Napi::CallbackInfo &info);
117
- Napi::Value Unregister(const Napi::CallbackInfo &info);
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;