Skip to content
New issue

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

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

Already on GitHub? # to your account

Add index and primary key output to the sqlite schema writer backend. #402

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

phoyd
Copy link
Contributor

@phoyd phoyd commented Feb 1, 2023

I needed mdb-schema to export the indexes for the mdb databases I want to migrate, so I've added that. This is very straightforward, except that sqlite3 does not support ALTER TABLE PRIMARY KEY . Therefore mdb_print_schema inserts the PRIMARY KEY constraint directly into the table definition.

Tested with a dozen databases from my project, each with ~180 Tables and 200MB size.

@evanmiller
Copy link
Contributor

Thank you for the contribution!

@evanmiller evanmiller merged commit 0e77b68 into mdbtools:dev Feb 2, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants