dbgen

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvanceDevClockParams

type AdvanceDevClockParams struct {
	Seconds   int64
	UpdatedAt time.Time
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type NotifyDevClockParams

type NotifyDevClockParams struct {
	Channel string
	Payload string
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AdvanceDevClock

func (q *Queries) AdvanceDevClock(ctx context.Context, arg AdvanceDevClockParams) (int64, error)

AdvanceDevClock moves the development clock @seconds further ahead, creating the singleton row when missing, and returns how far ahead it now runs.

func (*Queries) GetDevClockOffset

func (q *Queries) GetDevClockOffset(ctx context.Context) (int64, error)

SPDX-License-Identifier: AGPL-3.0-only Copyright The Muster Authors GetDevClockOffset reads how far the development clock runs ahead of the system time; no row means not at all.

func (*Queries) NotifyDevClock

func (q *Queries) NotifyDevClock(ctx context.Context, arg NotifyDevClockParams) error

NotifyDevClock tells every replica that the development clock moved, once the transaction commits.

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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