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

map-services / gps-routes-api / 38693762007
54%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2026 06:41AM UTC
Jobs 1
Files 22
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

15 Oct 2026 06:39AM UTC coverage: 35.023% (+0.9%) from 34.128%
38693762007

push

github

web-flow
feat: SQLite repository implementation (Phase 4 of #120), ported to current main (#181)

## Summary
Ports the Phase‑4 SQLite repository work (issue #120) from the obsolete
`phase-4-repository-and-core-logic-2` branch onto current `main`,
resolving all
compile/test breakages and enabling a working SQLite+FTS5+Spatialite
driver. The
Phase‑4 code is gated behind the `sqlite` build tag.

## Branch history (8 commits ahead of main)
Original Phase‑4 commits, rebased onto `main` (merge‑base `465bdbd2c`):
- `791ae9abe` feat: add SQLite support
- `4f670ed53` refactor: standardize coordinate naming in SQLite
- `d413b8ce5` refactor: remove debug logging in sqlite

Ports/fixups:
- `1ff940f14` fix(sqlite): make Phase‑4 code compile and pass on current
main
- `f7bf54928` fix: resolve Phase‑4 rebase regressions in db package so
CI passes
- `19b5336d0` fix(sqlite): handle ignored returns + fix SQLiteDialect
ST_DWithin typo
- `fab773af1` feat(sqlite): enable Spatialite via driver config +
graceful fallback
- `05cbcaeb8` fix(sqlite): gofmt-clean + errcheck in sqlite path
- `428e155ba` ci: exercise the SQLite build path in CI (tags:
sqlite,sqlite_fts5)
- `f72a311cb` fix(sqlite): BuildMbr for Spatialite 5.x bbox + CI loads
mod_spatialite ← NEW

## Fixes applied
1. **Module import paths** — files still imported
`github.com/rm-hull/gps-routes-api/...`;
updated to `github.com/map-services/gps-routes-api/...` (15 refs across
6 files).
   Without this the `sqlite`-tagged packages fail to compile.
2. **SQLite test schema mismatch** — `setupSQLiteTestDB` built `routes`
with
`_geoloc_lat/_geoloc_lon`; repo code +
`db/migrations/00002_sqlite_schema.sql`
use `latitude/longitude` → "no column named longitude". Aligned to the
schema.
3. **FTS5 availability probe** — `SELECT fts5(?)` is invalid (FTS5 is a
module, not
   a scalar function) and always reported FTS5 absent. Replaced with
   `CREATE VIRTUAL TABLE _fts5_probe USING fts5(...)`.
4. **LIMIT/OFFSET ordering regression** — car... (continued)

53 of 70 new or added lines in 5 files covered. (75.71%)

2 existing lines in 1 file now uncovered.

608 of 1736 relevant lines covered (35.02%)

0.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
71.43
cmds/import_data_common.go
5
64.62
12.07% db/dialect.go
2
84.21
0.0% cmds/http_api_server.go
2
26.9
0.0% repositories/postgres.go

Coverage Regressions

Lines Coverage ∆ File
2
64.62
12.07% db/dialect.go
Jobs
ID Job ID Ran Files Coverage
1 38693762007.1 15 Oct 2026 06:41AM UTC 22
35.02
GitHub Action Run
Source Files on build 38693762007
  • Tree
  • List 22
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 18b86c92 on github
  • Prev Build on main (#38215171729)
  • Next Build on main (#38790099194)
  • 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