Rename function, fixes #377.
This commit is contained in:
parent
41b7552df1
commit
7b90d76097
@ -2,11 +2,10 @@ import logging
|
|||||||
import threading
|
import threading
|
||||||
from urllib.parse import parse_qs, urlparse
|
from urllib.parse import parse_qs, urlparse
|
||||||
|
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine, inspect
|
||||||
from sqlalchemy.sql import text
|
from sqlalchemy.sql import text
|
||||||
from sqlalchemy.schema import MetaData
|
from sqlalchemy.schema import MetaData
|
||||||
from sqlalchemy.util import safe_reraise
|
from sqlalchemy.util import safe_reraise
|
||||||
from sqlalchemy.engine.reflection import Inspector
|
|
||||||
from sqlalchemy import event
|
from sqlalchemy import event
|
||||||
|
|
||||||
from alembic.migration import MigrationContext
|
from alembic.migration import MigrationContext
|
||||||
@ -92,7 +91,7 @@ class Database(object):
|
|||||||
@property
|
@property
|
||||||
def inspect(self):
|
def inspect(self):
|
||||||
"""Get a SQLAlchemy inspector."""
|
"""Get a SQLAlchemy inspector."""
|
||||||
return Inspector.from_engine(self.executable)
|
return inspect(self.executable)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def metadata(self):
|
def metadata(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user