Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: kysely-org/kysely-postgres-js

v3.0.0

03 Sep 10:48
@igalklebanov igalklebanov

Choose a tag to compare

Hey 👋

We're back babyyyy! 🍻

We're no longer coupled to postgres's types - this means, no annoyances (I hope) in Deno, and you can pass Bun's SQL instances as config.postgres.

config.postgres also accepts factories now.

A new config.onReserveConnection hook.

Bumps to all dependencies. postgres is now an optional peer dependency (because of Bun or any future postgres compatible libraries you wanna use).

Should have savepoint support now that we're extending the core PostgreSQL driver.

Full Changelog: v2.0.0...v3.0.0

Assets 2
Loading
allezxandre and theoludwig reacted with hooray emoji
2 people reacted

v2.0.0

26 Oct 22:50
@igalklebanov igalklebanov

Choose a tag to compare

Hey 👋

postgres released version 3.4, and with it the ability to reserve a single connection in the pool.
This means it is 100% aligned with kysely's internals, and this dialect no longer has caveats with single connection executions and transactions.
They work without possibly creating more connection to the database than passed in options max.

Breaking changes:

Now that the dialect no longer has to create pools of 1 as a workaround for the caveats, it can simply accept a postgres instance,
instead of connection options and the postgres function.

Migrating from v1:

  1. Install postgres >= 3.4.0

  2. Change your instantiation code to look like this:

import {Kysely} from 'kysely'
import {PostgresJSDialect} from 'kysely-postgres-js'
import postgres from 'postgres'
const db = new Kysely<Database>({
 dialect: new PostgresJSDialect({
 postgres: postgres({
 database: 'test',
 host: 'localhost',
 max: 10,
 port: 5434,
 user: 'admin',
 }),
 }),
})
Loading
marbemac, sjaghori, mtt-artis, and Blitz2145 reacted with hooray emoji
4 people reacted

v1.1.1

26 Apr 22:41
@igalklebanov igalklebanov

Choose a tag to compare

What's Changed

  • Fix handling of transactions with explicit isolation level by @sds in #3

New Contributors

  • @sds made their first contribution in #3

Full Changelog: v1.1.0...v1.1.1

Contributors

sds
Loading

v1.1.0

21 Apr 13:21
@igalklebanov igalklebanov

Choose a tag to compare

What's Changed

  • add connectionString support.

Full Changelog: v1.0.0...v1.1.0

Loading

AltStyle によって変換されたページ (->オリジナル) /