Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
koskimas
Posts
Comments
K
Kysely
•
Created by PogPEGA on 10/7/2024 in
#help
tuple() and refTuple() questions
There's no such limitation
8 replies
K
Kysely
•
Created by PogPEGA on 10/7/2024 in
#help
tuple() and refTuple() questions
https://kyse.link/l5BH3
8 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
That works
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
What's the issue with that?
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
But just make postgres return numbers
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
eb.lit
doesn't allow strings as it's not safe
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
You can use
sql.lit
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
Just match the types
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
https://kyse.link/flAWw
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
https://kyse.link/RLzXh
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
If you're sure javascript numbers are enough to represent your data
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
You can also configure postgres to return numbers instead of strings
https://kysely.dev/docs/recipes/data-types#configuring-runtime-javascript-types
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
eb("a", "-", "b")
will not fail even if
a
and
b
are strings.
38 replies
K
Kysely
•
Created by OverHash on 10/5/2024 in
#help
Casting part of a return type
Why not just fix the column type in your table interface?
38 replies