This repository was archived by the owner on May 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +1442
-1527
lines changed Expand file tree Collapse file tree 6 files changed +1442
-1527
lines changed Original file line number Diff line number Diff line change 1010 NODE_OPTIONS : ' --max-old-space-size=3200'
1111 # CC_TEST_REPORTER_ID: 59622194cc44d91d2d1d239dffbe6af31e8cb985e6e6369c0743b67ad2cc8713
1212 steps :
13- - { uses: actions/checkout@v2 , with: { persist-credentials: false } }
14- - { uses: actions/setup-node@v2 , with: { node-version: 16, cache: 'yarn' } }
13+ - { uses: actions/checkout@v3 , with: { persist-credentials: false } }
14+ - { uses: actions/setup-node@v3 , with: { node-version: 16, cache: 'yarn' } }
1515
1616 - name : deps
1717 run : yarn --frozen-lockfile
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010 if : " !contains(github.event.head_commit.message, 'skip ci')"
1111 env : { NODE_OPTIONS: '--max-old-space-size=3200' }
1212 steps :
13- - { uses: actions/checkout@v2 , with: { persist-credentials: true } }
14- - { uses: actions/setup-node@v2 , with: { node-version: 16, cache: 'yarn' } }
13+ - { uses: actions/checkout@v3 , with: { persist-credentials: true } }
14+ - { uses: actions/setup-node@v3 , with: { node-version: 16, cache: 'yarn' } }
1515
1616 # Cache for npm/npx in ~/.npm
17- - uses : actions/cache@v2
17+ - uses : actions/cache@v3
1818 with :
1919 path : ~/.npm
2020 key : npm-v1-${{ runner.os }}
Original file line number Diff line number Diff line change 1313 },
1414 "devDependencies" : {
1515 "@naturalcycles/dev-lib" : " ^12.0.1" ,
16- "@types/node" : " ^16 .0.0 " ,
16+ "@types/node" : " ^17 .0.13 " ,
1717 "jest" : " ^27.0.5"
1818 },
1919 "files" : [
Original file line number Diff line number Diff line change 11import {
22 createTestItemsDBM ,
3- getTestItemSchema ,
43 TEST_TABLE ,
4+ testItemDBMJsonSchema ,
55} from '@naturalcycles/db-lib/dist/testing'
66import { SQLiteDB } from './sqlite.db'
77
@@ -13,7 +13,7 @@ test('test1', async () => {
1313 await db . ping ( )
1414
1515 // await db.getTables()
16- await db . createTable ( TEST_TABLE , getTestItemSchema ( ) , { dropIfExists : true } )
16+ await db . createTable ( TEST_TABLE , testItemDBMJsonSchema . build ( ) , { dropIfExists : true } )
1717
1818 const items = createTestItemsDBM ( 3 )
1919 await db . saveBatch ( TEST_TABLE , items )
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ export class SQLiteDB extends BaseCommonDB implements CommonDB {
9797 await this . db . exec ( `DROP TABLE IF EXISTS ${ table } ` )
9898 }
9999
100- override async saveBatch < ROW extends ObjectWithId > (
100+ override async saveBatch < ROW extends Partial < ObjectWithId > > (
101101 table : string ,
102102 rows : ROW [ ] ,
103- _opt ?: CommonDBSaveOptions ,
103+ _opt ?: CommonDBSaveOptions < ROW > ,
104104 ) : Promise < void > {
105105 if ( ! rows . length ) return
106106
You can’t perform that action at this time.
0 commit comments