db

package
v0.0.0-...-46bccf7 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLStore

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

Store struct provide all function Queries and + transaction

func (*SQLStore) CreateFileWithTx

func (store *SQLStore) CreateFileWithTx(ctx context.Context, arg *sqlc.CreateFileParams, saveFile func() error) (*sqlc.File, error)

func (*SQLStore) CreateFilesWithTx

func (store *SQLStore) CreateFilesWithTx(ctx context.Context, arg []*sqlc.CreateFilesParams, saveFiles func() error) (err error)

func (*SQLStore) DeleteFilesWithTx

func (store *SQLStore) DeleteFilesWithTx(ctx context.Context, names []string, deleteFiles func(files []*sqlc.File) error) error

type Store

type Store interface {
	sqlc.Querier
	CreateFileWithTx(ctx context.Context, arg *sqlc.CreateFileParams, saveFile func() error) (*sqlc.File, error)
	CreateFilesWithTx(ctx context.Context, arg []*sqlc.CreateFilesParams, saveFiles func() error) error
	DeleteFilesWithTx(ctx context.Context, names []string, deleteFiles func(files []*sqlc.File) error) error
}

Store interface provide all function Queries and + transaction

func NewStore

func NewStore(connPool *pgxpool.Pool) Store

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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