File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments