Open koskimas opened 4 months ago
Consider this snippet
where(eb => eb('first_name', sql`%>>`, 'Jennifer'))
This will cause a type error since the operator is assumed to be arithmetic and the output type of the expression is string.
string
One way to solve this could be
where(eb => eb('first_name', sql<boolean>`%>>`, 'Jennifer'))
or we bring back the cmpr function 😬
cmpr
Or we could make boolean the default expression type. Unknown operators would create a boolean expression. That's probably a better assumption (?)
Consider this snippet
This will cause a type error since the operator is assumed to be arithmetic and the output type of the expression is
string
.One way to solve this could be
or we bring back the
cmpr
function 😬