Update ORMProvider interface displayed on README

pull/2/head
Vinícius Garcia 2021-01-15 10:41:59 -03:00
parent 9d717717d4
commit 400f94e088
1 changed files with 1 additions and 3 deletions

View File

@ -67,11 +67,10 @@ type ORMProvider interface {
QueryChunks(ctx context.Context, parser ChunkParser) error
Exec(ctx context.Context, query string, params ...interface{}) error
Transaction(ctx context.Context, fn func(ORMProvider) error) error
}
```
You might notice we are lacking an abstraction for transactions, but it is on our TODO list.
### Usage examples
This example is also available [here](./examples/crud/crud.go)
@ -202,7 +201,6 @@ read the example tests available on the our [example service](./examples/example
### TODO List
- Add support for transactions
- Improve error messages
- Allow the ID field to have a different name
- Implement a JSON fields on the database (encoding/decoding them automatically into structs)