Obtaining a Database Schema

See Also

The IDE allows you to capture and create a persistent database schema which can then be used in other projects.

To connect to a database to retrieve a schema, the database driver first needs to be added to the IDE. Database drivers can be added in the Services window. For more, see Adding a New Driver.

To capture a database schema:

  1. Make sure the database server is running.
  2. Choose File > New File to open the New File wizard.
  3. Select the Project where the schema should be saved.
  4. Select Persistence in the Categories pane.
  5. Select Database Schema in the File Types pane and click Next.
  6. For File Name, provide a name for the schema.
  7. Click Browse to specify the Folder where to save the schema. The default location is src/conf.
  8. Click Next.
  9. Select an existing database connection from the list or select New Database Connection to create a new connection. For more, see Connecting to a Database.
  10. Click Next.

    You may be prompted by a Connect dialog box to supply a username and password to connect to the database, if required. Enter the user name and password in the Basic setting tab and click OK.

  11. Select the tables and views you want to capture in the Available Tables and Views list on the left, then click Add to add them to your list of Selected Tables and Views on the right. Alternatively, you can click Add All to specify all tables and views.
  12. Click Finish to complete capturing the schema.

The IDE displays a progress window with information about the status of the capturing of the database schema, including the table and view information it is capturing.

When schema capturing is complete, the progress window closes.

The IDE saves the captured schema in XML format. The schema node (  ) is visible in the Projects window.

See Also
Recapturing Schema From a Database
Connecting to a Database

Legal Notices