Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ellomas.com/llms.txt

Use this file to discover all available pages before exploring further.

Generator Overrides

Override auto-detected generators for specific columns using a YAML configuration file.

Syntax

<table_name>:
  <column_name>:
    generator: <generator_name>
    params:
      <param_name>: <value>
    disabled: true|false

Example

users:
  email:
    generator: email
  role:
    generator: weighted_choice
    params:
      choices:
        admin: 5
        user: 95
  created_at:
    generator: now
  internal_code:
    disabled: true

orders:
  total:
    generator: amount
    params:
      min: 10.00
      max: 9999.99
  status:
    generator: weighted_choice
    params:
      choices:
        pending: 30
        completed: 60
        cancelled: 10

Usage

seedling generate --count 10000 --generators overrides.yaml --output seed.sql

Merging Behavior

Override generators are merged on top of auto-detected generators:
  • If a column has an override, it replaces the auto-detected generator
  • If a column has disabled: true, no data is generated (NULL or default)
  • Columns not mentioned in the override file use auto-detected generators
  • Unknown table or column names in overrides produce a warning

Parameter Reference

GeneratorParameters
email
name
phone
uuid
bool
loremmin_words, max_words
constantvalue
weighted_choicechoices (map of value → weight)
random_intmin, max
float_rangemin, max, precision
amountmin, max
timestampmin_date, max_date
time_agomax_duration