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

ingitdb / ingitdb-cli / 25867147742
96%

Build:
DEFAULT BRANCH: main
Ran 14 May 2026 02:56PM UTC
Jobs 1
Files 117
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

14 May 2026 02:55PM UTC coverage: 91.527% (+0.01%) from 91.514%
25867147742

push

github

inGitDB Dev
feat(dalgo2ingitdb): preserve real PK column names in definition.yaml

CreateCollection now persists dbschema.CollectionDef.PrimaryKey as
`primary_key:` in definition.yaml, and DescribeCollection round-trips it
back as []dal.FieldName. Composite PKs work for free — the YAML list
preserves order.

Previously DescribeCollection always synthesized PrimaryKey: ["$key"]
because inGitDB uses the record filename as the de-facto PK. That was
fine in isolation but it broke cross-engine round-trips: e.g.
SQLite → inGitDB → SQLite would lose the source PK column names, and
CREATE TABLE on the reverse hop produced `PRIMARY KEY ($key)` which
SQLite rejected ("parameters prohibited in index expressions").

Now newly-created inGitDB projects round-trip the source PK losslessly.
Legacy projects (definition.yaml without a primary_key field) keep the
backward-compatible ["$key"] synthesis — see AC:describe-collection-legacy-no-pk-field.

Spec changes (dalgo2ingitdb-dbschema-ddl-coverage):
- REQ:create-collection step 5: persist primary_key when source carries
  a non-empty PrimaryKey.
- REQ:describe-collection: PrimaryKey comes from definition.yaml when
  present, else synthesized.
- 3 new ACs: roundtrip-single, roundtrip-composite, legacy-no-pk-field.

ListConstraints: doc clarified — dbschema.ConstraintDef is Name + Type
only; the richer PK column info lives on DescribeCollection.PrimaryKey.

Tests added (all pass):
- TestCreateDescribe_PKRoundTrip_Single
- TestCreateDescribe_PKRoundTrip_Composite
- TestDescribe_LegacyNoPKField

specscore spec lint: 0 violations. golangci-lint run: 0 issues.
Full repo: 23 packages green.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

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

10348 of 11306 relevant lines covered (91.53%)

1.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25867147742.1 14 May 2026 02:56PM UTC 117
91.53
GitHub Action Run
Source Files on build 25867147742
  • Tree
  • List 117
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d0533103 on github
  • Prev Build on main (#25864078584)
  • Next Build on main (#25881409168)
  • 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