duckdb 0.3.2-dev784.0 → 0.3.2-dev788.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-dev784.0",
4
+ "version": "0.3.2-dev788.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -38204,6 +38204,9 @@ LogicalType LogicalType::STRUCT(child_list_t<LogicalType> children) {
38204
38204
  return LogicalType(LogicalTypeId::STRUCT, move(info));
38205
38205
  }
38206
38206
 
38207
+ //===--------------------------------------------------------------------===//
38208
+ // Map Type
38209
+ //===--------------------------------------------------------------------===//
38207
38210
  LogicalType LogicalType::MAP(child_list_t<LogicalType> children) {
38208
38211
  auto info = make_shared<StructTypeInfo>(move(children));
38209
38212
  return LogicalType(LogicalTypeId::MAP, move(info));
@@ -38216,6 +38219,16 @@ LogicalType LogicalType::MAP(LogicalType key, LogicalType value) {
38216
38219
  return LogicalType::MAP(move(child_types));
38217
38220
  }
38218
38221
 
38222
+ const LogicalType &MapType::KeyType(const LogicalType &type) {
38223
+ D_ASSERT(type.id() == LogicalTypeId::MAP);
38224
+ return StructType::GetChildTypes(type)[0].second;
38225
+ }
38226
+
38227
+ const LogicalType &MapType::ValueType(const LogicalType &type) {
38228
+ D_ASSERT(type.id() == LogicalTypeId::MAP);
38229
+ return StructType::GetChildTypes(type)[1].second;
38230
+ }
38231
+
38219
38232
  //===--------------------------------------------------------------------===//
38220
38233
  // User Type
38221
38234
  //===--------------------------------------------------------------------===//
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 "f338ea423"
15
- #define DUCKDB_VERSION "0.3.2-dev784"
14
+ #define DUCKDB_SOURCE_ID "6322c0deb"
15
+ #define DUCKDB_VERSION "0.3.2-dev788"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -1097,6 +1097,11 @@ struct StructType {
1097
1097
  DUCKDB_API static idx_t GetChildCount(const LogicalType &type);
1098
1098
  };
1099
1099
 
1100
+ struct MapType {
1101
+ DUCKDB_API static const LogicalType &KeyType(const LogicalType &type);
1102
+ DUCKDB_API static const LogicalType &ValueType(const LogicalType &type);
1103
+ };
1104
+
1100
1105
 
1101
1106
  string LogicalTypeIdToString(LogicalTypeId type);
1102
1107