duckdb 0.5.2-dev512.0 → 0.5.2-dev518.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 +1 -1
- package/src/duckdb.cpp +11 -5
- package/src/duckdb.hpp +11 -4
- package/src/parquet-amalgamation.cpp +37729 -37729
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -125338,6 +125338,10 @@ duckdb_state duckdb_query(duckdb_connection connection, const char *query, duckd
|
|
|
125338
125338
|
return duckdb_translate_result(move(result), out);
|
|
125339
125339
|
}
|
|
125340
125340
|
|
|
125341
|
+
const char *duckdb_library_version() {
|
|
125342
|
+
return DuckDB::LibraryVersion();
|
|
125343
|
+
}
|
|
125344
|
+
|
|
125341
125345
|
|
|
125342
125346
|
void duckdb_destroy_value(duckdb_value *value) {
|
|
125343
125347
|
if (value && *value) {
|
|
@@ -130662,8 +130666,8 @@ idx_t DuckDB::NumberOfThreads() {
|
|
|
130662
130666
|
bool DuckDB::ExtensionIsLoaded(const std::string &name) {
|
|
130663
130667
|
return instance->loaded_extensions.find(name) != instance->loaded_extensions.end();
|
|
130664
130668
|
}
|
|
130665
|
-
void
|
|
130666
|
-
|
|
130669
|
+
void DatabaseInstance::SetExtensionLoaded(const std::string &name) {
|
|
130670
|
+
loaded_extensions.insert(name);
|
|
130667
130671
|
}
|
|
130668
130672
|
|
|
130669
130673
|
bool DatabaseInstance::TryGetCurrentSetting(const std::string &key, Value &result) {
|
|
@@ -139506,7 +139510,6 @@ void ExtensionHelper::InstallExtension(ClientContext &context, const string &ext
|
|
|
139506
139510
|
}
|
|
139507
139511
|
|
|
139508
139512
|
} // namespace duckdb
|
|
139509
|
-
|
|
139510
139513
|
//===----------------------------------------------------------------------===//
|
|
139511
139514
|
// DuckDB
|
|
139512
139515
|
//
|
|
@@ -139557,6 +139560,9 @@ inline std::string GetDLError(void) {
|
|
|
139557
139560
|
|
|
139558
139561
|
|
|
139559
139562
|
|
|
139563
|
+
|
|
139564
|
+
|
|
139565
|
+
|
|
139560
139566
|
// LICENSE_CHANGE_BEGIN
|
|
139561
139567
|
// The following code up to LICENSE_CHANGE_END is subject to THIRD PARTY LICENSE #12
|
|
139562
139568
|
// See the end of this file for a list
|
|
@@ -139585,8 +139591,6 @@ public:
|
|
|
139585
139591
|
// LICENSE_CHANGE_END
|
|
139586
139592
|
|
|
139587
139593
|
|
|
139588
|
-
|
|
139589
|
-
|
|
139590
139594
|
namespace duckdb {
|
|
139591
139595
|
|
|
139592
139596
|
//===--------------------------------------------------------------------===//
|
|
@@ -139715,6 +139719,8 @@ void ExtensionHelper::LoadExternalExtension(ClientContext &context, const string
|
|
|
139715
139719
|
throw InvalidInputException("Initialization function \"%s\" from file \"%s\" threw an exception: \"%s\"",
|
|
139716
139720
|
init_fun_name, res.filename, e.what());
|
|
139717
139721
|
}
|
|
139722
|
+
|
|
139723
|
+
DatabaseInstance::GetDatabase(context).SetExtensionLoaded(extension);
|
|
139718
139724
|
}
|
|
139719
139725
|
|
|
139720
139726
|
unique_ptr<ReplacementOpenData> ExtensionHelper::ReplacementOpenPre(const string &extension, DBConfig &config) {
|
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 "
|
|
15
|
-
#define DUCKDB_VERSION "v0.5.2-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "2e341b1e6"
|
|
15
|
+
#define DUCKDB_VERSION "v0.5.2-dev518"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|
|
@@ -21180,6 +21180,13 @@ Closes the specified connection and de-allocates all memory allocated for that c
|
|
|
21180
21180
|
*/
|
|
21181
21181
|
DUCKDB_API void duckdb_disconnect(duckdb_connection *connection);
|
|
21182
21182
|
|
|
21183
|
+
/*!
|
|
21184
|
+
Returns the version of the linked DuckDB, with a version postfix for dev versions
|
|
21185
|
+
|
|
21186
|
+
Usually used for developing C extensions that must return this for a compatibility check.
|
|
21187
|
+
*/
|
|
21188
|
+
DUCKDB_API const char *duckdb_library_version();
|
|
21189
|
+
|
|
21183
21190
|
//===--------------------------------------------------------------------===//
|
|
21184
21191
|
// Configuration
|
|
21185
21192
|
//===--------------------------------------------------------------------===//
|
|
@@ -24504,6 +24511,7 @@ public:
|
|
|
24504
24511
|
DUCKDB_API ConnectionManager &GetConnectionManager();
|
|
24505
24512
|
DUCKDB_API void Invalidate();
|
|
24506
24513
|
DUCKDB_API bool IsInvalidated();
|
|
24514
|
+
DUCKDB_API void SetExtensionLoaded(const std::string &extension_name);
|
|
24507
24515
|
|
|
24508
24516
|
idx_t NumberOfThreads();
|
|
24509
24517
|
|
|
@@ -24551,7 +24559,7 @@ public:
|
|
|
24551
24559
|
return;
|
|
24552
24560
|
}
|
|
24553
24561
|
extension.Load(*this);
|
|
24554
|
-
SetExtensionLoaded(extension.Name());
|
|
24562
|
+
instance->SetExtensionLoaded(extension.Name());
|
|
24555
24563
|
}
|
|
24556
24564
|
|
|
24557
24565
|
DUCKDB_API FileSystem &GetFileSystem();
|
|
@@ -24561,7 +24569,6 @@ public:
|
|
|
24561
24569
|
DUCKDB_API static const char *LibraryVersion();
|
|
24562
24570
|
DUCKDB_API static string Platform();
|
|
24563
24571
|
DUCKDB_API bool ExtensionIsLoaded(const std::string &name);
|
|
24564
|
-
DUCKDB_API void SetExtensionLoaded(const std::string &name);
|
|
24565
24572
|
};
|
|
24566
24573
|
|
|
24567
24574
|
} // namespace duckdb
|