kysely-org / kysely

A type-safe typescript SQL query builder
https://kysely.dev
MIT License
10.22k stars 259 forks source link

MSSQL: add insertId to InsertResult #918

Closed drew-marsh closed 5 months ago

drew-marsh commented 5 months ago

This can be achieved by running: select SCOPE_IDENTITY() after an insert.

Loving the MSSQL support and all the new related features!

igalklebanov commented 5 months ago

Hey 👋

Not gonna happen. Kysely only executes queries you tell it to explicitly.

igalklebanov commented 5 months ago

related to #828.

koskimas commented 5 months ago

@igalklebanov I just reviewed the output PR. Let's merge it and release 0.27.4 soon.

drew-marsh commented 5 months ago

Hey 👋

Not gonna happen. Kysely only executes queries you tell it to explicitly.

Gotcha. output support will cover this nicely, thank you!