Skip to content

Minimizing code repetitions in CRUD-with-MySQL folder and process of scaling the project according to the number of entities in the database by using Zontroy code generator#1

Open
tolgahanipek wants to merge 6 commits into
hashi7412:mainfrom
tolgahanipek:main

Conversation

@tolgahanipek
Copy link
Copy Markdown

Minimizing code repetitions in CRUD-with-MySQL folder and process of scaling the project according to the number of entities in the database by using Zontroy code generator

Hi 🙋‍♂️ @squaremost

By using Zontroy code generator, coding costs were reduced by minimizing code repetitions in quickstart-generated folder.
To explain this briefly, I first created a database from mssql to prevent this code repetition. Then, I ran the Zontroy code generator and made the necessary configuration settings to connect the database I had previously created to Zontroy. Then I pulled the tables of this database from the zontroy in the form of entities and arranged the sections that were the same as the code template but only with different labels, so that the names of the tables and fields in the database would appear. For this, I used ziref , zsif and zref file types, which are specific to Zontroy. For more detailed information, you can check out https://docs.zontroy.com/ .

Display via video recording:

curd

For Example:

Created Database

344945878-17715232-54a9-4fdc-a3d1-5cf9b3fd80f3

Database configuration in Zontroy code generator

image

As you can see, the database tables have been added to the left. To generate the code, a main.py.zsif file was created to generate the code in a single file. zsif stands for zontroy single file.

image

After some repetitive codes are written with Zontroy's unique syntax, the code is generated by pressing the generate button in the main.py.zsif file.

image

RESULT:

image

I hope it was useful for you. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant