-
Notifications
You must be signed in to change notification settings - Fork 0
Faker Methods Reference
Arael Espinosa edited this page Apr 6, 2026
·
1 revision
The faker strategy uses the Bogus library to generate realistic fake data. All values are generated per-row via SQL expressions.
- name: "email"
strategy: "faker"
faker: "email"| Method | Example Output |
|---|---|
first_name |
John |
last_name |
Smith |
full_name |
John Smith |
| Method | Example Output |
|---|---|
email |
john.smith@example.com |
user_name |
john.smith42 |
phone |
+1-555-867-5309 |
| Method | Example Output |
|---|---|
address |
123 Main St, Springfield, IL 62701 |
street_address |
123 Main St |
city |
Springfield |
country |
United States |
zip_code |
62701 |
| Method | Example Output |
|---|---|
company |
Acme Corporation |
| Method | Example Output |
|---|---|
lorem |
Lorem ipsum dolor sit amet |
paragraph |
Lorem ipsum... (multi-sentence) |
url |
https://example.com/path |
| Method | Example Output |
|---|---|
ip_address |
192.168.1.42 |
| Method | Example Output |
|---|---|
uuid |
550e8400-e29b-41d4-a716-446655440000 |
ssn |
123-45-6789 |
| Method | Column Type | Example Output |
|---|---|---|
random_number |
integer | 42837 |
random_double |
numeric/float | 3.14159 |
digits_as_integer |
integer | 78234 |
Numeric methods will produce a validation warning if used on a text column.
| Method | Example Output |
|---|---|
date |
2024-03-15 |
datetime |
2024-03-15T14:23:00 |
| Method | Example Output |
|---|---|
color |
Cornflower Blue |
product |
Ergonomic Steel Keyboard |
price |
49.99 |
| Method | Example Output |
|---|---|
iban |
GB29NWBK60161331926819 |
credit_card |
4111 1111 1111 1111 |
- All faker values are non-deterministic — each run produces different values.
- For consistent, reproducible pseudonymization use the
hashstrategy instead. - Faker does not preserve referential integrity across tables. Use
hashortemplateif FK relationships must be consistent.