Documentation ¶
Overview ¶
Package seeds seeds the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateTx ¶ added in v0.4.0
PopulateTx inserts data into the database thoguh the use of database tx.
Types ¶
type Seed ¶
type Seed struct {
// contains filtered or unexported fields
}
Seed struct.
type SeedTx ¶ added in v0.4.0
type SeedTx struct {
// contains filtered or unexported fields
}
SeedTx struct.
func (SeedTx) ProductsSeed ¶ added in v0.4.0
ProductsSeed seeds product data.
type SeedTxWithError ¶ added in v0.4.0
type SeedTxWithError struct {
// contains filtered or unexported fields
}
SeedTxWithError struct used to validate the ability to rollback on errors.
func NewSeedTxWithError ¶ added in v0.4.0
func NewSeedTxWithError(tx *sqlx.Tx) SeedTxWithError
NewSeedTxWithError returns a seed object with a database tx.
func (SeedTxWithError) RolesSeed ¶ added in v0.4.0
func (s SeedTxWithError) RolesSeed() error
RolesSeed seeds roles data.
Click to show internal directories.
Click to hide internal directories.