wirekang
wirekang
KKysely
Created by bun on 12/20/2023 in #help
why does `fn.countAll` return `bigint` ?
It seems the sql driver you are using returns bigint for count function.
4 replies
KKysely
Created by bun on 12/20/2023 in #help
why does `fn.countAll` return `bigint` ?
4 replies
KKysely
Created by Emre on 10/19/2023 in #help
Type inference of queries with expressions in Webstorm
It's very weird. If I replace executeTakeFirst to executeTakeFirstOrThrow, error goes away.
11 replies
KKysely
Created by Emre on 10/19/2023 in #help
Type inference of queries with expressions in Webstorm
No description
11 replies
KKysely
Created by thelinuxlich on 10/11/2023 in #help
Insert values from subquery
comments on eb.lit :
To prevent SQL injections, only boolean, number and null values are accepted. If you need string or other literals, use sql.lit instead.
To prevent SQL injections, only boolean, number and null values are accepted. If you need string or other literals, use sql.lit instead.
5 replies
KKysely
Created by Joe on 7/21/2023 in #help
NOW() function in kysely
now() is not an valid sql string so intellij shows the error
12 replies
KKysely
Created by Joe on 7/21/2023 in #help
NOW() function in kysely
Intellij-based IDE has a feature that automatically detect SQL string in source codes.
12 replies
KKysely
Created by Joe on 7/21/2023 in #help
NOW() function in kysely
You are using intelliJ right?
12 replies
KKysely
Created by Joe on 7/21/2023 in #help
NOW() function in kysely
import { sql } from "kysely";

db
.insertInto("films")
.values({
created_at: sql`now()`,
})
import { sql } from "kysely";

db
.insertInto("films")
.values({
created_at: sql`now()`,
})
12 replies