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

bokwoon95 / sq / 5783018144
82%

Build:
DEFAULT BRANCH: main
Ran 07 Aug 2023 08:51AM UTC
Jobs 1
Files 15
Run time 2s
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
5783018144

push

github

bokwoon95
Add option to set default logger and dialect for queries.

1. Add sq.DefaultDialect (an atomic.Pointer[string]) to set the default
   dialect to be used for query building when the passed in dialect is
   empty. Fixes #7.
2. Add SetDefaultLogQuery and SetDefaulLogSettings to configure the
   default logging function (and LogSettings) to be used for all queries
   is a logger is not explicitly passed in.
3. Don't check for ctx.Done() inside the logger, this was causing
   certain queries to not be logged when LogSettings.LogAsynchronously
   was set to true and the request completed before the query could be
   logged.

114 of 114 new or added lines in 2 files covered. (100.0%)

5401 of 6347 relevant lines covered (85.1%)

48.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
79.63
-14.12% logger.go
74
67.73
-5.43% fetch_exec.go
Jobs
ID Job ID Ran Files Coverage
1 5783018144.1 07 Aug 2023 08:51AM UTC 15
85.1
GitHub Action Run
Source Files on build 5783018144
  • Tree
  • List 15
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • caefb688 on github
  • Prev Build on main (#5128755577)
  • Next Build on main (#5783150207)
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

© 2025 Coveralls, Inc