pgsql

package
v2.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsertGlobalTransaction = `` /* 208-byte string literal not displayed */

	QueryGlobalTransactionByXid = `` /* 144-byte string literal not displayed */

	UpdateGlobalTransaction = "update %s set status = $1, gmt_modified = CURRENT_TIMESTAMP where xid = $2"

	InactiveGlobalTransaction = "update %s set active = 0, gmt_modified = CURRENT_TIMESTAMP where xid = $1"

	DeleteGlobalTransaction = "delete from %s where xid = $1"

	InsertBranchTransaction = `` /* 250-byte string literal not displayed */

	QueryBranchTransaction = `` /* 197-byte string literal not displayed */

	QueryBranchTransactionByXid = `` /* 203-byte string literal not displayed */

	UpdateBranchTransaction = "update %s set status = $1, gmt_modified = CURRENT_TIMESTAMP where branch_id = $2"

	DeleteBranchTransaction = "delete from %s where branch_id = $1"

	InsertRowLock = `insert into %s (xid, transaction_id, branch_id, resource_id, table_name, pk, row_key, gmt_create,
		gmt_modified) values %s`

	QueryRowKey = `` /* 144-byte string literal not displayed */

	CreateGlobalTable = `` /* 559-byte string literal not displayed */

	CreateBranchTable = `` /* 560-byte string literal not displayed */

	CreateLockTable = `` /* 412-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func FromParameters

func FromParameters(parameters map[string]interface{}) (storage.Driver, error)

func New

func New(params DriverParameters) (storage.Driver, error)

New constructs a new Driver.

Types

type DriverParameters

type DriverParameters struct {
	DSN                string
	GlobalTable        string
	BranchTable        string
	LockTable          string
	QueryLimit         int
	MaxOpenConnections int
	MaxIdleConnections int
	MaxLifeTime        time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL