Django 2.1 inspectdb supports Oracle ?

30 views
Skip to first unread message

pk

unread,
Oct 11, 2018, 8:31:40 PM10/11/18
to Django users

The [version 2.0 docs][https://docs.djangoproject.com/en/2.0/ref/django-admin/#django-admin-inspectdb] states, "inspectdb works with PostgreSQL, MySQL and SQLite. Foreign-key detection only works in PostgreSQL and with certain types of MySQL tables.". This seems to exclude Oracle.

In constrast, the [version 2.1 docs][https://docs.djangoproject.com/en/2.1/ref/django-admin/#django-admin-inspectdb] doesn't state this, but I'm seeing that it doesn't produce models with Oracle; is inspectdb V2.1 expected to work with Oracle tables and views ?

I've tried:

python manage.py inspectdb > models.py
python manage.py inspectdb --include-views > models.py

In both cases, no errors are produced and the output just contains:

'''
# [generated comments...]
from django.db import models
'''

Thanks,

pk

Reply all
Reply to author
Forward
0 new messages