-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added
query.WithPoolID()
execute option
- Loading branch information
1 parent
b958288
commit 77edab7
Showing
8 changed files
with
106 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
* Added `query.WithPoolID()` execute option | ||
|
||
## v3.85.1 | ||
* Added `spans.Retry` constructor of `trace.Retry` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package query | ||
|
||
import ( | ||
"google.golang.org/grpc" | ||
|
||
"github.com/ydb-platform/ydb-go-sdk/v3/internal/params" | ||
"github.com/ydb-platform/ydb-go-sdk/v3/internal/query/options" | ||
"github.com/ydb-platform/ydb-go-sdk/v3/internal/query/tx" | ||
) | ||
|
||
const ( | ||
SyntaxYQL = options.SyntaxYQL | ||
SyntaxPostgreSQL = options.SyntaxPostgreSQL | ||
) | ||
|
||
const ( | ||
ExecModeParse = options.ExecModeParse | ||
ExecModeValidate = options.ExecModeValidate | ||
ExecModeExplain = options.ExecModeExplain | ||
ExecModeExecute = options.ExecModeExecute | ||
) | ||
|
||
const ( | ||
StatsModeBasic = options.StatsModeBasic | ||
StatsModeNone = options.StatsModeNone | ||
StatsModeFull = options.StatsModeFull | ||
StatsModeProfile = options.StatsModeProfile | ||
) | ||
|
||
func WithParameters(parameters *params.Parameters) options.Execute { | ||
return options.WithParameters(parameters) | ||
} | ||
|
||
func WithTxControl(txControl *tx.Control) options.Execute { | ||
return options.WithTxControl(txControl) | ||
} | ||
|
||
func WithTxSettings(txSettings tx.Settings) options.DoTxOption { | ||
return options.WithTxSettings(txSettings) | ||
} | ||
|
||
func WithCommit() options.Execute { | ||
return options.WithCommit() | ||
} | ||
|
||
func WithExecMode(mode options.ExecMode) options.Execute { | ||
return options.WithExecMode(mode) | ||
} | ||
|
||
func WithSyntax(syntax options.Syntax) options.Execute { | ||
return options.WithSyntax(syntax) | ||
} | ||
|
||
func WithStatsMode(mode options.StatsMode, callback func(Stats)) options.Execute { | ||
return options.WithStatsMode(mode, callback) | ||
} | ||
|
||
func WithCallOptions(opts ...grpc.CallOption) options.Execute { | ||
return options.WithCallOptions(opts...) | ||
} | ||
|
||
func WithPoolID(id string) options.Execute { | ||
return options.WithPoolID(id) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters