Skip to content

Auto join#68

Merged
brianc merged 2 commits into
masterfrom
auto-join
May 15, 2013
Merged

Auto join#68
brianc merged 2 commits into
masterfrom
auto-join

Conversation

@brianc
Copy link
Copy Markdown
Owner

@brianc brianc commented May 15, 2013

This allows you to attach some metadata to your columns and use introspection to build join paths automatically. It's very simple right now, but suits my needs. I'm building out some reports with tons of simple joins and this is going to save some time. See the tests for usage.

brianc added 2 commits May 15, 2013 10:25
allows table definition like this:
var table = sql.define({
  name: 'blah',
  columns: {
    id: { primaryKey: true, type: 'serial' },
    email: { type: 'text' }
  }
});
for usage please see test/dialects/join-to-tests.js
brianc added a commit that referenced this pull request May 15, 2013
@brianc brianc merged commit 569bcf1 into master May 15, 2013
@brianc brianc deleted the auto-join branch May 15, 2013 20:57
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

Successfully merging this pull request may close these issues.

1 participant