propertydb

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) Create

func (s *Store) Create(ctx context.Context, core property.Property) error

func (*Store) ExecuteUnderTransaction

func (s *Store) ExecuteUnderTransaction(tx transaction.Transaction) (property.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) QueryByID

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

func (*Store) QueryByManagerID

func (s *Store) QueryByManagerID(ctx context.Context, id uuid.UUID) ([]property.Property, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, core property.Property) error

Jump to

Keyboard shortcuts

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