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

tgriesser / knex / 2507
88%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2017 03:28PM UTC
Jobs 4
Files 69
Run time 44s
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
2507

push

travis-ci

elhigu
Allow raw expressions in query builder aggregate methods (#2257)

The aggregate methods include `count`, `min`, `max`, `sum`, `avg`,
`countDistinct`, `sumDistinct`, and `avgDistinct`, all of which
can now receive raw expressions, e.g.

```js
knex('users').count(knex.raw("data->'active'"));
```

There seems to be some demand for this, and I think it's cleaner than the alternative of

```js
knex('users').select(knex.raw("count(data->'active')"));
```

4892 of 5488 relevant lines covered (89.14%)

2522.32 hits per line

Coverage Regressions

Lines Coverage ∆ File
14
100.0
lib/query/compiler.js
10
100.0
lib/dialects/mssql/query/compiler.js
Jobs
ID Job ID Ran Files Coverage
1 2507.1 (CXX=g++-4.8 DB="maria mysql mysql2 postgres sqlite3 oracledb" KNEX_TEST_TIMEOUT=60000 ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE OCI_LIB_DIR=/u01/app/oracle/product/11.2.0/xe/lib LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib) 14 Oct 2017 03:29PM UTC 0
89.14
Travis Job 2507.1
2 2507.2 (CXX=g++-4.8 DB="maria mysql mysql2 postgres sqlite3 oracledb" KNEX_TEST_TIMEOUT=60000 ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE OCI_LIB_DIR=/u01/app/oracle/product/11.2.0/xe/lib LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib) 14 Oct 2017 03:29PM UTC 0
89.14
Travis Job 2507.2
3 2507.3 (CXX=g++-4.8 DB="maria mysql mysql2 postgres sqlite3 oracledb" KNEX_TEST_TIMEOUT=60000 ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE OCI_LIB_DIR=/u01/app/oracle/product/11.2.0/xe/lib LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib) 14 Oct 2017 03:28PM UTC 0
89.14
Travis Job 2507.3
4 2507.4 (CXX=g++-4.8 DB="maria mysql mysql2 postgres sqlite3 oracledb" KNEX_TEST_TIMEOUT=60000 ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE OCI_LIB_DIR=/u01/app/oracle/product/11.2.0/xe/lib LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib) 14 Oct 2017 03:28PM UTC 0
89.14
Travis Job 2507.4
Source Files on build 2507
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2507
  • b092a271 on github
  • Prev Build on master (#2502)
  • Next Build on master (#2510)
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