Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMigrations ¶
RunMigrations runs all pending database migrations using goose.
Types ¶
type AdvisoryLock ¶ added in v0.5.0
type AdvisoryLock struct {
// contains filtered or unexported fields
}
AdvisoryLock holds one session-level PostgreSQL advisory lock on a dedicated pool connection. Unlock must be called exactly once.
func (*AdvisoryLock) Unlock ¶ added in v0.5.0
func (l *AdvisoryLock) Unlock()
Unlock releases the advisory lock and its dedicated connection.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB wraps a pgxpool.Pool.
func (*DB) AcquireAdvisoryLock ¶ added in v0.5.0
AcquireAdvisoryLock serializes cross-replica work identified by key without holding row locks needed by callbacks performed during that work.
func (*DB) TryAcquireAdvisoryLock ¶ added in v0.5.0
TryAcquireAdvisoryLock obtains the lock without waiting.
Click to show internal directories.
Click to hide internal directories.