Skip to content

Add new APIs, fix bugs, improve security, and add CI/CD - #7

Merged
necrophidia merged 3 commits into
mainfrom
feature/improvements-and-ci
Mar 21, 2026
Merged

necrophidia merged 3 commits into
mainfrom
feature/improvements-and-ci

Conversation

@necrophidia

Copy link
Copy Markdown
Member

Summary

  • New functions: GetByKey, DeleteByKey, DeleteMultiByKey, InsertWithAutoKey,
    InsertMultiWithAutoKey, RunInTransaction, WithProject, db.Close(), SetLogger
  • New operator: OpNotEqual (!=)
  • Bug fixes: Connect() no longer returns partially initialized DB on error; WithCursor() no longer
    silently swallows decode errors; WithFilter() logs on invalid FieldKey values; fixed incorrect doc
    comments on Count() and KeysOnly()
  • Security: Fixed data race on package-level logger using sync.RWMutex; renamed ID-based APIs to
    Key-based for Datastore terminology consistency
  • Logging: Added configurable Logger interface so users can plug in structured logging (slog, zap,
    zerolog, etc.)
  • CI/CD: Added GitHub Actions workflow for PR lint/build checks (golangci-lint v2) and automatic
    tag/release on merge to main
  • README: Fixed install URL, added defer db.Close(), documented all new APIs

Test plan

  • Verify go build ./... and go vet ./... pass
  • Verify golangci-lint run ./... reports 0 issues
  • Verify PR check workflow triggers on PR creation
  • Verify release workflow creates a new tag on merge to main
  • Integration test new functions against a Datastore emulator

Phillip Leonardo and others added 3 commits March 21, 2026 14:12
- Add new functions: GetByKey, DeleteByKey, DeleteMultiByKey, InsertWithAutoKey,
  InsertMultiWithAutoKey, RunInTransaction, WithProject, Close, SetLogger
- Add OpNotEqual filter operator
- Fix Connect() returning partially initialized DB on error
- Fix WithCursor() silently swallowing decode errors
- Fix WithFilter() silently ignoring invalid FieldKey values
- Fix Count() doc referencing non-existent From/Where API
- Fix KeysOnly() doc referencing non-existent SelectKeys method
- Fix data race on package-level logger with sync.RWMutex
- Fix README install URL (yourusername -> louvri)
- Rename ID-based APIs to Key-based for Datastore consistency
- Add configurable Logger interface for structured logging
- Add GitHub Actions: PR lint/build check and auto-release on merge
- Add golangci-lint v2 configuration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ings, remove deprecated exclude-use-default

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@necrophidia
necrophidia merged commit 0f7c80b into main Mar 21, 2026
1 check passed
@necrophidia
necrophidia deleted the feature/improvements-and-ci branch March 21, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant