Minor Changes
-
09fcf97: Validate the
<T>annotation on rawsqlfragments embedded in Kysely query-builder chains.SafeQL now checks that annotation against the type the database returns and autofixes it on a mismatch. A selection like
sql<number>`name || bio`.as("credit_line")whose column isstringgets flagged; a.where(sql<number>`bio is not null`)condition gets corrected toboolean. Conditions accept bothSqlBoolandboolean, and fragments wrapped in parentheses orasare checked like bare ones.