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.
Files changed (55) hide show
  1. package/.github/workflows/Linux.yml +3 -3
  2. package/.github/workflows/docs.yml +79 -0
  3. package/.github/workflows/macos.yml +3 -3
  4. package/.github/workflows/monetdb-versions.yml +43 -0
  5. package/README.md +44 -514
  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 +18 -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/filetransfer.mdx +43 -0
  17. package/docs/pages/index.mdx +27 -0
  18. package/docs/pages/prepstmt.mdx +13 -0
  19. package/docs/pages/result.mdx +41 -0
  20. package/docs/theme.config.js +35 -0
  21. package/docs/v1/README.md +532 -0
  22. package/package.json +16 -20
  23. package/src/PrepareStatement.ts +37 -0
  24. package/src/connection.ts +125 -0
  25. package/src/defaults.ts +11 -0
  26. package/src/file-transfer.ts +173 -0
  27. package/src/index.ts +3 -0
  28. package/src/mapi.ts +1016 -0
  29. package/src/monetize.ts +67 -0
  30. package/test/connection.ts +43 -0
  31. package/test/exec-queries.ts +112 -0
  32. package/test/filetransfer.ts +94 -0
  33. package/test/prepare-statement.ts +27 -0
  34. package/test/query-stream.ts +41 -0
  35. package/test/tmp/.gitignore +4 -0
  36. package/tsconfig.json +24 -0
  37. package/.travis.yml +0 -11
  38. package/dist/mapi.d.ts +0 -58
  39. package/dist/mapi.js +0 -250
  40. package/dist/mapi.js.map +0 -1
  41. package/dist/tsconfig.tsbuildinfo +0 -1
  42. package/foo.js +0 -16
  43. package/index.js +0 -5
  44. package/src/mapi-connection.js +0 -784
  45. package/src/monetdb-connection.js +0 -385
  46. package/src/utils.js +0 -27
  47. package/test/common.js +0 -45
  48. package/test/install-monetdb.sh +0 -11
  49. package/test/monetdb_stream.js +0 -106
  50. package/test/start-monetdb.sh +0 -38
  51. package/test/test.js +0 -908
  52. package/test/test_connection.js +0 -290
  53. /package/docs/{README.v0.md → v0/README.v0.md} +0 -0
  54. /package/docs/{MapiConnection.md → v1/MapiConnection.md} +0 -0
  55. /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@v1
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-10.15
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