duckdb 0.5.2-dev2294.0 → 0.5.2-dev2297.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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.5.2-dev2294.0",
5
+ "version": "0.5.2-dev2297.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -110,14 +110,10 @@ Connection::Connection(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Connec
110
110
  database_ref = Napi::ObjectWrap<Database>::Unwrap(info[0].As<Napi::Object>());
111
111
  database_ref->Ref();
112
112
 
113
- if (!database_ref->database) {
114
- Napi::Error::New(env, "Connection created on database that was not yet initialized")
115
- .ThrowAsJavaScriptException();
116
- return;
117
- }
118
113
  // Register replacement scan
119
- database_ref->database->instance->config.replacement_scans.emplace_back(
120
- ScanReplacement, duckdb::make_unique<NodeReplacementScanData>(this));
114
+ // TODO: disabled currently, either fix or remove.
115
+ // database_ref->database->instance->config.replacement_scans.emplace_back(
116
+ // ScanReplacement, duckdb::make_unique<NodeReplacementScanData>(this));
121
117
 
122
118
  Napi::Function callback;
123
119
  if (info.Length() > 0 && info[1].IsFunction()) {
@@ -346,6 +342,10 @@ Napi::Value Connection::RegisterUdf(const Napi::CallbackInfo &info) {
346
342
  // Register Arrow IPC buffers for scanning from DuckDB
347
343
  Napi::Value Connection::RegisterBuffer(const Napi::CallbackInfo &info) {
348
344
  auto env = info.Env();
345
+
346
+ Napi::TypeError::New(env, "Register buffer currently not implemented").ThrowAsJavaScriptException();
347
+ return env.Null();
348
+
349
349
  if (info.Length() < 2 || !info[0].IsString() || !info[1].IsObject()) {
350
350
  Napi::TypeError::New(env, "Incorrect params").ThrowAsJavaScriptException();
351
351
  return env.Null();
@@ -390,6 +390,10 @@ Napi::Value Connection::RegisterBuffer(const Napi::CallbackInfo &info) {
390
390
 
391
391
  Napi::Value Connection::UnRegisterBuffer(const Napi::CallbackInfo &info) {
392
392
  auto env = info.Env();
393
+
394
+ Napi::TypeError::New(env, "Register buffer currently not implemented").ThrowAsJavaScriptException();
395
+ return env.Null();
396
+
393
397
  if (info.Length() != 1 || !info[0].IsString()) {
394
398
  Napi::TypeError::New(env, "Holding it wrong").ThrowAsJavaScriptException();
395
399
  return env.Null();
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 "7c67cde1b0"
15
- #define DUCKDB_VERSION "v0.5.2-dev2294"
14
+ #define DUCKDB_SOURCE_ID "6b09b24bac"
15
+ #define DUCKDB_VERSION "v0.5.2-dev2297"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //