Importing inherits tables from PostgreSQL

First of all I must say that the tool is fantastic. Thank you!

Is it possibility to import and display the inheritance of a table?

CREATE TABLE A (
tmp varchar(10)
);

CREATE TABLE B (
test_field_b int
) INHERITS (A);

1 Like

Thanks for your feedback! We don’t support this at the moment. But will consider it going forward. Cheers.

1 Like

Would be amazing if could retain the “inherits” relationship. E.g.

Inherits { assets -> files }

Then anything that is in assets, also shows up in the box for files, and one only has to put the additions into the files table.

Update April 2025: Now you can use DBML TablePartial to define reusable sets of fields, settings, and indexes and inject them into multiple tables with a simple ~partial_name syntax.

I hope you guys like this feature.

On the other hand, you can read the reason why we don’t choose the “table inheritance” approach here.