Generating a Flattened View
- Last Updated: February 6, 2020
- 2 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.0
- Documentation
After you open the Table Wizard according to the instructions in Starting the Schema Tool, you can generate a flattened view of your database by taking the following steps:
A flattened view of your data has been generated and saved. The Schema Tool's main display appears with a flattened view of your data in the left-hand panel:
The Table Wizard has decomposed each collection into a relational table.
The _id field is mapped as a primary key column and denoted
with the icon. Fields with simple types, such as
address and name, are
mapped as the corresponding columns ADDRESS and NAME. Subdocuments are flattened into columns using the <objectname>_<fieldname> pattern, and nested arrays
are flattened into columns using the <arrayname>_<arrayindex> pattern. For more information on relational
mapping, refer to "Mapping Objects to Tables" in the driver documentation.
Depending on your work flow, you can now proceed with customizing the schema. See Customizing Your Schema for details.