pg

package
v2.3.48 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockWithTransaction

func LockWithTransaction(ctx ql.TxContext, key string) error

func TryLockWithTransaction

func TryLockWithTransaction(ctx ql.TxContext, key string) (bool, error)

TryLockWithTransaction Tries to get a lock for the given key using pg_try_advisory_xact_lock. Returns true, if the lock could be acquired.

Types

This section is empty.

Jump to

Keyboard shortcuts

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