mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 11:12:26 -05:00
[chore]: Bump github.com/jackc/pgx/v5 from 5.3.1 to 5.4.1 (#1907)
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.3.1 to 5.4.1. - [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md) - [Commits](https://github.com/jackc/pgx/compare/v5.3.1...v5.4.1) --- updated-dependencies: - dependency-name: github.com/jackc/pgx/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
b560fe186d
commit
70357a770f
25 changed files with 1052 additions and 1243 deletions
8
vendor/github.com/jackc/pgx/v5/tx.go
generated
vendored
8
vendor/github.com/jackc/pgx/v5/tx.go
generated
vendored
|
|
@ -44,6 +44,10 @@ type TxOptions struct {
|
|||
IsoLevel TxIsoLevel
|
||||
AccessMode TxAccessMode
|
||||
DeferrableMode TxDeferrableMode
|
||||
|
||||
// BeginQuery is the SQL query that will be executed to begin the transaction. This allows using non-standard syntax
|
||||
// such as BEGIN PRIORITY HIGH with CockroachDB. If set this will override the other settings.
|
||||
BeginQuery string
|
||||
}
|
||||
|
||||
var emptyTxOptions TxOptions
|
||||
|
|
@ -53,6 +57,10 @@ func (txOptions TxOptions) beginSQL() string {
|
|||
return "begin"
|
||||
}
|
||||
|
||||
if txOptions.BeginQuery != "" {
|
||||
return txOptions.BeginQuery
|
||||
}
|
||||
|
||||
var buf strings.Builder
|
||||
buf.Grow(64) // 64 - maximum length of string with available options
|
||||
buf.WriteString("begin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue