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

ingitdb / ingitdb-cli / 25830391674 / 1
96%
main: 96%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 10:36PM UTC
Files 114
Run time 3s
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

13 May 2026 10:31PM UTC coverage: 78.309% (-0.5%) from 78.823%
25830391674.1

push

github

inGitDB Dev
feat(dalgo2ingitdb): dbschema + ddl + ConcurrencyAware coverage

Adds full schema-management surface to pkg/dalgo2ingitdb:

- Database struct (new) with NewDatabase(projectPath, reader) (dal.DB, error).
  Embeds dal.ConcurrencyAvailable — concurrent connections are safe because
  all reads/writes go through gofrs/flock advisory locking. Implements
  dal.DB stubs (record-access methods return dal.ErrNotSupported; record
  CRUD is a follow-up).

- dbschema.SchemaReader: ListCollections walks the project dir for
  .collection/definition.yaml files; DescribeCollection reads and maps
  columns via type_mapping; ListIndexes/ListConstraints return synthesized
  PK-only results; ListReferrers returns *dbschema.NotSupportedError.

- ddl.SchemaModifier + ddl.Applier: CreateCollection writes definition.yaml;
  DropCollection removes the dir (with safety check); AlterCollection
  applies AlterOp values via ApplyTo dispatch, returning
  *ddl.PartialSuccessError on mid-sequence failure. Record files are
  rewritten on DropField/RenameField for YAML format.

- ddl.TransactionalDDL = false (MVP is best-effort).

- type_mapping: bidirectional ingitdb.ColumnType <-> dbschema.Type with
  documented lossy round-trip for time variants.

- filelock: withSharedLock / withExclusiveLock wrapping
  github.com/gofrs/flock (Unix flock + Windows LockFileEx).

Spec: spec/features/dalgo2ingitdb-dbschema-ddl-coverage/README.md
Plan: tasks/plan.md, tasks/todo.md

Side changes (required by new dalgo v0.42.0 embedding dal.ConcurrencyAware
into dal.DB):
- pkg/dalgo2fsingitdb/db_local.go, pkg/dalgo2ghingitdb/db_github.go:
  embed dal.NoConcurrency (no file locking implemented in those drivers).
- server/api/handler_test.go, server/mcp/handler_test.go: dal.NoConcurrency
  on fakeDB test stubs.

go.mod: dalgo bumped to v0.42.0; added github.com/gofrs/flock v0.13.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

8383 of 10705 relevant lines covered (78.31%)

0.92 hits per line

Source Files on job 25830391674.1
  • Tree
  • List 114
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25830391674
  • ee24d7f4 on github
  • Prev Job for on main (#25815899508.1)
  • Next Job for on main (#25847521966.1)
  • Delete
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