Skip to content

add stub of a dbml importer #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 15, 2025
Merged

add stub of a dbml importer #155

merged 6 commits into from
Jan 15, 2025

Conversation

sierra-moxon
Copy link
Member

@sierra-moxon sierra-moxon commented Jan 9, 2025

Simple schema automator implementation if DBML -> LinkML.

It would be nice to take a table with no FKs, a single column PK, and at least one descriptive column, and turn that into an enumeration instead of another class. But from the schema POV, we can't ascertain the content of the table in order to fill in the PVs. Also to add is mulit-column unique keys -> unique_keys in linkml.

but, this is a first step towards that support. pydbml looks pretty active and can translate DMBL -> SQL DDL as well.

Copy link
Collaborator

@turbomam turbomam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my first time reviewing an importer. This certainly looks like it extracts the most essential Class/table and slots/columns attributes. I like the tests!

@sierra-moxon sierra-moxon merged commit 3d1ecfd into main Jan 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants