@@ -39,18 +39,24 @@ type Client interface {
39
39
// Best effort policy may be implements with outer retry loop includes CreateSession call
40
40
CreateSession (ctx context.Context , opts ... Option ) (s ClosableSession , err error )
41
41
42
- // Do provide the best effort for execute operation
42
+ // Do provide the best effort for execute operation.
43
+ //
43
44
// Do implements internal busy loop until one of the following conditions is met:
44
45
// - deadline was canceled or deadlined
45
46
// - retry operation returned nil as error
46
- // Warning: if context without deadline or cancellation func than Do can run indefinitely
47
+ //
48
+ // Warning: if context without deadline or cancellation func than Do can run indefinitely.
47
49
Do (ctx context.Context , op Operation , opts ... Option ) error
48
50
49
- // DoTx provide the best effort for execute transaction
51
+ // DoTx provide the best effort for execute transaction.
52
+ //
50
53
// DoTx implements internal busy loop until one of the following conditions is met:
51
54
// - deadline was canceled or deadlined
52
55
// - retry operation returned nil as error
53
- // DoTx makes auto begin, commit and rollback of transaction
56
+ //
57
+ // DoTx makes auto begin (with TxSettings, by default - SerializableReadWrite), commit and
58
+ // rollback (on error) of transaction.
59
+ //
54
60
// If op TxOperation returns nil - transaction will be committed
55
61
// If op TxOperation return non nil - transaction will be rollback
56
62
// Warning: if context without deadline or cancellation func than DoTx can run indefinitely
0 commit comments