series

package
v0.0.0-...-ac0b00a Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexTypeString

func IndexTypeString(indexType IndexType) string

func UUIDString

func UUIDString(id pgtype.UUID) string

Types

type IndexType

type IndexType int
const (
	BTREE IndexType = 0
	BRIN  IndexType = 1
)

type Series

type Series struct {
	Query  *dbms.Queries
	Logger *slog.Logger
	// contains filtered or unexported fields
}

func (*Series) GenerateSeries

func (s *Series) GenerateSeries() error

func (*Series) GetUUIDv4

func (s *Series) GetUUIDv4(id pgtype.UUID) (time.Duration, error)

func (*Series) GetUUIDv7

func (s *Series) GetUUIDv7(id pgtype.UUID) (time.Duration, error)

func (*Series) GetUUIDv7BRIN

func (s *Series) GetUUIDv7BRIN(id pgtype.UUID) (time.Duration, error)

func (*Series) InsertUUIDv4Bulk

func (s *Series) InsertUUIDv4Bulk() (chan UUID, error)

func (*Series) InsertUUIDv7Bulk

func (s *Series) InsertUUIDv7Bulk() (chan UUID, error)

func (*Series) MergeUUIDResult

func (s *Series) MergeUUIDResult(uuid UUID, index IndexType) error

sqlc doesn't support MERGE queries: https://github.com/sqlc-dev/sqlc/issues/1661

type UUID

type UUID struct {
	ID      pgtype.UUID
	Version byte
	Insert  time.Duration
	Lookup  time.Duration
}

Jump to

Keyboard shortcuts

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