mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
updated react example with todo example
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Postgres adapter for `bknd` (experimental)
|
||||
This packages adds an adapter to use a Postgres database with `bknd`. It is based on `pg` and the driver included in `kysely`.
|
||||
This packages adds an adapter to use a Postgres database with [`bknd`](https://github.com/bknd-io/bknd). It is based on [`pg`](https://github.com/brianc/node-postgres) and the driver included in [`kysely`](https://github.com/kysely-org/kysely).
|
||||
|
||||
## Installation
|
||||
Install the adapter with:
|
||||
|
||||
@@ -5,14 +5,20 @@
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"test": "bun test",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"updater": "bun x npm-check-updates -ui",
|
||||
"prepublishOnly": "bun run typecheck && bun run test && bun run build",
|
||||
"docker:start": "docker run --rm --name bknd-test-postgres -d -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=bknd -p 5430:5432 postgres:17",
|
||||
"docker:stop": "docker stop bknd-test-postgres"
|
||||
},
|
||||
"dependencies": {
|
||||
"pg": "^8.12.0",
|
||||
"pg": "^8.14.0",
|
||||
"kysely": "^0.27.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -21,7 +27,7 @@
|
||||
"@types/pg": "^8.11.11",
|
||||
"bknd": "workspace:*",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.6.3"
|
||||
"typescript": "^5.8.2"
|
||||
},
|
||||
"tsup": {
|
||||
"entry": ["src/index.ts"],
|
||||
@@ -30,7 +36,6 @@
|
||||
"clean": true,
|
||||
"minify": true,
|
||||
"dts": true,
|
||||
"metafile": true,
|
||||
"external": ["bknd", "pg", "kysely"]
|
||||
},
|
||||
"files": ["dist", "README.md", "!*.map", "!metafile*.json"]
|
||||
|
||||
Reference in New Issue
Block a user