Creating an Edg file compatible with this project - rg2740/rit-iste422-project GitHub Wiki
In order for this program to run, it requires using an Edge file. The edge file will define relationships, tables, and fields to be displayed and later converted to SQL. This program looks for a few key identifiers to create these and without them the program will crash for you.
To complete this you just need a text editor such as Visual studio code. Once you choose your text editor create a new file with .edg as the file extension.
At the top of your file be sure to have the following line. ‘EDGE Diagram File` Once you have this set up you can begin setting up your figures
For each figure you must declare it’s Style and its text.
Style allows you to declare whether you are making a field or a table. A field would be an attribute while a table would be an entity.
The text of the figure indicates what text will appear on the GUI. This is the name of the field or table. In the end each figure should be styled like this. Figure 1{
Style "Entity" Text "Faculty" }
Next you need to set up the connections. The connections serve as the relationships between the fields and tables. Whether just stating that a field belongs to a table or stating whether it is mandatory or Optional and whether or not there are many. The following Styles are allowed when declaring a connector Optional Many, Mandatory Many, and Relation. This is an example of how a connector should look.
Connector 2{
Style "Relation" Figure1 5 Figure5 11
}
Once you set this up for each of your fields and tables you are all set and the program will now be able to put your data onto the GUI.