Using MySQL functions in SELECT statement

Oohmi5/18/2023
Hi!
Just trying to migrate over from Knex. Skimmed over the documentation but still unsure of how to replicate this query in Kysely, or might be looking in the wrong place? In Knex, I'd often have to use selectRaw for these

SELECT a, b, UPPER(c) FROM x;
Oohmi5/18/2023
Figured it has to do with db.fn , but not quite sure how to fit it in to make things happy
await db.selectFrom("x").select(["a", "b", db.fn("UPPER", ["c"]))
UUUnknown User5/19/2023
Message Not Public
Sign In & Join Server To View
Oohmi5/19/2023
awesome, thanks!