Maowl Open Maowl

Import tables and merge models

File › Import… brings in work you already have, either as a new model or into the one you have open. When tables have the same name, nothing merges until you say so.

Ways to import

Everything you import keeps its table names and column names exactly as written. If a file or pasted text isn't something Maowl can read, is empty, or is damaged, Maowl doesn't import it and tells you why. For a damaged model file, the message also names the first problem and where in the file it occurs.

Open as a new model or add to the open one

Choose Open as a new model to keep the import separate from the model you have open, or Add to the open model to combine the two. When you add, we place the new tables beside your existing ones, select them, and zoom to show the whole model. Either way, everything you import goes into a new layer. Name it in Layer for this import, or leave the field blank to use the imported model's name. Layers from the imported model aren't carried over.

To import without reaching for the mouse, press Enter in the layer field, or ⌘Enter (Ctrl+Enter on Windows and Linux) in the text box.

Merging tables with the same name

Whenever tables have the same name, in the import, in the open model, or across the two, Maowl asks whether to merge them and lists them, with both spellings where they differ (OrderItem / Orderitem). Merge combines each set into one table with all of their columns and foreign keys. Keep separate leaves every table as it is and highlights the duplicates in red.

What happens when tables merge

Reviewing differences

If the same column has a different data type or example value in the two models, Maowl shows you each difference before changing anything. Choose Keep (the default) or Use imported for each one, or settle them all at once with Keep all or Use all imported. Whatever you choose, you can undo the whole import in one step.

Related