In sqldelight, when making raw queries, how to ensure identifiers do not conflict with generated query identifiers? Is there a range etc?
h
hfhbd
07/10/2025, 8:36 AM
There is no range, we just use the sql query
.toString().hashcode
function
m
Mark
07/10/2025, 9:55 AM
So I guess, I should use the same?
h
hfhbd
07/10/2025, 10:34 AM
Well you could. But keep in mind, technically collisions are always possible, that’s unrelated to sqldelight though.
m
Mark
07/10/2025, 10:44 AM
I was thinking, if I also use hashCode, then it will be no more likely to have collisions compared to if it was an identifier in the generated scenario