-
Notifications
You must be signed in to change notification settings - Fork 8
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
How can I check schema of SQLLEX? #10
Comments
Hey, kingabzpro, sorry but what do you mean under "check schema of SQLLEX"? |
When I create a relational database with a foreign key, I want to see some sort of diagram or relation how my all tables are connected. |
Hmm... I guess right now there is no such method in SQLite3x for this case. If sqlite3 ( from the box) have something for this case, you can use For example: table_sql = db.execute("SELECT sql FROM sqlite_schema WHERE name = 'users';")
print(table_sql) CREATE TABLE 'users' (
username TEXT NOT NULL,
group_id INTEGER,
FOREIGN KEY (group_id) REFERENCES groups (group_id)
) If you have any ides how to make something like that tell me. UPD: pip install sqllex -U |
No description provided.
The text was updated successfully, but these errors were encountered: