item

package
v0.0.0-...-8b1a3a3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllStore

type AllStore struct {
	IMS    *ItemMasterStore
	IOS    *ItemOrderStore
	IOSFK  *ItemOrderNOFKStore
	IODFKS *ItemOrderDummyFKStore
	US     *UserStore
}

func NewAllStore

func NewAllStore(ctx context.Context, sc *spanner.Client) *AllStore

type ItemMaster

type ItemMaster struct {
	ItemID     string
	Name       string
	Price      int64
	CommitedAt time.Time
}

type ItemMasterStore

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

func NewItemMasterStore

func NewItemMasterStore(ctx context.Context, sc *spanner.Client) *ItemMasterStore

func (*ItemMasterStore) BatchInsertOrUpdate

func (s *ItemMasterStore) BatchInsertOrUpdate(ctx context.Context, items []*ItemMaster) error

func (*ItemMasterStore) GetRandomID

func (s *ItemMasterStore) GetRandomID() string

func (*ItemMasterStore) InsertOrUpdate

func (s *ItemMasterStore) InsertOrUpdate(ctx context.Context, item *ItemMaster) error

func (*ItemMasterStore) TableName

func (s *ItemMasterStore) TableName() string

type ItemOrder

type ItemOrder struct {
	ItemOrderID string
	ItemID      string
	UserID      string
	CommitedAt  time.Time
}

type ItemOrderDummyFK

type ItemOrderDummyFK struct {
	ItemOrderID string
	ItemID      string
	UserID      string
	CommitedAt  time.Time
}

type ItemOrderDummyFKStore

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

func NewItemOrderDummyFKStore

func NewItemOrderDummyFKStore(ctx context.Context, sc *spanner.Client) *ItemOrderDummyFKStore

func (*ItemOrderDummyFKStore) Insert

func (*ItemOrderDummyFKStore) TableName

func (s *ItemOrderDummyFKStore) TableName() string

type ItemOrderNOFK

type ItemOrderNOFK struct {
	ItemOrderID string
	ItemID      string
	UserID      string
	CommitedAt  time.Time
}

type ItemOrderNOFKStore

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

func NewItemOrderNOFKStore

func NewItemOrderNOFKStore(ctx context.Context, sc *spanner.Client) *ItemOrderNOFKStore

func (*ItemOrderNOFKStore) Insert

func (s *ItemOrderNOFKStore) Insert(ctx context.Context, order *ItemOrderNOFK) error

func (*ItemOrderNOFKStore) TableName

func (s *ItemOrderNOFKStore) TableName() string

type ItemOrderStore

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

func NewItemOrderStore

func NewItemOrderStore(ctx context.Context, sc *spanner.Client) *ItemOrderStore

func (*ItemOrderStore) Insert

func (s *ItemOrderStore) Insert(ctx context.Context, order *ItemOrder) error

func (*ItemOrderStore) TableName

func (s *ItemOrderStore) TableName() string

type User

type User struct {
	UserID     string
	Name       string
	CommitedAt time.Time
}

type UserStore

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

func NewUserStore

func NewUserStore(ctx context.Context, sc *spanner.Client) *UserStore

func (*UserStore) BatchInsertOrUpdate

func (s *UserStore) BatchInsertOrUpdate(ctx context.Context, users []*User) error

func (*UserStore) GetRandomID

func (s *UserStore) GetRandomID() string

func (*UserStore) TableName

func (s *UserStore) TableName() string

Jump to

Keyboard shortcuts

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