Reverse Engineering Models

You can create a data model from a database or a script using the Reverse Engineering process.

This topic walks you through the steps to reverse engineer an Amazon Keyspaces model. For detailed description of reverse engineering options, refer to the Reverse Engineering Options topic.

To reverse engineer a model:

  1. In erwin Data Modeler (DM), click Actions > Reverse Engineer.
    The New Model screen appears.

  2. Click Logical/Physical and set Database to Amazon Keyspaces.

  3. Click Next.
    The Reverse Engineering Wizard appears.

  4. Click one of the following options:

    • Keyspaces: Use this option to reverse engineer a model from your database.

      If you click Keyspaces, continue to step 5.

    • Script File: Use this option to reverse engineer a model from a script. Selecting this option enables the File field. Click Browse and select the necessary script file.

      If you click Script File, see step 13 below.

  5. Click Next.
  6. The Connection tab appears.

  7. Enter your User Name and Password.
  8. The following table explains the connection parameters.

    Parameter

    Description

    Additional Information

    Connection Method Specifies the type of connection you want to use. Select Direct to connect to your database directly.  
    Hostname/IP Specifies the hostname or IP address of the server where your database is hosted in the following format:

    cassandra.<region>.amazonaws.com

    For example, cassandra.us-east-2.amazonaws.com

    This option is available when Connection Method is set to Direct.

    Port Specifies the port configured for your database

    For example, 9142

    This option is available when Connection Method is set to Direct.

    SSL Certificate Path

    Specifies the path to the SSL certificate in the following format:

    C:\<file name>.crt

    For example, C:\SSL\sf-class2-root.crt

    This option is available when Connection Method is set to Direct.

  9. Click Connect.
    On successful connection, your connection information is displayed under Recent Connections.


  10. Click Next.

    The Keyspaces tab appears. It displays a list of available keyspaces.

  11. Under Available Keyspaces, select the keyspaces that you want to reverse engineer. Then, click .

    This moves the selected databases under Selected Keyspaces.

  12. Click Next.
    The Tables tab appears. It displays a list of available tables in the keyspaces that you selected in step 8.

  13. Click Next.
    The Option Set tab appears. It displays the default option set. You can either use the default or a custom option set.

  14. Click Next.
    The Detail Options tab appears. Set up appropriate options based on your requirement.

  15. Click OK.

    The reverse engineering process starts.

    Once the process is complete, based on your selections, a schema is generated and a model is created.

    You can edit the shape of the nodes to look like the standard table-like structure. On the ribbon click View > Field. You can also change label color, size, and caption using the properties pane.

Along with Keyspaces and Tables, other object such as Columns and Indexes are also retrieved.

You can view these objects via the model diagram or view their properties via the Model Explorer. Right-click an object and then, click the required Properties option. For example, on the model diagram, right click a table and then, click Table Properties. The Amazon Keyspaces table editor appears. You can view the table's CREATE statement on the No SQL tab, as seen , the table, Media has four properties, audio, video, id, and name to store additional information.