Skip to content

Configuration Reference

DBSprout is configured via a dbsprout.toml file in your project root. All settings are optional — DBSprout works with sensible defaults.

[database]
url = "postgresql://user:pass@localhost:5432/myapp"
[generation]
default_rows = 1000
engine = "heuristic"
seed = 42
batch_size = 1000
[generation.tables.users]
rows = 500
[generation.tables.orders]
rows = 10000
[output]
format = "sql"
directory = "./seeds/"
[llm]
provider = "embedded"
model = "qwen2.5-1.5b"
temperature = 0.1
max_tokens = 4096
[privacy]
tier = "local"
audit = true
[train]
backend = "unsloth"
epochs = 3
batch_size = 4
learning_rate = 2e-4
KeyTypeDescriptionDefault
urlstringDatabase connection string
KeyTypeDescriptionDefault
default_rowsintegerRows per table100
enginestringGeneration engine"heuristic"
seedintegerRandom seedrandom
batch_sizeintegerRows per batch1000

Per-table overrides:

KeyTypeDescription
rowsintegerRow count for this table
KeyTypeDescriptionDefault
formatstringOutput format"sql"
directorystringOutput directory"./dbsprout_output/"
KeyTypeDescriptionDefault
providerstringLLM provider"embedded"
modelstringModel name"qwen2.5-1.5b"
temperaturefloatGeneration temperature0.1
max_tokensintegerMax output tokens4096
KeyTypeDescriptionDefault
tierstringPrivacy tier (local, redacted, cloud, training)"local"
auditbooleanEnable audit loggingtrue
KeyTypeDescriptionDefault
backendstringTraining backend (unsloth, mlx)"unsloth"
epochsintegerTraining epochs3
batch_sizeintegerTraining batch size4
learning_ratefloatLearning rate2e-4