db

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrNoRows added in v0.0.2

func IsErrNoRows(err error) bool

func NewID added in v0.0.4

func NewID() (string, error)

Types

type Repository

type Repository struct {
	*sqlc.Queries
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(ctx context.Context, connString string) (*Repository, error)

func (*Repository) Close

func (repo *Repository) Close()

func (*Repository) Migrate

func (repo *Repository) Migrate(ctx context.Context) error

func (*Repository) Ping

func (repo *Repository) Ping(ctx context.Context) error

func (*Repository) Timezone

func (repo *Repository) Timezone(ctx context.Context) (string, error)

func (*Repository) Version

func (repo *Repository) Version(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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