Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 365966d

Browse files
feat: switch back from @vscode/sqlite3 to sqlite3
As Arm64 install seems to work again
1 parent 380258f commit 365966d

File tree

7 files changed

+1497
-1047
lines changed

7 files changed

+1497
-1047
lines changed

.github/workflows/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
run: |
2424
# curl -s -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter
2525
# ./cc-test-reporter before-build
26-
yarn test-ci
26+
yarn test
2727
# ./cc-test-reporter after-build -t lcov

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"@naturalcycles/db-lib": "^8.7.0",
88
"@naturalcycles/js-lib": "^14.27.0",
99
"@naturalcycles/nodejs-lib": "^12.14.5",
10-
"@vscode/sqlite3": "^5.0.2",
1110
"sql-template-strings": "^2.2.2",
12-
"sqlite": "^4.0.23"
11+
"sqlite": "^4.0.23",
12+
"sqlite3": "^5.1.1"
1313
},
1414
"devDependencies": {
1515
"@naturalcycles/dev-lib": "^13.0.1",
1616
"@types/node": "^18.0.0",
17-
"jest": "^28.1.1"
17+
"jest": "^29.0.3"
1818
},
1919
"files": [
2020
"dist",

src/sqlite.db.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('test1', async () => {
1313
await db.ping()
1414

1515
// await db.getTables()
16-
await db.createTable(TEST_TABLE, testItemDBMJsonSchema.build(), { dropIfExists: true })
16+
await db.createTable(TEST_TABLE, testItemDBMJsonSchema, { dropIfExists: true })
1717

1818
const items = createTestItemsDBM(3)
1919
await db.saveBatch(TEST_TABLE, items)

src/sqlite.db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
import { CommonLogger, JsonSchemaObject, ObjectWithId } from '@naturalcycles/js-lib'
99
import { boldWhite } from '@naturalcycles/nodejs-lib/dist/colors'
1010
import { Database, open } from 'sqlite'
11-
import { OPEN_CREATE, OPEN_READWRITE } from '@vscode/sqlite3'
12-
import * as sqlite3 from '@vscode/sqlite3'
11+
import { OPEN_CREATE, OPEN_READWRITE } from 'sqlite3'
12+
import * as sqlite3 from 'sqlite3'
1313
import { insertSQL } from './query.util'
1414

1515
export interface SQLiteDBCfg {

src/sqliteKeyValueDB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { CommonLogger, pMap } from '@naturalcycles/js-lib'
33
import { readableCreate, ReadableTyped } from '@naturalcycles/nodejs-lib'
44
import { boldWhite } from '@naturalcycles/nodejs-lib/dist/colors'
55
import { Database, open } from 'sqlite'
6-
import * as sqlite3 from '@vscode/sqlite3'
7-
import { OPEN_CREATE, OPEN_READWRITE } from '@vscode/sqlite3'
6+
import * as sqlite3 from 'sqlite3'
7+
import { OPEN_CREATE, OPEN_READWRITE } from 'sqlite3'
88
import { deleteByIdsSQL, insertKVSQL, selectKVSQL } from './query.util'
99
import { SqliteReadable } from './stream.util'
1010

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "@naturalcycles/dev-lib/cfg/tsconfig.json",
33
"compilerOptions": {
4-
"sourceMap": true,
54
"outDir": "dist"
65
},
76
"include": ["src"],

yarn.lock

Lines changed: 1488 additions & 1037 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)