duckdb 0.3.2-dev980.0 → 0.3.2-dev996.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.2-dev980.0",
4
+ "version": "0.3.2-dev996.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -34,7 +34,7 @@ class ClientContext;
34
34
  class CatalogSearchPath {
35
35
  public:
36
36
  DUCKDB_API explicit CatalogSearchPath(ClientContext &client_p);
37
- DUCKDB_API CatalogSearchPath(const CatalogSearchPath &other) = delete;
37
+ CatalogSearchPath(const CatalogSearchPath &other) = delete;
38
38
 
39
39
  DUCKDB_API void Set(const string &new_value, bool is_set_schema);
40
40
  DUCKDB_API const vector<string> &Get();
@@ -74942,10 +74942,8 @@ static void Base64DecodeFunction(DataChunk &args, ExpressionState &state, Vector
74942
74942
 
74943
74943
  void Base64Fun::RegisterFunction(BuiltinFunctions &set) {
74944
74944
  // base64 encode
74945
- ScalarFunction to_base64("base64", {LogicalType::BLOB}, LogicalType::VARCHAR, Base64EncodeFunction);
74946
- set.AddFunction(to_base64);
74947
- to_base64.name = "to_base64"; // mysql alias
74948
- set.AddFunction(to_base64);
74945
+ ScalarFunction to_base64({LogicalType::BLOB}, LogicalType::VARCHAR, Base64EncodeFunction);
74946
+ set.AddFunction({"base64", "to_base64"}, to_base64); // to_base64 is a mysql alias
74949
74947
 
74950
74948
  set.AddFunction(ScalarFunction("from_base64", {LogicalType::VARCHAR}, LogicalType::BLOB, Base64DecodeFunction));
74951
74949
  }
@@ -80143,10 +80141,10 @@ static unique_ptr<FunctionData> ArraySliceBind(ClientContext &context, ScalarFun
80143
80141
 
80144
80142
  void ArraySliceFun::RegisterFunction(BuiltinFunctions &set) {
80145
80143
  // the arguments and return types are actually set in the binder function
80146
- ScalarFunction fun("array_slice", {LogicalType::ANY, LogicalType::BIGINT, LogicalType::BIGINT}, LogicalType::ANY,
80144
+ ScalarFunction fun({LogicalType::ANY, LogicalType::BIGINT, LogicalType::BIGINT}, LogicalType::ANY,
80147
80145
  ArraySliceFunction, false, ArraySliceBind);
80148
80146
  fun.varargs = LogicalType::ANY;
80149
- set.AddFunction(fun);
80147
+ set.AddFunction({"array_slice", "list_slice"}, fun);
80150
80148
  }
80151
80149
 
80152
80150
  } // namespace duckdb