• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knorm / relations / 184
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: renovate/pg-8.x
DEFAULT BRANCH: master
Ran 03 Nov 2018 09:19PM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
184

push

travis-ci

joelmukuthu
feat: add `via` query option

Useful for many-to-many joins:

```js
class User extends Model {}
User.table = 'user';
User.fields = {
  id: 'integer'
};

class Group extends Model {}
Group.table = 'user';
Group.fields = {
  id: 'integer'
};

class GroupMembership extends Model {}
GroupMembership.table = 'group_membership';
GroupMembership.fields = {
  userId: { type: 'integer', references: User.fields.id },
  groupId: { type: 'integer', references: Group.fields.id }
};

User.fetch({
  leftJoin: Group.query
    .via(GroupMembership)
    .as('groups')
});
```

115 of 118 branches covered (97.46%)

Branch coverage included in aggregate %.

227 of 227 relevant lines covered (100.0%)

126.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 184.1 03 Nov 2018 09:19PM UTC 0
99.13
Travis Job 184.1
Source Files on build 184
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #184
  • d328d585 on github
  • Prev Build on feat/via (#180)
  • Next Build on feat/via (#298)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc