Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSchemaFile ¶
FindSchemaFile locates the schema.sql file
func GenerateCreatedAt ¶
func GenerateCreatedAt() string
GenerateCreatedAt generates a random created_at timestamp within the last 90 days
func GenerateExampleValue ¶
GenerateExampleValue generates an example value for documentation/display purposes
func GenerateValue ¶
func GenerateValue(column Column) interface{}
GenerateValue generates a realistic value for a column based on its name and type
Types ¶
type Seeder ¶
type Seeder struct {
// contains filtered or unexported fields
}
Seeder handles database seeding operations
func (*Seeder) CountTestRecords ¶
CountTestRecords counts the number of test-seeded records in a table
type TableSchema ¶
func FindTable ¶
func FindTable(tables []TableSchema, name string) *TableSchema
FindTable finds a table by name (case-insensitive)
func ParseSchema ¶
func ParseSchema(schemaPath string) ([]TableSchema, error)
ParseSchema parses the schema.sql file and returns all table schemas
Click to show internal directories.
Click to hide internal directories.