Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to disable 'preventAwait' #748

Closed
wants to merge 14 commits into from

Conversation

wirekang
Copy link
Contributor

@wirekang wirekang commented Oct 26, 2023

Although @koskimas closed #693 as 'wontfix', I'm suggesting a way to disable the behavior of preventAwait, with a small footprint. We often returning non-Promise value in async function or then() chains. It would be great if Kysely have an option for those situation, for people who aren't Knex-newbie or know how to execute query.

The name 'allowNoopAwait' is a little bit temporary, it can be renamed as 'allowAwait', 'ignoreAwait', 'disablePreventAwait', 'iKnowHowToExecute' or something you suggest.

@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 29, 2024 9:31am

@igalklebanov
Copy link
Member

igalklebanov commented Nov 7, 2023

Hey 👋

We often returning non-Promise value in async function or then() chains. It would be great if Kysely have an option for those situation

I didn't get the necessity quite honestly. Can you elaborate on that?

@igalklebanov igalklebanov added the enhancement New feature or request label Nov 7, 2023
@wirekang
Copy link
Contributor Author

wirekang commented Nov 8, 2023

I didn't get the necessity quite honestly. Can you elaborate on that?

The code from original issue #693, and I'm not sure I can find better example.. Yeah it is not "often" but "rarely", sorry for overstating.
But it worth considering turning off the behavior that throwing error without actual logical reason.

@koskimas
Copy link
Member

koskimas commented Nov 9, 2023

But it worth considering turning off the behavior that throwing error without actual logical reason.

There is a logical reason. People coming from knex and objection would make the mistake of awaiting queries without execute. Kysely is heavily inspired by knex which naturally leads people thinking it behaves the same.

@koskimas koskimas closed this Nov 9, 2023
@koskimas koskimas reopened this Nov 9, 2023
@wirekang
Copy link
Contributor Author

There is a logical reason. People coming from knex and objection would make the mistake of awaiting queries without execute. Kysely is heavily inspired by knex which naturally leads people thinking it behaves the same.

@koskimas I didn't denied it. I meant "programming logic error". Anyways, It was a light suggestion, never mind.

@koskimas
Copy link
Member

koskimas commented Jan 13, 2024

I think it wouldn't hurt to add this. But remove the delete clazz.prototype.then thing. Having a simple then method that simply values through when prevent = false shouldn't have any measurable effect on performance.

Edit: Or actually, will that cause infinite recursion? Does resolve call .then?

@wirekang
Copy link
Contributor Author

wirekang commented Jan 14, 2024

@koskimas Yes. That was the reason I have to delete then.

igalklebanov and others added 5 commits August 25, 2024 11:53
…kysely-org#1085)

* add reusable helpers recipe and implement missing expression features

* force node 22.4.1 in CI because of an npm bug
* feat: add postgres range types (kysely-org#1086)

* feat: support refresh naterialized view

* fix tests by adding .materialized() to remove the matview

* fix failing test

* fix: References typo (kysely-org#1092)

* chore: refresh-view-node.ts => refresh-materialized-view-node.ts

* chore: export node in index.ts

---------

Co-authored-by: Isak <[email protected]>
Co-authored-by: Jonathan Wu <[email protected]>
@matthew-holder-revvity
Copy link

matthew-holder-revvity commented Aug 27, 2024

preventAwait actually causes issues with anybody trying to return partially built queries from async functions. Not sure if the builders originally implemented the thenable protocol, but it's obvious it shouldn't be used as a means to execute the queries. It does mean that any return of queries or an attempt at query composition in async functions cannot work with preventAwait on the builders.

@marceloverdijk
Copy link

marceloverdijk commented Sep 5, 2024

I'm hitting this as well to use a async function to enhance a query...

I'm trying to create a function that enhances the query (SelectQueryBuilder) with pagination, sorting and filtering options that are derived from a HTTP request.

This function looks like:

  async applyQueryParams<DB, TB extends keyof DB, O>(qb: SelectQueryBuilder<DB, TB, O>): Promise<SelectQueryBuilder<DB, TB, O>> {
    const data = await this.getValidatedData<PaginationSchema & SortSchema & FilterSchema>();
    const page = .. // derive page
    const pageSize = .. // derive page size
    const sort = .. // derive sort
    const filter = .. // derive filter

    console.log("Query builder before pagination:", qb);

    qb = qb.limit(pageSize);
    qb = qb.offset((page - 1) * pageSize);

    console.log("Query builder after pagination:", qb);

    return qb;
  }

this function needs to be async as the getValidatedData() is also async.

in a handler I call applyQueryParams like:

async handle(c: C) {

    let qb = c.var.mydb
      .selectFrom('customer')
      .selectAll('customer');

    console.log("Before applying query params:", qb);

    qb = await this.applyQueryParams(qb);

    console.log("After applying query params:", qb);

    const customers = await qb.execute();

but this fails with:

Before applying query params: SelectQueryBuilderImpl {}
Query builder before pagination: SelectQueryBuilderImpl {}
Query builder after pagination: SelectQueryBuilderImpl {}
✘ [ERROR] Error: don't await SelectQueryBuilder instances directly. To execute the query you need to call `execute` or `executeTakeFirst`.

I understand the rationale behind the preventAwait for knex users, but Typescript users - not coming from Knex - are now confused and limited.

@koskimas
Copy link
Member

koskimas commented Sep 6, 2024

I'll remove preventAwait if you guys promise the handle all incoming issues it will cause. I'll just tag you and ignore the issue. Sounds good?

@wirekang
Copy link
Contributor Author

@koskimas Just removed all preventAwait related lines from v0.28 branch. Is it what you meant? (This PR is for master branch).

wirekang added a commit to wirekang/kysely that referenced this pull request Sep 29, 2024
@wirekang wirekang mentioned this pull request Sep 29, 2024
@wirekang
Copy link
Contributor Author

New PR for v0.28 branch: #1160

@wirekang wirekang closed this Sep 29, 2024
koskimas pushed a commit that referenced this pull request Sep 29, 2024
igalklebanov pushed a commit that referenced this pull request Oct 3, 2024
igalklebanov pushed a commit that referenced this pull request Oct 3, 2024
igalklebanov pushed a commit that referenced this pull request Oct 12, 2024
igalklebanov pushed a commit that referenced this pull request Oct 19, 2024
igalklebanov pushed a commit that referenced this pull request Oct 24, 2024
igalklebanov pushed a commit that referenced this pull request Oct 24, 2024
igalklebanov pushed a commit that referenced this pull request Oct 27, 2024
igalklebanov pushed a commit that referenced this pull request Nov 2, 2024
igalklebanov pushed a commit that referenced this pull request Nov 24, 2024
igalklebanov pushed a commit that referenced this pull request Dec 1, 2024
igalklebanov pushed a commit that referenced this pull request Dec 8, 2024
igalklebanov pushed a commit that referenced this pull request Jan 5, 2025
igalklebanov pushed a commit that referenced this pull request Jan 9, 2025
igalklebanov pushed a commit that referenced this pull request Jan 11, 2025
igalklebanov pushed a commit that referenced this pull request Jan 12, 2025
igalklebanov pushed a commit that referenced this pull request Jan 17, 2025
igalklebanov pushed a commit that referenced this pull request Jan 19, 2025
igalklebanov pushed a commit that referenced this pull request Feb 8, 2025
igalklebanov pushed a commit that referenced this pull request Feb 9, 2025
igalklebanov pushed a commit that referenced this pull request Feb 18, 2025
lucianolix added a commit to lucianolix/kysely that referenced this pull request Feb 21, 2025
commit 04040e3
Author: lucianolix <[email protected]>
Date:   Fri Feb 21 02:15:50 2025 -0400

    whitespace diff trigger

commit af9718d
Author: lucianolix <[email protected]>
Date:   Fri Feb 21 02:14:58 2025 -0400

    remove unnecessary file change

commit 883a0c2
Merge: 36f8a1d 45b71e2
Author: lucianolix <[email protected]>
Date:   Fri Feb 21 02:10:34 2025 -0400

    XMerge branch 'v0.28' into alter-type-builder

commit 45b71e2
Merge: 107076a 0497525
Author: lucianolix <[email protected]>
Date:   Fri Feb 21 02:09:24 2025 -0400

    Merge branch 'kysely-org:v0.28' into v0.28

commit 36f8a1d
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 20:41:07 2025 -0400

    run prettier

commit ae5ddc2
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 20:37:01 2025 -0400

    remove ;

commit 31eea41
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 18:53:28 2025 -0400

    change remaining wrong identifierNodes to valueNodes, test fixes

commit f007de7
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 18:33:22 2025 -0400

    Swap IdentifierNodes for ValueNodes

commit e658a82
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 17:13:14 2025 -0400

    remove unused import, typing tests

commit 2cb3935
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 03:03:10 2025 -0400

    missing space on query compiler

commit b054013
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 03:01:27 2025 -0400

    enforce mutual exclusivity between before and after

commit 933e2d0
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 02:52:03 2025 -0400

    query compiler impl of add value

commit dedb9c2
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 02:50:07 2025 -0400

    Docs, better examples, swapped addValue to callback pattern

commit e6826b4
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 01:59:52 2025 -0400

    add docs to alter type builder

commit 62aa655
Author: lucianolix <[email protected]>
Date:   Thu Feb 20 01:48:59 2025 -0400

    add documentation for alterType func inside schema.ts

commit ccb5a9f
Author: lucianolix <[email protected]>
Date:   Wed Feb 19 03:31:00 2025 -0400

    WIP full api spec!

commit 0497525
Author: Martin Adámek <[email protected]>
Date:   Sun Feb 9 13:27:47 2025 +0100

    refactor: separate isolation level and access mode with a comma in MySQL (kysely-org#1350)

commit f32c231
Author: Martin Adámek <[email protected]>
Date:   Sun Feb 9 12:48:17 2025 +0100

    feat: Allow read-only transactions in Postgres and MySQL (kysely-org#1342)

    * feat: Allow read-only transactions in Postgres and MySQL

    Closes kysely-org#1341

    * use `accessMode` instead

    * add tests

    * access mode type and validation, rearranging stuff a bit.

    Co-authored-by: Martin Adámek <[email protected]>

    * rearranging stuff a bit.

    Co-authored-by: Martin Adámek <[email protected]>

    * align/simplify tests a bit

    Co-authored-by: Martin Adámek <[email protected]>

    ---------

    Co-authored-by: igalklebanov <[email protected]>
    Co-authored-by: Martin Adámek <[email protected]>

commit 6467b77
Author: Alessio Napolitano <[email protected]>
Date:   Sat Feb 8 23:59:59 2025 +0100

    feat: expands limit in select accepting null value (kysely-org#1347)

    * feat: expands limit in select accepting null value

    * explain in jsdocs, move test case.

    Co-authored-by: Alessio Napolitano <[email protected]>

    ---------

    Co-authored-by: igalklebanov <[email protected]>

commit 989bac2
Author: Reid Swan <[email protected]>
Date:   Sat Feb 1 16:02:34 2025 +0200

    feat: Add disableTransactions option to Migrator (kysely-org#1335)

    Co-authored-by: Igal Klebanov <[email protected]>

commit 9918cc8
Author: Igal Klebanov <[email protected]>
Date:   Mon Jan 27 01:20:10 2025 +0200

    add `queryId` to `CompiledQuery` to allow async communication between more components. (kysely-org#176)

commit 8e1dc8e
Author: Igal Klebanov <[email protected]>
Date:   Sat Jan 25 23:36:48 2025 +0200

    revisiting `orderBy`. (kysely-org#1326)

commit bc0e2dd
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 21:17:30 2025 +0200

    minor ci tweaks.

    ..

commit c1963b7
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 20:43:31 2025 +0200

    improve join tests dialect coverage.

commit 1623b48
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 20:00:36 2025 +0200

    dry up joins.

commit 92c7e44
Author: Ersin Akinci <[email protected]>
Date:   Sat Jan 18 10:31:07 2025 -0700

    Add support for cross join and cross join lateral (kysely-org#1325)

    Co-authored-by: Igal Klebanov <[email protected]>

commit b61300c
Author: Simon Schick <[email protected]>
Date:   Fri Jan 17 17:45:41 2025 +0100

    Support json_agg(column_ref) (kysely-org#1316)

    Co-authored-by: Simon Schick <[email protected]>
    Co-authored-by: Igal Klebanov <[email protected]>

commit 92bd46d
Author: Drew Marshall <[email protected]>
Date:   Sun Jan 12 09:05:16 2025 -0800

    Add outer and cross apply (mssql) (kysely-org#1074)

    Co-authored-by: Drew Marshall <[email protected]>
    Co-authored-by: Drew Marshall <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>

commit e99655f
Author: Igal Klebanov <[email protected]>
Date:   Sat Jan 11 14:08:17 2025 +0200

    add TypeScript benchmarks. (kysely-org#1314)

commit 8f8e83c
Author: Ivashkin Olexiy <[email protected]>
Date:   Thu Jan 9 12:23:43 2025 +0200

    Add `within group` clause support for aggregate function builder (kysely-org#1024)

    Co-authored-by: Ivashkin Olexiy <[email protected]>
    Co-authored-by: Dev K0te <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>

commit 37038c9
Author: vincentiusvin <[email protected]>
Date:   Mon Jan 6 09:08:36 2025 +0700

    SQLite's OR CONFLICT clause for inserts (kysely-org#976)

    Co-authored-by: vincentiusvin <[email protected]>
    Co-authored-by: Igal Klebanov <[email protected]>

commit 859ec4b
Author: Sam Clearman <[email protected]>
Date:   Sun Jan 5 14:55:18 2025 -0800

    Add `Date` as a valid return type for `max` and `min` (kysely-org#1062)

commit 5ee89a6
Author: igalklebanov <[email protected]>
Date:   Sun Jan 5 13:58:29 2025 +0200

    feat: add HandleEmtpyInListsPlugin. (kysely-org#925)

    * feat: empty where in plugin

    * test: add new tests

    * chore: remove unneccesary typeguards

    * fix: change to binary operator node

    * test: update tests to do both in and not in

    * test: for having

    * chore: rm test

    * test: nullable tests

    * chore: nit

    * chore: condense suite

    * chore: db config override

    * chore: extra console log

    * chore: empty arr plugin docs

    * HandleEmptyInListsPlugin initial commit.

    Co-authored-by: Austin Woon Quan <[email protected]>

    ---------

    Co-authored-by: Austin Woon <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>
    remove only.

commit 3978530
Author: Igal Klebanov <[email protected]>
Date:   Sun Dec 1 15:26:53 2024 +0100

    add `returning` support in `MERGE` queries. (kysely-org#1171)

commit 605307c
Author: igalklebanov <[email protected]>
Date:   Sun Dec 1 09:57:21 2024 +0200

    fix jsdocs.

commit f8f3194
Author: igalklebanov <[email protected]>
Date:   Sun Nov 24 02:41:15 2024 +0200

    fix package-lock.

commit a83b722
Author: Igal Klebanov <[email protected]>
Date:   Tue Nov 5 00:27:58 2024 +0200

    chore: enforce min TS version (kysely-org#1194)

commit 3ddfc1b
Author: Igal Klebanov <[email protected]>
Date:   Thu Oct 24 17:28:12 2024 +0300

    fix TS backwards compat following `ControlledTransaction`. (kysely-org#1193)

commit f83eb25
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 19 16:32:22 2024 +0300

    `await using kysely = new Kysely()` support. (kysely-org#1167)

commit 5a9d1bc
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 5 20:12:23 2024 +0300

    add `ControlledTransaction`. (kysely-org#962)

    Co-authored-by: Igal Klebanov <[email protected]>

commit eacdc2e
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 5 18:55:29 2024 +0300

    ci: run 22.x

commit 7c81a39
Author: wirekang <[email protected]>
Date:   Sun Sep 29 22:41:57 2024 +0900

    Remove preventAwait (kysely-org#1160)

    Related kysely-org#748

commit 8b8ccf7
Author: Dapper Mink <[email protected]>
Date:   Fri Aug 2 19:55:48 2024 +0900

    feat: support refresh materialized view (kysely-org#990)

    * feat: add postgres range types (kysely-org#1086)

    * feat: support refresh naterialized view

    * fix tests by adding .materialized() to remove the matview

    * fix failing test

    * fix: References typo (kysely-org#1092)

    * chore: refresh-view-node.ts => refresh-materialized-view-node.ts

    * chore: export node in index.ts

    ---------

    Co-authored-by: Isak <[email protected]>
    Co-authored-by: Jonathan Wu <[email protected]>

commit 5291044
Author: Sami Koskimäki <[email protected]>
Date:   Mon Jul 22 15:18:49 2024 +0300

    add reusable helpers recipe and implement missing expression features (kysely-org#1085)

    * add reusable helpers recipe and implement missing expression features

    * force node 22.4.1 in CI because of an npm bug

commit 39978d1
Author: Sami Koskimäki <[email protected]>
Date:   Fri Jul 19 12:34:50 2024 +0300

    Speedup types with huge databases. Fixes kysely-org#867 (kysely-org#1080)

commit d8f9401
Author: Sami Koskimäki <[email protected]>
Date:   Sun Jul 14 14:59:58 2024 +0300

    Support update table1, table2, ... query support. Closes kysely-org#192 (kysely-org#1079)

commit 2854cac
Author: Igal Klebanov <[email protected]>
Date:   Sun Jul 7 23:02:15 2024 +0300

    `InferResult` should output plural. (kysely-org#1064)

commit 7738533
Author: lucianolix <[email protected]>
Date:   Tue Feb 18 01:47:15 2025 -0400

    WIP: boilerplate for alter type

commit ffc4058
Author: Igal Klebanov <[email protected]>
Date:   Sun Feb 16 22:43:26 2025 +0200

    docs: add Marvin's (Deno) quote. (kysely-org#1360)

    * Update quotes.ts

    * add avatar.

    * reddit icon.

commit 107076a
Author: Martin Adámek <[email protected]>
Date:   Sun Feb 9 13:27:47 2025 +0100

    refactor: separate isolation level and access mode with a comma in MySQL (kysely-org#1350)

commit f7b3d90
Author: Martin Adámek <[email protected]>
Date:   Sun Feb 9 12:48:17 2025 +0100

    feat: Allow read-only transactions in Postgres and MySQL (kysely-org#1342)

    * feat: Allow read-only transactions in Postgres and MySQL

    Closes kysely-org#1341

    * use `accessMode` instead

    * add tests

    * access mode type and validation, rearranging stuff a bit.

    Co-authored-by: Martin Adámek <[email protected]>

    * rearranging stuff a bit.

    Co-authored-by: Martin Adámek <[email protected]>

    * align/simplify tests a bit

    Co-authored-by: Martin Adámek <[email protected]>

    ---------

    Co-authored-by: igalklebanov <[email protected]>
    Co-authored-by: Martin Adámek <[email protected]>

commit 5bfd7a9
Author: Alessio Napolitano <[email protected]>
Date:   Sat Feb 8 23:59:59 2025 +0100

    feat: expands limit in select accepting null value (kysely-org#1347)

    * feat: expands limit in select accepting null value

    * explain in jsdocs, move test case.

    Co-authored-by: Alessio Napolitano <[email protected]>

    ---------

    Co-authored-by: igalklebanov <[email protected]>

commit fdbc74a
Author: Reid Swan <[email protected]>
Date:   Sat Feb 1 16:02:34 2025 +0200

    feat: Add disableTransactions option to Migrator (kysely-org#1335)

    Co-authored-by: Igal Klebanov <[email protected]>

commit 1bd4e26
Author: Igal Klebanov <[email protected]>
Date:   Mon Jan 27 01:20:10 2025 +0200

    add `queryId` to `CompiledQuery` to allow async communication between more components. (kysely-org#176)

commit 25fe2d0
Author: Igal Klebanov <[email protected]>
Date:   Sat Jan 25 23:36:48 2025 +0200

    revisiting `orderBy`. (kysely-org#1326)

commit 22895c1
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 21:17:30 2025 +0200

    minor ci tweaks.

    ..

commit 8b252b2
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 20:43:31 2025 +0200

    improve join tests dialect coverage.

commit d306db7
Author: igalklebanov <[email protected]>
Date:   Sat Jan 18 20:00:36 2025 +0200

    dry up joins.

commit 8bbbc69
Author: Ersin Akinci <[email protected]>
Date:   Sat Jan 18 10:31:07 2025 -0700

    Add support for cross join and cross join lateral (kysely-org#1325)

    Co-authored-by: Igal Klebanov <[email protected]>

commit ac6934a
Author: Simon Schick <[email protected]>
Date:   Fri Jan 17 17:45:41 2025 +0100

    Support json_agg(column_ref) (kysely-org#1316)

    Co-authored-by: Simon Schick <[email protected]>
    Co-authored-by: Igal Klebanov <[email protected]>

commit b6a7dab
Author: Drew Marshall <[email protected]>
Date:   Sun Jan 12 09:05:16 2025 -0800

    Add outer and cross apply (mssql) (kysely-org#1074)

    Co-authored-by: Drew Marshall <[email protected]>
    Co-authored-by: Drew Marshall <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>

commit a5686c6
Author: Igal Klebanov <[email protected]>
Date:   Sat Jan 11 14:08:17 2025 +0200

    add TypeScript benchmarks. (kysely-org#1314)

commit 6e94c15
Author: Ivashkin Olexiy <[email protected]>
Date:   Thu Jan 9 12:23:43 2025 +0200

    Add `within group` clause support for aggregate function builder (kysely-org#1024)

    Co-authored-by: Ivashkin Olexiy <[email protected]>
    Co-authored-by: Dev K0te <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>

commit 77be243
Author: vincentiusvin <[email protected]>
Date:   Mon Jan 6 09:08:36 2025 +0700

    SQLite's OR CONFLICT clause for inserts (kysely-org#976)

    Co-authored-by: vincentiusvin <[email protected]>
    Co-authored-by: Igal Klebanov <[email protected]>

commit 5e4597c
Author: Sam Clearman <[email protected]>
Date:   Sun Jan 5 14:55:18 2025 -0800

    Add `Date` as a valid return type for `max` and `min` (kysely-org#1062)

commit 3b4d6e2
Author: igalklebanov <[email protected]>
Date:   Sun Jan 5 13:58:29 2025 +0200

    feat: add HandleEmtpyInListsPlugin. (kysely-org#925)

    * feat: empty where in plugin

    * test: add new tests

    * chore: remove unneccesary typeguards

    * fix: change to binary operator node

    * test: update tests to do both in and not in

    * test: for having

    * chore: rm test

    * test: nullable tests

    * chore: nit

    * chore: condense suite

    * chore: db config override

    * chore: extra console log

    * chore: empty arr plugin docs

    * HandleEmptyInListsPlugin initial commit.

    Co-authored-by: Austin Woon Quan <[email protected]>

    ---------

    Co-authored-by: Austin Woon <[email protected]>
    Co-authored-by: igalklebanov <[email protected]>
    remove only.

commit c75bb45
Author: Igal Klebanov <[email protected]>
Date:   Sun Dec 1 15:26:53 2024 +0100

    add `returning` support in `MERGE` queries. (kysely-org#1171)

commit d53328e
Author: igalklebanov <[email protected]>
Date:   Sun Dec 1 09:57:21 2024 +0200

    fix jsdocs.

commit e3e30e1
Author: igalklebanov <[email protected]>
Date:   Sun Nov 24 02:41:15 2024 +0200

    fix package-lock.

commit 575b3f4
Author: Igal Klebanov <[email protected]>
Date:   Tue Nov 5 00:27:58 2024 +0200

    chore: enforce min TS version (kysely-org#1194)

commit ddc275f
Author: Igal Klebanov <[email protected]>
Date:   Thu Oct 24 17:28:12 2024 +0300

    fix TS backwards compat following `ControlledTransaction`. (kysely-org#1193)

commit cf7ddb9
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 19 16:32:22 2024 +0300

    `await using kysely = new Kysely()` support. (kysely-org#1167)

commit 0a28f87
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 5 20:12:23 2024 +0300

    add `ControlledTransaction`. (kysely-org#962)

    Co-authored-by: Igal Klebanov <[email protected]>

commit ab11ce3
Author: Igal Klebanov <[email protected]>
Date:   Sat Oct 5 18:55:29 2024 +0300

    ci: run 22.x

commit 5b18e30
Author: wirekang <[email protected]>
Date:   Sun Sep 29 22:41:57 2024 +0900

    Remove preventAwait (kysely-org#1160)

    Related kysely-org#748

commit b026a45
Author: Dapper Mink <[email protected]>
Date:   Fri Aug 2 19:55:48 2024 +0900

    feat: support refresh materialized view (kysely-org#990)

    * feat: add postgres range types (kysely-org#1086)

    * feat: support refresh naterialized view

    * fix tests by adding .materialized() to remove the matview

    * fix failing test

    * fix: References typo (kysely-org#1092)

    * chore: refresh-view-node.ts => refresh-materialized-view-node.ts

    * chore: export node in index.ts

    ---------

    Co-authored-by: Isak <[email protected]>
    Co-authored-by: Jonathan Wu <[email protected]>

commit a4671da
Author: Sami Koskimäki <[email protected]>
Date:   Mon Jul 22 15:18:49 2024 +0300

    add reusable helpers recipe and implement missing expression features (kysely-org#1085)

    * add reusable helpers recipe and implement missing expression features

    * force node 22.4.1 in CI because of an npm bug

commit 56100e6
Author: Sami Koskimäki <[email protected]>
Date:   Fri Jul 19 12:34:50 2024 +0300

    Speedup types with huge databases. Fixes kysely-org#867 (kysely-org#1080)

commit 73227d6
Author: Sami Koskimäki <[email protected]>
Date:   Sun Jul 14 14:59:58 2024 +0300

    Support update table1, table2, ... query support. Closes kysely-org#192 (kysely-org#1079)

commit 6074e10
Author: Igal Klebanov <[email protected]>
Date:   Sun Jul 7 23:02:15 2024 +0300

    `InferResult` should output plural. (kysely-org#1064)
igalklebanov pushed a commit that referenced this pull request Mar 2, 2025
igalklebanov pushed a commit that referenced this pull request Mar 4, 2025
igalklebanov pushed a commit that referenced this pull request Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using sql helper in promise chains causes unexpected preventAwait errors
6 participants