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

lightninglabs / taproot-assets / 10406480087

15 Aug 2024 03:43PM UTC coverage: 40.177% (+0.01%) from 40.163%
10406480087

Pull #1089

github

guggero
scripts+tapdb: do sqlc required replacement in script

Our SQL scripts on disk were neither SQLite nor Postgres compatible, we
used a version suited for sqlc to generate the correct data types we
wanted, then did some type replacements in-memory when actually applying
the migration files.
This is somewhat dangerous as it will lead to situations where if a user
applies a migration file manually, they'll end up with table primary
keys that ARE NOT auto incrementing.

To fix this issue, we make sure that we always write fully SQLite
compatible SQL code and only apply fixes for the sqlc code generation
directly before generating the code.
Pull Request #1089: tapdb: fix multiple issues around migration file handling

23691 of 58967 relevant lines covered (40.18%)

54468.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.64
/commitment/tap.go


Source Not Available

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