From 400f94e088117ff6703ace6f1f5ff4ba3102e859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Fri, 15 Jan 2021 10:41:59 -0300 Subject: [PATCH] Update ORMProvider interface displayed on README --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 388d190..3cd01e4 100644 --- a/README.md +++ b/README.md @@ -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)