duckdb 0.3.5-dev1253.0 → 0.3.5-dev1270.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.5-dev1253.0",
4
+ "version": "0.3.5-dev1270.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -4185,6 +4185,9 @@ string TableCatalogEntry::ToSQL() {
4185
4185
  if (column.DefaultValue()) {
4186
4186
  ss << " DEFAULT(" << column.DefaultValue()->ToString() << ")";
4187
4187
  }
4188
+ if (column.Generated()) {
4189
+ ss << " GENERATED ALWAYS AS(" << column.GeneratedExpression().ToString() << ")";
4190
+ }
4188
4191
  }
4189
4192
  // print any extra constraints that still need to be printed
4190
4193
  for (auto &extra_constraint : extra_constraints) {
@@ -125672,7 +125675,7 @@ void ExtensionHelper::InstallExtension(DatabaseInstance &db, const string &exten
125672
125675
  #ifndef _WIN32
125673
125676
  #include <dlfcn.h>
125674
125677
  #else
125675
- #define RTLD_LAZY 0
125678
+ #define RTLD_NOW 0
125676
125679
  #define RTLD_LOCAL 0
125677
125680
  #endif
125678
125681
 
@@ -125743,7 +125746,7 @@ void ExtensionHelper::LoadExternalExtension(DatabaseInstance &db, const string &
125743
125746
  if (!fs.FileExists(filename)) {
125744
125747
  throw IOException("File \"%s\" not found", filename);
125745
125748
  }
125746
- auto lib_hdl = dlopen(filename.c_str(), RTLD_LAZY | RTLD_LOCAL);
125749
+ auto lib_hdl = dlopen(filename.c_str(), RTLD_NOW | RTLD_LOCAL);
125747
125750
  if (!lib_hdl) {
125748
125751
  throw IOException("File \"%s\" could not be loaded: %s", filename, GetDLError());
125749
125752
  }
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 "cdfb9f92f"
15
- #define DUCKDB_VERSION "v0.3.5-dev1253"
14
+ #define DUCKDB_SOURCE_ID "dd37f0e8f"
15
+ #define DUCKDB_VERSION "v0.3.5-dev1270"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -102,7 +102,7 @@ using std::string;
102
102
  #define DUCKDB_EXTENSION_API
103
103
  #endif
104
104
  #else
105
- #define DUCKDB_EXTENSION_API
105
+ #define DUCKDB_EXTENSION_API __attribute__((visibility("default")))
106
106
  #endif
107
107
  #endif
108
108
 
@@ -15382,6 +15382,19 @@ using std::deque;
15382
15382
  #endif
15383
15383
  #endif
15384
15384
 
15385
+ // duplicate of duckdb/main/winapi.hpp
15386
+ #ifndef DUCKDB_EXTENSION_API
15387
+ #ifdef _WIN32
15388
+ #ifdef DUCKDB_BUILD_LOADABLE_EXTENSION
15389
+ #define DUCKDB_EXTENSION_API __declspec(dllexport)
15390
+ #else
15391
+ #define DUCKDB_EXTENSION_API
15392
+ #endif
15393
+ #else
15394
+ #define DUCKDB_EXTENSION_API __attribute__((visibility("default")))
15395
+ #endif
15396
+ #endif
15397
+
15385
15398
  // duplicate of duckdb/common/constants.hpp
15386
15399
  #ifndef DUCKDB_API_0_3_1
15387
15400
  #define DUCKDB_API_0_3_1 1
@@ -18338,9 +18351,12 @@ private:
18338
18351
 
18339
18352
  class Allocator {
18340
18353
  public:
18341
- Allocator();
18342
- Allocator(allocate_function_ptr_t allocate_function_p, free_function_ptr_t free_function_p,
18343
- reallocate_function_ptr_t reallocate_function_p, unique_ptr<PrivateAllocatorData> private_data);
18354
+ DUCKDB_API Allocator();
18355
+ DUCKDB_API Allocator(allocate_function_ptr_t allocate_function_p, free_function_ptr_t free_function_p,
18356
+ reallocate_function_ptr_t reallocate_function_p,
18357
+ unique_ptr<PrivateAllocatorData> private_data);
18358
+
18359
+ DUCKDB_API Allocator &operator=(Allocator &&allocator) noexcept = default;
18344
18360
 
18345
18361
  data_ptr_t AllocateData(idx_t size);
18346
18362
  void FreeData(data_ptr_t pointer, idx_t size);