Set the number of data rows to be generated for each table and the table order. Start the Data Generator from the Data Tools application menu or by right-clicking any table header. Saving the model file will save the layouts as well as the data generator settings. dbs model file.įirst, create a layout with the tables for which you want to generate random data.Įach time you need a different set of tables, you have to create a new layout. The generator patterns are saved for each column in the model file. You can choose and edit for each column one of the predefined patterns from the Pattern Repository. The first time you access the Data Generator feature, DbSchema will try to find a pattern for you. All other patterns will be interpreted as Reverse Regular Expressions.$patternA $patternB - combine two patterns.groovy: - use own script to generate values.json_list: json_map: - we use this for MongoDb.Pick up a value from the Primary Key table. load_values_from_pk - foreign key columns (involved in a foreign key, referring other columns) should use this pattern.skip: - skip the column from generator (do not generate). Like int, short, sequence, boolean, groovy, etc.Īny other pattern which doesn't start with one of these keywords will be interpreted as reverse regular expressions. There are dedicated patterns for numbers, date, booleans, starting with a keyword The random generator is using patterns for setting how the generated data should look like. Use the Data Generator to fill database tables with random data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |