Skip to content

Commit

Permalink
feat(deps): update db-lib et al. (#19)
Browse files Browse the repository at this point in the history
* feat(deps): update deps

* chore: fix typo
  • Loading branch information
mrnagydavid authored Oct 3, 2024
1 parent 8558170 commit 43c4ce6
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 844 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: yarn --frozen-lockfile

- name: build
run: yarn build-prod
run: yarn dev-lib build

- name: release
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"mysql": "^2.17.1"
},
"devDependencies": {
"@naturalcycles/dev-lib": "^13.2.1",
"@naturalcycles/dev-lib": "^15.18.0",
"@types/node": "^20.2.3",
"dotenv": "^16.0.0",
"jest": "^29.0.0"
Expand Down
6 changes: 5 additions & 1 deletion src/mysqlKeyValueDB.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonDBCreateOptions, CommonKeyValueDB, KeyValueDBTuple } from '@naturalcycles/db-lib'
import { ObjectWithId, pMap } from '@naturalcycles/js-lib'
import { AppError, ObjectWithId, pMap } from '@naturalcycles/js-lib'
import { ReadableTyped } from '@naturalcycles/nodejs-lib'
import { QueryOptions } from 'mysql'
import { MysqlDB, MysqlDBCfg } from './mysql.db'
Expand Down Expand Up @@ -114,4 +114,8 @@ export class MySQLKeyValueDB implements CommonKeyValueDB {
const rows = await this.db.runSQL<{ cnt: number }[]>({ sql })
return rows[0]!.cnt
}

async increment(_table: string, _id: string, _by?: number): Promise<number> {
throw new AppError('MySQLKeyValueDB.increment() is not implemented')
}
}
Loading

0 comments on commit 43c4ce6

Please sign in to comment.