monetdb 1.3.4 → 2.0.1
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/.github/workflows/Linux.yml +3 -3
- package/.github/workflows/docs.yml +79 -0
- package/.github/workflows/macos.yml +3 -3
- package/.github/workflows/monetdb-versions.yml +43 -0
- package/README.md +44 -514
- package/docs/components/alert.tsx +10 -0
- package/docs/components/info.tsx +6 -0
- package/docs/next.config.js +24 -0
- package/docs/package-lock.json +5069 -0
- package/docs/package.json +22 -0
- package/docs/pages/_app.js +9 -0
- package/docs/pages/_meta.json +18 -0
- package/docs/pages/apis/_meta.json +4 -0
- package/docs/pages/apis/connection.mdx +60 -0
- package/docs/pages/apis/result.mdx +39 -0
- package/docs/pages/filetransfer.mdx +43 -0
- package/docs/pages/index.mdx +27 -0
- package/docs/pages/prepstmt.mdx +13 -0
- package/docs/pages/result.mdx +41 -0
- package/docs/theme.config.js +35 -0
- package/docs/v1/README.md +532 -0
- package/package.json +16 -20
- package/src/PrepareStatement.ts +37 -0
- package/src/connection.ts +125 -0
- package/src/defaults.ts +11 -0
- package/src/file-transfer.ts +173 -0
- package/src/index.ts +3 -0
- package/src/mapi.ts +1016 -0
- package/src/monetize.ts +67 -0
- package/test/connection.ts +43 -0
- package/test/exec-queries.ts +112 -0
- package/test/filetransfer.ts +94 -0
- package/test/prepare-statement.ts +27 -0
- package/test/query-stream.ts +41 -0
- package/test/tmp/.gitignore +4 -0
- package/tsconfig.json +24 -0
- package/.travis.yml +0 -11
- package/dist/mapi.d.ts +0 -58
- package/dist/mapi.js +0 -250
- package/dist/mapi.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/foo.js +0 -16
- package/index.js +0 -5
- package/src/mapi-connection.js +0 -784
- package/src/monetdb-connection.js +0 -385
- package/src/utils.js +0 -27
- package/test/common.js +0 -45
- package/test/install-monetdb.sh +0 -11
- package/test/monetdb_stream.js +0 -106
- package/test/start-monetdb.sh +0 -38
- package/test/test.js +0 -908
- package/test/test_connection.js +0 -290
- /package/docs/{README.v0.md → v0/README.v0.md} +0 -0
- /package/docs/{MapiConnection.md → v1/MapiConnection.md} +0 -0
- /package/docs/{v1-notes.md → v1/v1-notes.md} +0 -0
@@ -2,7 +2,7 @@ name: Linux
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [ master ]
|
5
|
+
branches: [ master, ts ]
|
6
6
|
pull_request:
|
7
7
|
branches: [ master ]
|
8
8
|
|
@@ -15,12 +15,12 @@ jobs:
|
|
15
15
|
|
16
16
|
strategy:
|
17
17
|
matrix:
|
18
|
-
node: ['10', '12', '14', '16', '18']
|
18
|
+
node: ['10', '12', '14', '16', '18', '20']
|
19
19
|
|
20
20
|
steps:
|
21
21
|
- uses: actions/checkout@v2
|
22
22
|
- name: Use Node.js ${{ matrix.node-version }}
|
23
|
-
uses: actions/setup-node@
|
23
|
+
uses: actions/setup-node@v3
|
24
24
|
with:
|
25
25
|
node-version: ${{ matrix.node-version }}
|
26
26
|
- run: npm ci
|
@@ -0,0 +1,79 @@
|
|
1
|
+
name: Deploy docs site to Pages
|
2
|
+
|
3
|
+
on:
|
4
|
+
# Runs on pushes targeting the default branch
|
5
|
+
push:
|
6
|
+
branches: ["master", "ts"]
|
7
|
+
paths:
|
8
|
+
- "docs/**"
|
9
|
+
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
11
|
+
workflow_dispatch:
|
12
|
+
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
14
|
+
permissions:
|
15
|
+
contents: read
|
16
|
+
pages: write
|
17
|
+
id-token: write
|
18
|
+
|
19
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
20
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
21
|
+
concurrency:
|
22
|
+
group: "pages"
|
23
|
+
cancel-in-progress: false
|
24
|
+
|
25
|
+
defaults:
|
26
|
+
run:
|
27
|
+
shell: bash
|
28
|
+
working-directory: docs
|
29
|
+
|
30
|
+
jobs:
|
31
|
+
# Build job
|
32
|
+
build:
|
33
|
+
runs-on: ubuntu-latest
|
34
|
+
steps:
|
35
|
+
- name: Checkout
|
36
|
+
uses: actions/checkout@v4
|
37
|
+
- name: Setup Node
|
38
|
+
uses: actions/setup-node@v3
|
39
|
+
with:
|
40
|
+
node-version: "18"
|
41
|
+
cache: npm
|
42
|
+
- name: Setup Pages
|
43
|
+
uses: actions/configure-pages@v3
|
44
|
+
with:
|
45
|
+
# Automatically inject basePath in your Next.js configuration file and disable
|
46
|
+
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
|
47
|
+
#
|
48
|
+
# You may remove this line if you want to manage the configuration yourself.
|
49
|
+
static_site_generator: next
|
50
|
+
- name: Restore cache
|
51
|
+
uses: actions/cache@v3
|
52
|
+
with:
|
53
|
+
path: |
|
54
|
+
.next/cache
|
55
|
+
# Generate a new cache whenever packages or source files change.
|
56
|
+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
57
|
+
# If source files changed but packages didn't, rebuild from a prior cache.
|
58
|
+
restore-keys: |
|
59
|
+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
|
60
|
+
- name: Install dependencies
|
61
|
+
run: npm install
|
62
|
+
- name: Build
|
63
|
+
run: npm run build
|
64
|
+
- name: Upload artifact
|
65
|
+
uses: actions/upload-pages-artifact@v2
|
66
|
+
with:
|
67
|
+
path: docs/dist
|
68
|
+
|
69
|
+
# Deployment job
|
70
|
+
deploy:
|
71
|
+
environment:
|
72
|
+
name: github-pages
|
73
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
74
|
+
runs-on: ubuntu-latest
|
75
|
+
needs: build
|
76
|
+
steps:
|
77
|
+
- name: Deploy to GitHub Pages
|
78
|
+
id: deployment
|
79
|
+
uses: actions/deploy-pages@v2
|
@@ -5,20 +5,20 @@ name: macos
|
|
5
5
|
|
6
6
|
on:
|
7
7
|
push:
|
8
|
-
branches: [ master ]
|
8
|
+
branches: [ master, ts ]
|
9
9
|
pull_request:
|
10
10
|
branches: [ master ]
|
11
11
|
|
12
12
|
jobs:
|
13
13
|
build:
|
14
14
|
|
15
|
-
runs-on: macos-
|
15
|
+
runs-on: macos-latest
|
16
16
|
env:
|
17
17
|
DBFARM: dbfarm
|
18
18
|
|
19
19
|
strategy:
|
20
20
|
matrix:
|
21
|
-
node: ['10', '12', '14', '16', '18']
|
21
|
+
node: ['10', '12', '14', '16', '18', '20']
|
22
22
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
23
23
|
|
24
24
|
steps:
|
@@ -0,0 +1,43 @@
|
|
1
|
+
name: Test against various MonetDB versions
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ master, ts ]
|
5
|
+
pull_request:
|
6
|
+
|
7
|
+
# Allows you to run this workflow manually from the Actions tab
|
8
|
+
workflow_dispatch:
|
9
|
+
|
10
|
+
schedule:
|
11
|
+
- cron: '5 0 * * *'
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
run_tests:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
fail-fast: false
|
18
|
+
matrix:
|
19
|
+
monetdbversion:
|
20
|
+
- "monetdb/dev-builds:Jan2022"
|
21
|
+
- "monetdb/dev-builds:Sep2022"
|
22
|
+
- "monetdb/dev-builds:Jun2023"
|
23
|
+
- "monetdb/dev-builds:default"
|
24
|
+
node: ['18']
|
25
|
+
services:
|
26
|
+
monetdb:
|
27
|
+
image: ${{ matrix.monetdbversion }}
|
28
|
+
env:
|
29
|
+
MDB_DAEMON_PASS: monetdb
|
30
|
+
MDB_DB_ADMIN_PASS: monetdb
|
31
|
+
MDB_CREATE_DBS: test
|
32
|
+
ports:
|
33
|
+
- 50000:50000
|
34
|
+
steps:
|
35
|
+
- name: Check out
|
36
|
+
uses: actions/checkout@v3
|
37
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
38
|
+
uses: actions/setup-node@v3
|
39
|
+
with:
|
40
|
+
node-version: ${{ matrix.node-version }}
|
41
|
+
- run: npm ci
|
42
|
+
- name: Run tests
|
43
|
+
run: npm t
|