diff options
author | Federico Caselli <cfederico87@gmail.com> | 2020-04-13 12:16:21 +0200 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2020-06-03 20:53:47 +0200 |
commit | 8dcf876fe9a06f3360b8d260459cdff050b2aa00 (patch) | |
tree | ab6a0493ef1c1b7b9d869df3e3b36d9ee557c318 /lib/sqlalchemy/engine/interfaces.py | |
parent | 7f0cb933f2b1979a8d781855618b7fd3bf280037 (diff) | |
download | sqlalchemy-8dcf876fe9a06f3360b8d260459cdff050b2aa00.tar.gz |
Added reflection method :meth:`.Inspector.get_sequence_names`
Added new reflection method :meth:`.Inspector.get_sequence_names` which
returns all the sequences defined. Support for this method has been added
to the backend that support :class:`.Sequence`: PostgreSql, Oracle,
MSSQL and MariaDB >= 10.3.
Fixes: #2056
Change-Id: I0949696a39aa28c849edf2504779241f7443778a
Diffstat (limited to 'lib/sqlalchemy/engine/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/engine/interfaces.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index 49d9af966..59b9cd4ce 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -304,8 +304,17 @@ class Dialect(object): def get_view_names(self, connection, schema=None, **kw): """Return a list of all view names available in the database. - schema: - Optional, retrieve names from a non-default schema. + :param schema: schema name to query, if not the default schema. + """ + + raise NotImplementedError() + + def get_sequence_names(self, connection, schema=None, **kw): + """Return a list of all sequence names available in the database. + + :param schema: schema name to query, if not the default schema. + + .. versionadded:: 1.4 """ raise NotImplementedError() |