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

Commit 43c4ce6

Browse files
authored
feat(deps): update db-lib et al. (#19)
* feat(deps): update deps * chore: fix typo
1 parent 8558170 commit 43c4ce6

File tree

4 files changed

+512
-844
lines changed

4 files changed

+512
-844
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: yarn --frozen-lockfile
2424

2525
- name: build
26-
run: yarn build-prod
26+
run: yarn dev-lib build
2727

2828
- name: release
2929
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"mysql": "^2.17.1"
1212
},
1313
"devDependencies": {
14-
"@naturalcycles/dev-lib": "^13.2.1",
14+
"@naturalcycles/dev-lib": "^15.18.0",
1515
"@types/node": "^20.2.3",
1616
"dotenv": "^16.0.0",
1717
"jest": "^29.0.0"

src/mysqlKeyValueDB.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CommonDBCreateOptions, CommonKeyValueDB, KeyValueDBTuple } from '@naturalcycles/db-lib'
2-
import { ObjectWithId, pMap } from '@naturalcycles/js-lib'
2+
import { AppError, ObjectWithId, pMap } from '@naturalcycles/js-lib'
33
import { ReadableTyped } from '@naturalcycles/nodejs-lib'
44
import { QueryOptions } from 'mysql'
55
import { MysqlDB, MysqlDBCfg } from './mysql.db'
@@ -114,4 +114,8 @@ export class MySQLKeyValueDB implements CommonKeyValueDB {
114114
const rows = await this.db.runSQL<{ cnt: number }[]>({ sql })
115115
return rows[0]!.cnt
116116
}
117+
118+
async increment(_table: string, _id: string, _by?: number): Promise<number> {
119+
throw new AppError('MySQLKeyValueDB.increment() is not implemented')
120+
}
117121
}

0 commit comments

Comments
 (0)