-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test file generator and mention in README.
- Loading branch information
Showing
3 changed files
with
134 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,18 @@ one repeat | |
one repeat | ||
``` | ||
|
||
The `file` generator can be use to read custom values from a file: | ||
|
||
```sh | ||
$ printf "one\ntwo\nthree" > values.txt | ||
$ fakedata -l5 file,values.txt | ||
three | ||
two | ||
two | ||
one | ||
two | ||
``` | ||
|
||
# Formatters | ||
|
||
### SQL formatter | ||
|
@@ -125,7 +137,7 @@ $ fakedata --format=sql --limit 1 email domain | |
INSERT INTO TABLE (email,domain) values ('[email protected]','example.me'); | ||
``` | ||
|
||
You can specify the name of the column using a field with the following format | ||
You can specify the name of the column using a field with the following format | ||
`column_name=generator`: | ||
|
||
```sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
one | ||
two | ||
three | ||
four | ||
five | ||
six | ||
seven | ||
eight | ||
nine | ||
ten |