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

Add introspection example #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add introspection example #40

wants to merge 2 commits into from

Conversation

pydanny
Copy link
Contributor

@pydanny pydanny commented Nov 13, 2024

No description provided.

pydanny and others added 2 commits November 13, 2024 16:16
Co-authored-by: Audrey Roy Greenfeld <arg@answer.ai>
Co-authored-by: Audrey Roy Greenfeld <arg@answer.ai>
@jph00
Copy link
Contributor

jph00 commented Nov 21, 2024

This is a great idea. A few suggestions to make it maybe easier for folks to understand:

  • Do the initial table setup use plain SQL statements - i.e using db.q(). That way, it's more obvious I think what's going on, and you don't need the del stuff and explanation
  • Before you do any of the globals() stuff, show how to manually use db.t. and dataclass to dynamically get the table objects and classes
  • Then finally at the end explain that can be automated.

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