floordb

package
v0.0.0-...-c2300e3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func NewStore

func NewStore(log *logger.Logger, db *sqlx.DB) *Store

NewStore constructs the api for data access.

func (*Store) BatchCreate

func (s *Store) BatchCreate(ctx context.Context, cores []floor.Floor) error

func (*Store) Create

func (s *Store) Create(ctx context.Context, core floor.Floor) error

func (*Store) DeleteByPropertyID

func (s *Store) DeleteByPropertyID(ctx context.Context, id uuid.UUID) error

func (*Store) ExecuteUnderTransaction

func (s *Store) ExecuteUnderTransaction(tx transaction.Transaction) (floor.Storer, error)

ExecuteUnderTransaction constructs a new Store value replacing the sqlx DB value with a sqlx DB value that is currently inside a transaction.

func (*Store) QueryByBlockID

func (s *Store) QueryByBlockID(ctx context.Context, id uuid.UUID) ([]floor.Floor, error)

func (*Store) QueryByID

func (s *Store) QueryByID(ctx context.Context, id uuid.UUID) (floor.Floor, error)

func (*Store) QueryByPropertyID

func (s *Store) QueryByPropertyID(ctx context.Context, id uuid.UUID) ([]floor.Floor, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, core floor.Floor) error

Jump to

Keyboard shortcuts

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