You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,8 @@ However, please **DO MAKE SURE TO TAKE A BACKUP** of your database before you mo
22
22
23
23
Check on the "Known Issues" section below for more information about current identified bugs.
24
24
25
-
# Table of Contents
25
+
## Table of Contents
26
+
26
27
*[Important information and disclaimer](#important-information-and-disclaimer)
27
28
*[Supported database engines & data types](#supported-database-engines--data-types)
28
29
* [Database Engine](#database-engine)
@@ -36,11 +37,11 @@ Check on the "Known Issues" section below for more information about current ide
36
37
*[License](#license)
37
38
*[Authors](#authors)
38
39
39
-
# Important information and disclaimer
40
+
##Important information and disclaimer
40
41
41
42
Mock-data idea is to generate fake data in new test cluster and it is **NOT TO BE USED IN PRODUCTION ENVIRONMENTS**. Please ensure you have a backup of your database before running Mock-data in an environment you can't afford losing.
42
43
43
-
# Supported database engines & data types
44
+
##Supported database engines & data types
44
45
45
46
### Database Engine
46
47
+ PostgresSQL
@@ -51,7 +52,7 @@ Mock-data idea is to generate fake data in new test cluster and it is **NOT TO B
51
52
+ All datatypes that are listed on the [postgres datatype](https://www.postgresql.org/docs/9.6/static/datatype.html) website are supported
52
53
+ As Greenplum are both base from postgres, the supported postgres datatype also apply in their case
53
54
54
-
# How it works
55
+
##How it works
55
56
56
57
+ PARSES the CLI arguments
57
58
+ CHECKS if the database connection can be established
@@ -66,7 +67,8 @@ Mock-data idea is to generate fake data in new test cluster and it is **NOT TO B
66
67
+ CHECK constraints are ignored (coming soon?)
67
68
+ LOADS constraints that it had backed up (Mock-data can fail at this stage if its not able to fix the constraint violations)
68
69
69
-
# Usage
70
+
## Usage
71
+
70
72
```
71
73
$ mock --help
72
74
This program generates fake data into a postgres database cluster.
@@ -100,7 +102,7 @@ Flags:
100
102
Use "mock [command] --help" for more information about a command.
101
103
```
102
104
103
-
# Installation
105
+
##Installation
104
106
105
107
[Download](https://github.com/pivotal/mock-data/releases/latest) the latest release for your OS & Architecture and you're ready to go!
106
108
@@ -114,7 +116,7 @@ chmod +x /usr/local/bin/mock
114
116
115
117
provided `/usr/local/bin` is part of the $PATH environment variable.
116
118
117
-
# Examples
119
+
##Examples
118
120
119
121
Here is a simple demo of how the tool works, provide us your table and we will load the data for you
120
122
@@ -129,15 +131,15 @@ For more examples how to use the tool, please check out the [wiki](https://githu
129
131
* Read this section on how the subcommand [tables](https://github.com/pivotal-legacy/mock-data/wiki/Sub-command:-Tables) works
130
132
131
133
132
-
# Known Issues
134
+
##Known Issues
133
135
134
136
1. We do struggle when recreating constraints, even though we do try to fix the primary key , foreign key, unique key. So there is no guarantee that the tool will fix all the constraints and manual intervention is needed in some cases.
135
137
2. If you have a composite unique index where one column is part of foreign key column then there are chances the constraint creation would fail.
136
138
3. Fixing CHECK constraints isn't supported due to complexity, so recreating check constraints would fail, use `custom` subcommand to control the data being inserted
137
139
4. On Greenplum Database partition tables are not supported (due to check constraint issues defined above), so use the `custom` sub command to define the data to be inserted to the column with check constraints
138
140
5. Custom data types are not supported, use `custom` sub command to control the data for that custom data types
139
141
140
-
# Developers / Collaboration
142
+
##Developers / Collaboration
141
143
142
144
You can sumbit issues or pull request via [github](https://github.com/pivotal/mock-data) and we will try our best to fix them.
143
145
@@ -170,10 +172,10 @@ To customize this repository, follow the steps
170
172
/bin/sh build.sh
171
173
```
172
174
173
-
# License
175
+
## License
174
176
175
177
The Project is licensed under [MIT](https://github.com/pivotal-legacy/mock-data/blob/master/LICENSE)
0 commit comments