duckdb 0.10.1-dev13.0 → 0.10.1-dev22.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/NodeJS.yml +4 -18
- package/package.json +1 -1
- package/src/database.cpp +1 -0
- package/myfile.txt +0 -1
@@ -11,8 +11,8 @@ concurrency:
|
|
11
11
|
|
12
12
|
env:
|
13
13
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
14
|
-
AWS_ACCESS_KEY_ID: ${{secrets.
|
15
|
-
AWS_SECRET_ACCESS_KEY: ${{secrets.
|
14
|
+
AWS_ACCESS_KEY_ID: ${{secrets.S3_DUCKDB_NODE_ID}}
|
15
|
+
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_DUCKDB_NODE_KEY}}
|
16
16
|
AWS_DEFAULT_REGION: us-east-1
|
17
17
|
|
18
18
|
jobs:
|
@@ -30,20 +30,6 @@ jobs:
|
|
30
30
|
with:
|
31
31
|
python-version: '3.11'
|
32
32
|
|
33
|
-
- name: Debug workflow
|
34
|
-
shell: bash
|
35
|
-
run:
|
36
|
-
echo "$AWS_ACCESS_KEY_ID" "$AWS_DEFAULT_REGION"
|
37
|
-
echo "$AWS_ACCESS_KEY_ID" > myfile.txt
|
38
|
-
LOCAL_BINARY=myfile.txt
|
39
|
-
REMOTE_BINARY=https://npm.duckdb.org/duckdb/myfile.txt
|
40
|
-
S3_ENDPOINT_BINARY="s3://duckdb-npm/"${REMOTE_BINARY:23}
|
41
|
-
pip install awscli
|
42
|
-
echo "local binary at $LOCAL_BINARY"
|
43
|
-
echo "remote binary at $REMOTE_BINARY"
|
44
|
-
echo "served from $S3_ENDPOINT_BINARY"
|
45
|
-
aws s3 cp $LOCAL_BINARY $S3_ENDPOINT_BINARY --acl public-read
|
46
|
-
|
47
33
|
- name: Setup NPM
|
48
34
|
shell: bash
|
49
35
|
run: ./scripts/node_version.sh upload
|
@@ -62,7 +48,7 @@ jobs:
|
|
62
48
|
strategy:
|
63
49
|
matrix:
|
64
50
|
# node.js current support policy to be found at https://github.com/duckdb/duckdb-node/tree/main/#Supported-Node-versions
|
65
|
-
node: [ '16', '17', '18', '19', '20', '21']
|
51
|
+
node: [ '12', '14', '16', '17', '18', '19', '20', '21']
|
66
52
|
target_arch: [ x64, arm64 ]
|
67
53
|
isRelease:
|
68
54
|
- ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}
|
@@ -95,7 +81,7 @@ jobs:
|
|
95
81
|
# Default Python (3.12) doesn't have support for distutils
|
96
82
|
- uses: actions/setup-python@v4
|
97
83
|
with:
|
98
|
-
python-version: '3.
|
84
|
+
python-version: '3.10'
|
99
85
|
|
100
86
|
- name: Update apt
|
101
87
|
shell: bash
|
package/package.json
CHANGED
package/src/database.cpp
CHANGED
@@ -141,6 +141,7 @@ static void TaskCompleteCallback(napi_env e, napi_status status, void *data) {
|
|
141
141
|
duckdb::unique_ptr<TaskHolder> holder((TaskHolder *)data);
|
142
142
|
holder->db->TaskComplete(e);
|
143
143
|
holder->task->DoCallback();
|
144
|
+
napi_delete_async_work(e, holder->request);
|
144
145
|
}
|
145
146
|
|
146
147
|
void Database::TaskComplete(Napi::Env env) {
|
package/myfile.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
AKIA4HHCC5ZJWPMXCW75 us-east-1 echo AKIA4HHCC5ZJWPMXCW75 LOCAL_BINARY=myfile.txt REMOTE_BINARY=https://npm.duckdb.org/duckdb/myfile.txt S3_ENDPOINT_BINARY=s3://duckdb-npm/ pip install awscli echo local binary at echo remote binary at echo served from aws s3 cp --acl public-read
|