Skip to content
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

Ability to list views, and to access db["view_name"].rows / rows_where / etc #54

Closed
ftrain opened this issue Aug 15, 2019 · 5 comments
Closed
Labels
enhancement New feature or request

Comments

@ftrain
Copy link

ftrain commented Aug 15, 2019

The docs show me how to create a view via db.create_view() but I can't seem to get back to that view post-creation; if I query it as a table it returns None, and it doesn't appear in the table listing, even though querying the view works fine from inside the sqlite3 command-line.

It'd be great to have the view as a pseudo-table, or if the python/sqlite3 module makes that hard to pull off (I couldn't figure it out), to have that edge-case documented next to the db.create_view() docs.

@ftrain ftrain changed the title Clarity around CREATE VIEW Clarity around accessing views and db.create_view() Aug 15, 2019
@simonw simonw changed the title Clarity around accessing views and db.create_view() Ability to list views, and to access db["view_name"].rows / rows_where / etc Aug 17, 2019
@simonw
Copy link
Owner

simonw commented Aug 17, 2019

Good catch: create_view() is an earlier utility method from before I started adding methods like db["table"].rows and .rows_where().

@simonw
Copy link
Owner

simonw commented Aug 23, 2019

Closed by #55

@simonw simonw closed this as completed Aug 23, 2019
@simonw
Copy link
Owner

simonw commented Aug 23, 2019

@simonw
Copy link
Owner

simonw commented Aug 23, 2019

@ftrain
Copy link
Author

ftrain commented Aug 23, 2019

Extremely cool and easy to understand. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants