-
Notifications
You must be signed in to change notification settings - Fork 0
Memory datastore #111
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
Memory datastore #111
Conversation
vknabel
left a comment
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.
Very nice!
pkg/datastore/memory.go
Outdated
|
|
||
| // DeleteAll implements Storage. | ||
| func (m *memoryDatastore[E]) DeleteAll(ctx context.Context, ids ...string) error { | ||
| panic("unimplemented") |
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.
Do we want to implement this? Should be fairly easy
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.
done
|
#114 should be merged first |
Description
This is handy for testing only to get rid of ugly mocks. Does not work for all Tenant Service Methods because there is the sql connection used directly.
Only useful for tests where CRUD operation on the available Entities are required. Find operations and operations where additional queries are called does not work.
depends on: #114