Generating a flattened view
- Last Updated: October 28, 2020
- 2 minute read
- DataDirect Connectors
- ODBC
- MongoDB 8.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 ID 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, see "Mapping objects to tables."
Depending on your work flow, you can now proceed with customizing the schema. See "Customizing your schema" for details.