1.3. Import from DB

Import from the start screen

The start screen provide sequences to create a new project with imported database structure

images/start.png

You can use "Import from new project connection" button or create a new local connection and select it to create new project from it.

Import to existing project

There is two ways to import a database structure into the project:

  • Via the Model menu -> Import from Database
  • Using the Synchronize with DB option from the context menu in the Project Explorer

images/sync/sync_from_project_root.png

Both methods require an active connection

The Synchronize action, unlike Import, will show a project diff window after the structure is loaded.

Select structures

The first phase of the import loads schemas and tables from the connection and allows you to choose which ones to import. You can select entire schemas or individual tables.

images/sync/select_objects_for_sync.png

The second phase is the actual import. OrmFactory will retrieve detailed information from the database. A progress bar will be shown during this process.