-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JOIN support #4
Comments
Hey @aperture147 I will be looking into adding support for this next week |
Hey @aperture147 Let me know if you have any more suggestion |
|
Thanks for your support! Is there any way to perform joining on multiple table? We can change Line 139 in 37919e0
Join object to an array of Join ? Eg:
_join(values?: Array<Join>): string {
if (!values || !values.length) return ''
let joinQuery = ''
values.forEach((item: Join) => {
const type = value.type ? ` ${value.type}` : ''
joinQuery += `${type} JOIN ${value.table} ON ${value.on}`
})
return joinQuery
} This is a rough implementation to show the idea, sorry if it does not work. |
Hey @subhendukundu that kind of result transformation should be handled in your application, workers-qb is only meant to generate sql queries |
Hey @aperture147 I've just added support for multiple joins, checkout the docs here |
Is there anyway to perform JOIN query? If there is, how can I do it?
The text was updated successfully, but these errors were encountered: