duckdb 0.3.2-dev710.0 → 0.3.2-dev739.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/binding.gyp +1 -0
- package/configure +3 -6
- package/package.json +1 -1
- package/src/database.cpp +3 -0
- package/src/duckdb.cpp +16360 -20686
- package/src/duckdb.hpp +4548 -2
- package/src/parquet-amalgamation.cpp +41275 -0
- package/src/parquet-amalgamation.hpp +7558 -0
- package/test/parquet.js +16 -0
package/binding.gyp
CHANGED
package/configure
CHANGED
|
@@ -6,12 +6,9 @@ set -x
|
|
|
6
6
|
cd `dirname $0`
|
|
7
7
|
|
|
8
8
|
if [ ! -f "../../scripts/amalgamation.py" ]; then
|
|
9
|
-
echo "Could find
|
|
9
|
+
echo "Could not find the amalgamation build script"
|
|
10
10
|
exit 1
|
|
11
11
|
fi
|
|
12
12
|
|
|
13
|
-
(cd ../.. && python scripts/amalgamation.py --source=tools/nodejs/src/duckdb.cpp --header=tools/nodejs/src/duckdb.hpp)
|
|
14
|
-
|
|
15
|
-
# cp src/parquet-extension.h src/parquet-extension.h.tmp
|
|
16
|
-
# sed 's/duckdb[.]hpp/duckdb.h/g' src/parquet-extension.h.tmp > src/parquet-extension.h
|
|
17
|
-
# rm src/parquet-extension.h.tmp
|
|
13
|
+
(cd ../.. && python scripts/amalgamation.py --extended --source=tools/nodejs/src/duckdb.cpp --header=tools/nodejs/src/duckdb.hpp)
|
|
14
|
+
(cd ../.. && python scripts/parquet_amalgamation.py && cp src/amalgamation/parquet-amalgamation* tools/nodejs/src/)
|
package/package.json
CHANGED
package/src/database.cpp
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#include "duckdb_node.hpp"
|
|
2
|
+
#include "parquet-amalgamation.hpp"
|
|
2
3
|
|
|
3
4
|
namespace node_duckdb {
|
|
4
5
|
|
|
@@ -28,6 +29,8 @@ struct OpenTask : public Task {
|
|
|
28
29
|
void DoWork() override {
|
|
29
30
|
try {
|
|
30
31
|
Get<Database>().database = duckdb::make_unique<duckdb::DuckDB>(filename);
|
|
32
|
+
duckdb::ParquetExtension extension;
|
|
33
|
+
extension.Load(*Get<Database>().database);
|
|
31
34
|
success = true;
|
|
32
35
|
|
|
33
36
|
} catch (std::exception &ex) {
|