Igal
Explore posts from serversUnable to use table name with 3 dots in selectFrom
Hey 👋
Check this issue out - https://github.com/kysely-org/kysely/issues/875
5 replies
Updateable primary key question & .set() type safety
Hey 👋
To define a column that's never updated, you can use
ColumnType
with never
in the 3rd generic value.
To define a column that's never inserted nor updated, you can use GeneratedAlways
To prevent an item from being accepted in .set
of an update query, you can use the satisfies
keyword with Updateable<MyTable>
as follows:
This'll compile-time error on any non-updateable columns.13 replies