In the Generator Dialog, select one of the tables, and the errors will showĪt the bottom. You can choose a pattern from the repository and edit it in the table pattern dialog.ĭifferent errors may occur when generating the data. The pattern repository is storing predefined patterns.ĭbSchema tries to find one pattern for each column, but this does not always work. Two columns with the same pattern and seed will generate identical values. If the column is not mandatory, this field is marked with a red '*'. In the next dialog, you can edit the table patterns, the percent of null values, and the seed. Please make sure you don't drop data on production databases! Carefully read DbSchema messages. When clicking the 'Generate' button, it will ask to drop or not the current data. Refers to the table Country, the table City should be the first in the list.ĭbSchema will try to order of the tables, which sometimes may fail, if for example, there are foreign keys in a loop.Īfter opening the dialog, DbSchema will check if the tables contain data or not. The table order is important for minimizing errors caused by foreign keys. The dialog is also showing the table status: if it currently contains data or not.ĭouble-click any of the tables for editing the generator settings. 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.
0 Comments
Leave a Reply. |