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

information_schema tables as models #153

Closed
adamchainz opened this issue Sep 18, 2015 · 0 comments
Closed

information_schema tables as models #153

adamchainz opened this issue Sep 18, 2015 · 0 comments
Labels

Comments

@adamchainz
Copy link
Owner

The various information_schema tables could be expressed as Django models. They would not trigger migrations with with managed = False and could be importable as e.g. django_mysql.models.information_schema, for information_schema.Schemata etc. The only two hacks I can forsee would be:

  1. The db_table param would really need to contain the database and table i.e. information_schema.tablename
  2. The objects managers on many of them should be automatically filtered to ones' own database only by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant