-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementNew feature or requestNew feature or requesthas-prThis issue has one or more PRs that that could close the issue when mergedThis issue has one or more PRs that that could close the issue when mergedpriorityWill be worked on nextWill be worked on nextqb/crud
Description
Describe what you want
currently, the Column
type has no as
method, so I use column.getSQL().mapWith(column.mapFromDriverValue).as('alias')
to properly select a column with alias.
const result = await db.select({
sellerId: user.id.getSQL().mapWith(user.id.mapFromDriverValue).as('sellerId')
})
It would be nice to be able to just do it with:
const result = await db.select({
sellerId: user.id.as('sellerId')
})
airjp73, imhoffd, jkazimierczak, jthoward64, FrancoRATOVOSON and 12 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthas-prThis issue has one or more PRs that that could close the issue when mergedThis issue has one or more PRs that that could close the issue when mergedpriorityWill be worked on nextWill be worked on nextqb/crud