Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.1.0"
Variables ¶
View Source
var Seeders = []State{}
View Source
var Testing bool = false
Functions ¶
func InitSeeder ¶
Types ¶
type Seeder ¶
type Seeder struct { gorm.Model Tag string `gorm:"size:455"` Filename string `gorm:"size:455"` User string `gorm:"size:255"` }
Seeder model
type SeederStore ¶
type SeederStore struct {
// contains filtered or unexported fields
}
func NewSeederStore ¶
func NewSeederStore(db *gorm.DB, tableName string) *SeederStore
func (*SeederStore) FetchAll ¶
func (m *SeederStore) FetchAll() ([]*Seeder, error)
func (*SeederStore) SaveState ¶
func (m *SeederStore) SaveState(tag, filename, user string) error
func (*SeederStore) TagInDB ¶
func (m *SeederStore) TagInDB(tag string) bool
If tag is not found an NoRecordFound
Click to show internal directories.
Click to hide internal directories.