MySQL Table Creation

  

Virtual Machine  

The file Definition in PROIV is also known as a logical file. It defines the format of the data fields in a file. Each physical file used by PROIV must have at least one logical File Definition, but may have more depending upon the application.

To create a new file definition of type MySQL follow these steps:

  1. On the PROIV Developer toolbar, click the arrow next to the New icon New Object Icon  and select New File Definition. Alternatively, click the Developer menu, hover the mouse on the New option and then click New File Definition.
    The Name the new file definition window appears.

  2. In the File name box, enter the file name. This is the logical file name for the File Definition.

  3. In the Description box, enter the description.

  4. On the File Type list, select MYSQL.

  5. On the Category list, select the required security category for the File Definition.

  6. In the Physical File box, enter the name physical file where the data gets stored. If you do not enter a name for the physical file, the logical file name is used as the physical file name. Alternatively, you can also specify a database in the Physical File box. The format is %SECTIONNAME% where SECTIONNAME refers to the appropriate DATABASE section in the PROIV configuration file. The PROIV Kernel automatically connects to that database when an attempt to access the file is made. The logical file name will be used as the table name.

  7. To get the details from the existing file definition, under Copy from file group, select the existing file from which you can copy details from.

  8. In the Copy as group, select the appropriate option:

    1. Select New File to create a new file with the same fields but with no relationship. It can be changed with no impact on the original file definition.

    2. Select Child to create a new logical view on the original file, identical in all aspects except that the file name and fields will have the suffix added. This cannot be edited, but it is kept in step with the original if the original is edited.

    3. Select Associate to create file which is similar to a Child File but can be edited and is not automatically kept in step with original. You can specify a suffix that gets appended to the copied fields to identify them as copied. These can be applied to Key Fields, Fields or both.

  9. Click OK to create the File Definition.  
    The Editing File Definition window appears.

  10. Enter the File Variables for the File Definition. Refer to File Definition Window for more information. The window does not open if the file is a Child File. However, if the file is copied, the File Variables are automatically populated.

  11. Click Storage tab and configure the external storage types. Refer to MySQL External Storage Formats for more information.

  12. To generate SQL scripts, click SQL tab. Refer to SQL Tab for more information.

Comment on this topic

Topic ID: 560025

Table of Contents

Index

Glossary

-Search-

Back