outerbase / sdk

Typescript ORM and automated model generation direct from your database schema. Supports Outerbase features for saved queries & AI.
https://outerbase.com
MIT License
12 stars 5 forks source link

Prevent duplicate imports in database model introspection #37

Closed trace2798 closed 4 months ago

trace2798 commented 5 months ago

Purpose

Resolves #27 where when a user uses database model introspection, if multiple columns in one table referenced the same foreign table it would import that relationship class N times.

This PR resolves that issue so each class is only imported once per class.

Tasks

Verify

Before

image

After

image