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

panates / postgrejs-knex / 45848207528
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: main
Ran 26 Nov 2026 03:21PM UTC
Jobs 1
Files 10
Run time 1min
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

26 Nov 2026 03:19PM UTC coverage: 99.92%. First build
45848207528

push

github

erayhanoglu
feat: add a Knex client that runs on PostgreJS

PostgrejsClient extends Knex's own Client_PG and replaces only the methods
that talk to pg, so the query compiler, the schema and table compilers, the
placeholder rewriting and Transaction_PG stay Knex's own and keep tracking
its releases.

Knex's own test suite, with its postgres variant pointed at this client,
passes 494 of 494 with 56 pending - the same three numbers Knex's pg client
scores on the same checkout. scripts/run-knex-suite.sh runs it on Knex's own
compose database, and a weekly workflow holds both ends of the peer range to
zero failures.

Decoding defaults to pg's, so existing queries and Objection models keep
returning what they returned: 58 of 63 column types come back byte for byte,
and the five that differ carry the same fields in a PostgreJS class.
Parameters are bound untyped where pg binds them untyped, without which
where('txt', 42) and where('jb', { a: 1 }) both fail.

test/C-differential runs the same calls through both clients and compares
them value for value, which is what every table in the README is.

Three differences the tests found:

- Knex makes password non-enumerable before the settings reach a client, so
  reading Object.keys dropped it and connections went out without one.
- Knex hides the password again on connection.config, which PostgreJS
  freezes, so every acquire threw Cannot redefine property.
- rowCount counted rows for SHOW and EXPLAIN, where pg answers null.

MOVE and COPY still report null where pg reports a number: PostgreJS keeps
the command tag's count for four commands only. Reported upstream rather
than worked around here.

144 of 145 branches covered (99.31%)

Branch coverage included in aggregate %.

1112 of 1112 new or added lines in 10 files covered. (100.0%)

1112 of 1112 relevant lines covered (100.0%)

489.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45848207528.1 26 Nov 2026 03:21PM UTC 10
99.92
GitHub Action Run
Source Files on build 45848207528
  • Tree
  • List 10
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45848207528
  • 81ef5b8a on github
  • Next Build on dev (#45858379277)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc