Editor Extensions » Generate SQL from models

Generate SQL from models


Generate SQL

The "SQL Generator" extension allows you to generate SQL based on your model. In the extensions panel, click on the "SQL Generator" extension: Editor extensions

A modal window will appear: Editor extensions

  • Select the database type you would like to generate the SQL for, currently MySQL and Postgres are supported.
  • Select the entities you would like to generate the SQL for.
  • Finally select the actions you need. (Select, Insert, Update, Delete, Create).

Editor extensions

Run via CLI

You can also run the SQL Generator extension directly on your machine using the nuzur CLI. This writes the generated SQL files directly to your local filesystem without requiring you to download a ZIP archive from the browser:

nuzur-cli run-extension

The CLI will guide you to select your project, version, configuration settings, and the output folder where the generated files will be written.

Next steps