Skip to content

Commit 206f65d

Browse files
authored
Update client.go
1 parent a85f633 commit 206f65d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

query/client.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,23 @@ type (
6868
// Warning: if context without deadline or cancellation func than DoTx can run indefinitely
6969
DoTx(ctx context.Context, op TxOperation, opts ...DoTxOption) error
7070

71+
// Exec execute query without result
72+
//
73+
// Exec used by default:
74+
// - DefaultTxControl
75+
Exec(ctx context.Context, query string, opts ...options.Execute) error
76+
77+
// Query execute query with materialized result
78+
//
79+
// Warning: the large result from query will be materialized and can happened to "OOM killed" problem
80+
//
81+
// Exec used by default:
82+
// - DefaultTxControl
83+
Query(ctx context.Context, query string, opts ...options.Execute) (r Result, err error)
84+
7185
// QueryResultSet is a helper which read all rows from first result set in result
7286
//
73-
// ReadRow returns error if result contains more than one result set
87+
// Warning: the large result set from query will be materialized and can happened to "OOM killed" problem
7488
//
7589
// Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
7690
QueryResultSet(ctx context.Context, query string, opts ...options.Execute) (ResultSet, error)

0 commit comments

Comments
 (0)