1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Prax Configuration File
# This file configures database connections, generators, and runtime behavior.
[]
# Database provider: "postgresql", "mysql", "sqlite", "mongodb"
= "postgresql"
# Connection URL - supports environment variable interpolation
= "postgresql://prax:prax_test_password@localhost:5432/prax_test"
# Connection pool settings
[]
= 2
= 10
= "30s"
= "10m"
= "30m"
# Schema file location (default: prax/schema.prax)
[]
= "prax/schema.prax"
# Generator configuration
[]
# Output directory for generated code
= "./src/generated"
# Generate async client (default: true)
= true
# Enable tracing instrumentation
= true
# Preview features to enable
= ["full_text_search", "multi_schema"]
# Migration settings
[]
# Directory for migration files (inside prax/ directory)
= "./prax/migrations"
# Auto-apply migrations in development
= false
# Migration table name
= "_prax_migrations"
# Seeding configuration
[]
# Seeds directory (inside prax/ directory)
= "./prax/seeds"
# Seed script path - supports multiple formats:
# - .rs - Rust seed script (compiled and executed)
# - .sql - Raw SQL file (executed directly)
# - .json - JSON data file (declarative seeding)
# - .toml - TOML data file (declarative seeding)
= "./prax/seeds/seed.rs"
# Run seed automatically after migrations in development
= false
# Environment-specific seeding controls
# Prevents accidental seeding in production
[]
= true
= true
= false
= false
# Logging and debugging
[]
# Log all queries
= false
# Pretty print SQL
= true
# Query execution time warnings (ms)
= 1000
# Development-specific overrides
[]
= "${DEV_DATABASE_URL}"
= true
# Production-specific overrides
[]
= 5
= 50
= false