koskimas
koskimas
KKysely
Created by PogPEGA on 10/7/2024 in #help
tuple() and refTuple() questions
There's no such limitation
8 replies
KKysely
Created by PogPEGA on 10/7/2024 in #help
tuple() and refTuple() questions
8 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
That works
38 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
What's the issue with that?
38 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
But just make postgres return numbers
38 replies
KKysely
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
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
You can use sql.lit
38 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
Just match the types
38 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
38 replies
KKysely
Created by OverHash on 10/5/2024 in #help
Casting part of a return type
38 replies
KKysely
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
KKysely
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
KKysely
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
KKysely
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