Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v1.4.0
type Option struct { internal.Option // Id for pg_advisory_lock or pg_advisory_xact_lock LockId int64 // Lock level LockLevel LockLevel // Self DB DB *sql.DB // Self transaction Tx *sql.Tx }
func MakeOption ¶ added in v1.4.0
func MakeOption() Option
func (Option) WithLockId ¶ added in v1.5.0
func (Option) WithLockLevelSession ¶ added in v1.5.0
func (Option) WithLockLevelTransaction ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.