-
Notifications
You must be signed in to change notification settings - Fork 272
Interface logsdb #1495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/v2.4.1-old
Are you sure you want to change the base?
Interface logsdb #1495
Conversation
| } | ||
|
|
||
| func (db *LogDB) FilterEvents(ctx context.Context, filter *EventFilter) ([]*Event, error) { | ||
| func (db *LogDB) FilterEvents(ctx context.Context, filter *logsdb.EventFilter) ([]*logsdb.Event, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally its bad practice for a child package to depend on its parent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ok for defining models and interfaces, it's a used pattern, but I agree it's code smell for implementations.
I can likely move the sql-ish implementations of the models into an interface as well and let sqllite implement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the sql deps to sqlite3 now following the same pattern as api.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
743f3ca to
a14e5ec
Compare
Description
Interfaces the logdb package that was implemented by sqlite3 into
logsdband implementation intosqlite3.Fixes # (issue)
Type of change
Checklist: