Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateArgs ¶
type CreateArgs struct {
StateProv cspc.StateProvince
County cspc.County
}
CreateArgs are the arguments for CreateCounty
func NewCreateArgs ¶
func NewCreateArgs(stateProv cspc.StateProvince, county cspc.County) *CreateArgs
NewCreateArgs is an initializer for the CreateArgs struct
type Selector ¶
type Selector interface {
FindByCountyCode(ctx context.Context, s cspc.StateProvince, cc string) (cspc.County, error)
}
Selector reads records from the db
type Transactor ¶
type Transactor interface {
CreateCounty(ctx context.Context, args *CreateArgs) error
}
Transactor performs DML actions against the DB
type Tx ¶
Tx stores a sql.Tx which will be used for all DML operations
func (*Tx) CreateCounty ¶
func (t *Tx) CreateCounty(ctx context.Context, args *CreateArgs) error
CreateCounty inserts a record in the lookup.county_lkup table
Click to show internal directories.
Click to hide internal directories.