-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
SQLite Schema Discovery #25
Comments
No, we should not write a custom SQL parser I guess this may help? |
Yes, we could use a combination of SQLite pragma statements for
|
Hey @charleschege, just a quick check, are you taking this issue? |
Hi @billy1624 I am working on it |
Thanks!! Do ping me if you need any help, either here or Discord, both fine. |
I found a SQLite version of Sakila schema for testing
Discovery
Getting column info: https://www.sqlite.org/pragma.html#pragma_table_info
Getting foreign key info: https://www.sqlite.org/pragma.html#pragma_foreign_key_list
Getting index & primary key info: https://www.sqlite.org/pragma.html#pragma_index_list
Parser
Parse the above result into schema definition structs. Including information like
Writer
Converting the discovered & parsed table info into
sea_query::TableCreateStatement
.The text was updated successfully, but these errors were encountered: