Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { AddAll bool RemoveAll bool SeedToAdd string SeedToRemove string FileToCreate string Directory string ConnectionURI string SeedKeyNames string SeedKeyIntegerType bool Verbose bool }
Flags is commandline flags
type PgseederSeed ¶
type PgseederSeed struct { ID uuid.UUID `pg:",pk, unique, notnull, type:uuid, default:uuid_generate_v4()"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time SeedKeys []SeedKey `pg:"seed_keys"` TableName string TableOrder int }
PgseederSeed is the pgseeder_seeds table model.
type SeedKeyType ¶
type SeedKeyType = string
SeedKeyType is the type of a key.
const ( SeedKeyTypeString SeedKeyType = "SeedKeyTypeString" SeedKeyTypeInteger SeedKeyType = "SeedKeyTypeInteger" )
...
type Seeder ¶
type Seeder struct { *pg.DB SeedKeyType SeedKeyType // contains filtered or unexported fields }
Seeder represents a seeder instance.
Click to show internal directories.
Click to hide internal directories.