corearchivetest

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	CInt  *int64  `db:"c_int" json:"c_int,omitempty"`
	CText *string `db:"c_text" json:"c_text,omitempty"`
}

type Model

type Model struct {
	Id   int64     `db:"id" json:"id,omitempty"`
	Iduu uuid.UUID `db:"id_uu" json:"id_uu,omitempty"`
	Input
}

type Store

type Store struct {
	Db *pgxpool.Pool
}

func (Store) ArchiveById added in v0.1.17

func (s Store) ArchiveById(ctx context.Context, tx pgx.Tx, id int64) (stmt string, err error)

func (Store) ArchiveByUuid added in v0.1.17

func (s Store) ArchiveByUuid(ctx context.Context, tx pgx.Tx, id uuid.UUID) (stmt string, err error)

func (Store) GetMeta

func (s Store) GetMeta() lysmeta.Result

func (Store) GetName

func (s Store) GetName() string

func (Store) RestoreById added in v0.1.17

func (s Store) RestoreById(ctx context.Context, tx pgx.Tx, id int64) (stmt string, err error)

func (Store) RestoreByUuid added in v0.1.17

func (s Store) RestoreByUuid(ctx context.Context, tx pgx.Tx, id uuid.UUID) (stmt string, err error)

func (Store) Select

func (s Store) Select(ctx context.Context, params lyspg.SelectParams) (items []Model, unpagedCount lyspg.TotalCount, stmt string, err error)

func (Store) SelectById

func (s Store) SelectById(ctx context.Context, fields []string, id int64) (item Model, stmt string, err error)

func (Store) SelectByUuid added in v0.1.17

func (s Store) SelectByUuid(ctx context.Context, fields []string, id uuid.UUID) (item Model, stmt string, err error)

Jump to

Keyboard shortcuts

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