Skip to content
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

Ability to specify columsn returned form join #168

Open
jdalrymple opened this issue Mar 14, 2018 · 1 comment
Open

Ability to specify columsn returned form join #168

jdalrymple opened this issue Mar 14, 2018 · 1 comment

Comments

@jdalrymple
Copy link

jdalrymple commented Mar 14, 2018

Something similar to this:

{
   type: 'select',
      table: 'mytable',
      joins: [
        {
          target: 'mysecondtable',
          type: 'inner',
          on: { id: '$mytable.id$' },
          columns: '*'
        },
      ],
 }

Which would result in

select "mytable".*, mysecondtable.* from "mytable" inner join "mysecondtable" on "mysecondtable"."id" = "id"."attribute_id"
@ravshansbox
Copy link

How about like this:
{ type: 'select', table: 'mytable', columns: ['*', 'mysecondtable.*'], joins: [ { target: 'mysecondtable', type: 'inner', on: { id: '$mytable.id$' } } ] };
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants