duckdb 0.5.2-dev230.0 → 0.5.2-dev239.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.5.2-dev230.0",
4
+ "version": "0.5.2-dev239.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -67182,10 +67182,7 @@ void PhysicalSet::GetData(ExecutionContext &context, DataChunk &chunk, GlobalSou
67182
67182
  if (entry == config.extension_parameters.end()) {
67183
67183
  // it is not!
67184
67184
  // get a list of all options
67185
- vector<string> potential_names;
67186
- for (idx_t i = 0, option_count = DBConfig::GetOptionCount(); i < option_count; i++) {
67187
- potential_names.emplace_back(DBConfig::GetOptionByIndex(i)->name);
67188
- }
67185
+ vector<string> potential_names = DBConfig::GetOptionNames();
67189
67186
  for (auto &entry : config.extension_parameters) {
67190
67187
  potential_names.push_back(entry.first);
67191
67188
  }
@@ -128748,6 +128745,14 @@ idx_t DBConfig::GetOptionCount() {
128748
128745
  return count;
128749
128746
  }
128750
128747
 
128748
+ vector<std::string> DBConfig::GetOptionNames() {
128749
+ vector<string> names;
128750
+ for (idx_t i = 0, option_count = DBConfig::GetOptionCount(); i < option_count; i++) {
128751
+ names.emplace_back(DBConfig::GetOptionByIndex(i)->name);
128752
+ }
128753
+ return names;
128754
+ }
128755
+
128751
128756
  ConfigurationOption *DBConfig::GetOptionByIndex(idx_t target_index) {
128752
128757
  for (idx_t index = 0; internal_options[index].name; index++) {
128753
128758
  if (index == target_index) {