Skip to content

Commit

Permalink
v0.19.11
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Jul 19, 2022
1 parent 33e9ade commit 396a5f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,15 @@ among other places.
```ts
import { Pool } from 'pg'
import Cursor from 'pg-cursor' // or `import * as Cursor from 'pg-cursor'` depending on your tsconfig
// or `import * as Cursor from 'pg-cursor'` depending on your tsconfig
import Cursor from 'pg-cursor'
import {
Kysely,
PostgresDialect,
} from 'kysely'

const db = new Kysely<Database>({
// PostgresDialect requires Cursor dependency
// PostgresDialect requires the Cursor dependency
dialect: new PostgresDialect({
pool: new Pool({
host: 'localhost',
Expand All @@ -219,16 +220,14 @@ async function demo() {
console.log(`Hello mr. ${male.first_name}!`)

if (male.first_name === "John") {
break; // at this point no more queries are streamed from the database to the client
// After this line the db connection is released and no more
// rows are streamed from the database to the client
break;
}

}
}
```




## Update queries

See the [set method](https://koskimas.github.io/kysely/classes/UpdateQueryBuilder.html#set) and the
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kysely",
"version": "0.19.10",
"version": "0.19.11",
"description": "Type safe SQL query builder",
"repository": {
"type": "git",
Expand Down

0 comments on commit 396a5f0

Please sign in to comment.