You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I'm manually writing a SQL expression and directly calling the execute function on the whole expression
const {rows} = await db.execute(sql`...`)
such that each element of rows has the shape
{ foo_bar: value1, foo_baz: value2}
Is there an easy way to change the shape to
{ fooBar: value1, fooBaz: value2}
which is the shape of my table's $inferSelect type?
P.S. I wouldn't have this problem if we merged the PR for supporting lateral joins, which has been sitting still for nearly a year since the author made the latest set of requested changes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I have a table like this:
and I'm manually writing a SQL expression and directly calling the
execute
function on the whole expressionsuch that each element of
rows
has the shapeIs there an easy way to change the shape to
which is the shape of my table's
$inferSelect
type?P.S. I wouldn't have this problem if we merged the PR for supporting lateral joins, which has been sitting still for nearly a year since the author made the latest set of requested changes.
Beta Was this translation helpful? Give feedback.
All reactions