mirror of https://github.com/VinGarcia/ksql.git
Update ORMProvider interface displayed on README
parent
9d717717d4
commit
400f94e088
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue