#24177 closed Cleanup/optimization (fixed)
Docs. inspectdb now inspect the database view
Reported by: | Fabio Caritas Barrionuevo da Luz | Owned by: | Tim Graham |
---|---|---|---|
Component: | Documentation | Version: | 1.8alpha1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Hello, recently, in the commit https://github.com/django/django/commit/b8cdc7dcc3fc6897fb2a75f90023f5c67aad327f support was added for the "database view" in the inspectdb management command, However, this was not documented.
this pull-request fix this: https://github.com/django/django/pull/3946
Change History (9)
comment:1 by , 10 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
follow-up: 3 comment:2 by , 10 years ago
Needs tests: | set |
---|
I think we also need to add a test to confirm this feature.
comment:3 by , 10 years ago
Replying to timgraham:
I think we also need to add a test to confirm this feature.
A test was added when cross database support was added for Oracle. Fairly sure this should cover it.
comment:4 by , 10 years ago
Needs tests: | unset |
---|---|
Owner: | changed from | to
Patch needs improvement: | unset |
Status: | new → assigned |
Triage Stage: | Accepted → Ready for checkin |
Great, I'll do a light edit on the English and commit this then.
comment:5 by , 10 years ago
Sorry for the mistakes, english is not my native language. I still have quite a lot to learn.
I added the corrections suggested by MarkusH.
See: https://github.com/django/django/pull/3946/commits
As this new feature is included, I believe it is necessary to differentiate a model generated from a table and a model generated from a view. Add a simple comment "maps a view" (or other text) in the generated class already solves it.
If, in the future, django offer support for "synonym" feature of Oracle, differentiate this can be useful.
In my specific case, the company I started working on last mont, has an Oracle database with at least 67 schemas, and over 4320 tables, views and synonym. The database of this size, differentiate what is table, what is view and what is synonym becomes quite useful.
comment:6 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
PR: https://github.com/django/django/pull/3946