Made by myself to myself.
The software receives a path to the pseudocode file, reads the file, parse it into JSON and then turns it into SSMS SQL code and an Excel Data Dictionary.
- Parse pseudocode into JSON
- Generate SQL code
- Generate Data Dictionary
- In .xlsx (Excel Spreadsheet)
- In .csv (Comma-Separated Values)
- In .ods (OpenDocument Spreadsheet)
- Generate ERD (Entity-Relationship Diagram)
- With just the entities
- With the complete SQL in a table format
If this is too hard to read, see the example and the notes and rules to learn how to use it.
{for each table in the database}
- {table name} {optional: {'// ' or '# ' + table notes}}
{optional: {'description: ' + table description }}
{for each attribute in the table}
- {name} {type}{optional: {'({size})'}} {constrains separated by spaces} {optional: {'// ' or '# ' + description}}
{end for}
{end for}
- user # Needs to have a special character in the name or the password
description: Stores the credentials of a user
- user_id PK
- name varchar(64)
- password varchar(256) // Needs to have at least 8 characters
- data // References the user table
description: Stores at maximum 1024 characters of whatever the user wants
- data_id PK
- user_id FK(user)
- content: varchar(1024) null
- The Database name is the file name without extension (e.g.:
db.txt
database name isdb
). - All the words, except description and notes, become lower cased when parsed.
- The
not null
constrain is replaced withnull
, to explicitly state that the attribute can be NULL. - PKs and FKs are defined without type, but when parsed the type will be INT.
- FKs are defined with the "size" being the name of the referenced table.
This project is currently not under any external license.