monetdb 1.3.3 → 2.0.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.
Files changed (47) hide show
  1. package/.github/workflows/Linux.yml +45 -0
  2. package/.github/workflows/docs.yml +79 -0
  3. package/.github/workflows/macos.yml +43 -0
  4. package/.github/workflows/monetdb-versions.yml +43 -0
  5. package/README.md +43 -512
  6. package/docs/components/alert.tsx +10 -0
  7. package/docs/components/info.tsx +6 -0
  8. package/docs/next.config.js +24 -0
  9. package/docs/package-lock.json +5069 -0
  10. package/docs/package.json +22 -0
  11. package/docs/pages/_app.js +9 -0
  12. package/docs/pages/_meta.json +16 -0
  13. package/docs/pages/apis/_meta.json +4 -0
  14. package/docs/pages/apis/connection.mdx +60 -0
  15. package/docs/pages/apis/result.mdx +39 -0
  16. package/docs/pages/index.mdx +27 -0
  17. package/docs/theme.config.js +35 -0
  18. package/docs/v1/README.md +532 -0
  19. package/package.json +17 -21
  20. package/src/PrepareStatement.ts +37 -0
  21. package/src/connection.ts +125 -0
  22. package/src/defaults.ts +13 -0
  23. package/src/file-transfer.ts +173 -0
  24. package/src/index.ts +3 -0
  25. package/src/mapi.ts +1016 -0
  26. package/src/monetize.ts +67 -0
  27. package/test/connection.ts +43 -0
  28. package/test/exec-queries.ts +100 -0
  29. package/test/filetransfer.ts +94 -0
  30. package/test/prepare-statement.ts +27 -0
  31. package/test/query-stream.ts +41 -0
  32. package/test/tmp/.gitignore +4 -0
  33. package/tsconfig.json +24 -0
  34. package/.travis.yml +0 -11
  35. package/index.js +0 -5
  36. package/src/mapi-connection.js +0 -784
  37. package/src/monetdb-connection.js +0 -385
  38. package/src/utils.js +0 -27
  39. package/test/common.js +0 -45
  40. package/test/install-monetdb.sh +0 -11
  41. package/test/monetdb_stream.js +0 -106
  42. package/test/start-monetdb.sh +0 -38
  43. package/test/test.js +0 -908
  44. package/test/test_connection.js +0 -290
  45. /package/docs/{README.v0.md → v0/README.v0.md} +0 -0
  46. /package/docs/{MapiConnection.md → v1/MapiConnection.md} +0 -0
  47. /package/docs/{v1-notes.md → v1/v1-notes.md} +0 -0
@@ -0,0 +1,45 @@
1
+ name: Linux
2
+
3
+ on:
4
+ push:
5
+ branches: [ master, ts ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-20.04
13
+ env:
14
+ DBFARM: dbfarm
15
+
16
+ strategy:
17
+ matrix:
18
+ node: ['10', '12', '14', '16', '18', '20']
19
+
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+ - name: Use Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ - run: npm ci
27
+ - name: Install MonetDB
28
+ run: |
29
+ sudo apt-get update -qq
30
+ sudo apt-get install -y software-properties-common curl make
31
+ curl https://www.monetdb.org/downloads/MonetDB-GPG-KEY | sudo apt-key add -
32
+ sudo add-apt-repository 'deb http://dev.monetdb.org/downloads/deb/ focal monetdb'
33
+ sudo apt-get update -qq
34
+ sudo apt-get install -y monetdb5-server
35
+ - name: create database
36
+ run: |
37
+ monetdbd create ${{ env.DBFARM }}
38
+ monetdbd start ${{ env.DBFARM }}
39
+ monetdb create test
40
+ monetdb release test
41
+ monetdb start test
42
+ - name: Run Unit-Tests
43
+ run: |
44
+ npm t
45
+
@@ -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
@@ -0,0 +1,43 @@
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name: macos
5
+
6
+ on:
7
+ push:
8
+ branches: [ master, ts ]
9
+ pull_request:
10
+ branches: [ master ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: macos-latest
16
+ env:
17
+ DBFARM: dbfarm
18
+
19
+ strategy:
20
+ matrix:
21
+ node: ['10', '12', '14', '16', '18', '20']
22
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Use Node.js ${{ matrix.node-version }}
27
+ uses: actions/setup-node@v2
28
+ with:
29
+ node-version: ${{ matrix.node-version }}
30
+ - run: npm ci
31
+ - name: Install MonetDB
32
+ run: |
33
+ brew install monetdb
34
+ - name: create database
35
+ run: |
36
+ monetdbd create ${{ env.DBFARM }}
37
+ monetdbd start ${{ env.DBFARM }}
38
+ monetdb create test
39
+ monetdb release test
40
+ monetdb start test
41
+ - name: Run Unit-Tests
42
+ run: |
43
+ npm t
@@ -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