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

datatug / datatug-core / 35312691322
91%

Build:
DEFAULT BRANCH: main
Ran 18 Sep 2026 05:55AM UTC
Jobs 1
Files 150
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

18 Sep 2026 05:54AM UTC coverage: 90.45% (-0.09%) from 90.54%
35312691322

push

github

web-flow
feat(storage): author static inGitDB project schema (#335)

Source commits:

- 241dadddbb4c feat(storage): author static inGitDB project schema
  Author DataTug's inGitDB project-store schema as static files in inGitDB's
  existing on-disk format: .ingitdb/root-collections.yaml registers ext, and
  one .collection/definition.yaml per project-item collection under it
  (projects, then queries, entities, environments/servers/catalogs, dbmodels,
  boards, recordsets, folders, dbdrivers/dbservers, credentials). Each
  collection's record_file carries name: '{key}/{key}.<suffix>.json',
  format: json, type: map[string]any and a nested records_dir: '.', per the
  Feature's suffix table.
  The schema is embedded in datatug-core via embed.FS and copied into a store
  directory by the new WriteSchema(dir) function, which refuses to overwrite
  a differing existing file and is idempotent when content already matches.
  No dalgo or dalgo2ingitdb import: this package only copies bytes it never
  parses (founder, 2026-09-17: "DataTug project ingitdb schema should be
  defined and copy-pasted... if we need modify ingitdb schema it belong to
  ingitdb module, not dalgo").
  Tests prove the AC directly: the queries definition carries the four
  record_file keys with records_dir nested (not a sibling); every collection
  and subcollection in the tree loads through ingitdb-go v0.6.1's strict
  KnownFields(true) reader (validator.ReadDefinition); and a copy with
  records_dir moved to a sibling key is rejected as an unknown field.
  The round-trip through dalgo2ingitdb.NewDatabase (writing query q1 for
  project p1 and asserting it lands at
  ext/datatug/projects/p1/queries/q1/q1.query.json) is deliberately not in
  this package: dalgo2ingitdb is a DALgo driver, and datatug-core's go.mod
  must not carry one (REQ:project-store-is-a-dalgo-database), even as a test
  dependency. That integration test is added separately in datatug-cli,
  which already depends on the drive... (continued)

59 of 78 new or added lines in 3 files covered. (75.64%)

9793 of 10827 relevant lines covered (90.45%)

0.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
75.0
pkg/storage/ingitdbschema/schema.go
Jobs
ID Job ID Ran Files Coverage
1 35312691322.1 18 Sep 2026 05:55AM UTC 150
90.45
GitHub Action Run
Source Files on build 35312691322
  • Tree
  • List 150
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 17c4a492 on github
  • Prev Build on main (#35241376773)
  • Next Build on main (#35318100002)
  • 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