Zontroy Commands
Last updated
Last updated
You can use commands to create a project and generate code in Zontroy. Also switch between projects using open command is possible. If you want to include some entities to your Zontroy project you can use include command. In reverse you can exclude entities from project by using exclude command. Full list of commands are provided with usage examples in the following:
Creating a project is a starting point to generate code in Zontroy. You can do it using create command. If you are creating a project to generate code using a database connection then use this command.
--empty
Creates an empty project.
--type
MSSQL|MySQL|Oracle|PostgreSQL
--language
CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another
--name
Name of the Zontroy Project
--server
Server name of the database.
--database
Name of the database to connect.
--user
Database user.
--password
Database user password.
--path
Path of the Zontroy Project
Creating a project is a starting point to generate code in Zontroy. You can do it using create command. If you are creating a project to generate code using entity classes then use this command.
--empty
Creates an empty project.
--type
Entity means create project using data model in entity classes.
--language
CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another
--name
Name of the Zontroy Project
--entity-path
Path of entity classes.
--path
Path of the Zontroy Project
Creating a template project provides a project example to generate code Zontroy. You can do it using create --template command. If you are creating a template project based on a template using a database connection then use this command.
--template
Creates a template project
--type
MSSQL|MySQL|Oracle|PostgreSQL
--language
CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another
--name
Name of the Zontroy Project.
--template-name
Name of the template that will be used.
--server
Server name of the database.
--database
Name of the database to connect.
--user
Database user.
--password
Database user password.
--path
Path of the Zontroy Project
Creating a template project provides a project example to generate code Zontroy. If you are creating a template project based on a template using entity classes then use this command.
--template
Option that creates a template project
--type
MSSQL|MySQL|Oracle|PostgreSQL
--language
CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another
--name
Name of the Zontroy Project.
--template-name
Name of the template that will be used.
--server
Server name of the database.
--database
Name of the database to connect.
--user
Database user.
--password
Database user password.
--path
Path of the Zontroy Project
Use open command to open an existing Zontroy project.
Path of the project to be opened.
Use generate command to generate code from all template files in the current project.
It means that generate code from all zsif, zref and ziref files in the current project directory.
This is an optional parameter and displays generated code in output window in that speed.
1x|2x|4x|8x|16x|32x|64x|128x|256x|512x
Path of zsif, zref and ziref file to generate from.
This command includes all tables into the current project as entities.
This parameter means that include all tables into the current project.
This parameter means that include specified table into the current project.
This command excludes all tables form the current project. After execute exclude all command include entity/entities in order to generate code. It is not possible to generate code without entity in the project.
This parameter means that exclude all tables from the current project.
This parameter means that exclude specified table from the current project.
This command shows help.