Check the existence of a particular sequence in the database. Given a :class:`_engine.Connection` object and a string `sequence_name`, return ``True`` if the given sequence exists in the database, ``False`` otherwise. This is an internal dialect method. Applications
(
self,
connection: Connection,
sequence_name: str,
schema: Optional[str] = None,
**kw: Any,
)
| 1941 | raise NotImplementedError() |
| 1942 | |
| 1943 | def has_sequence( |
| 1944 | self, |
| 1945 | connection: Connection, |
| 1946 | sequence_name: str, |
| 1947 | schema: Optional[str] = None, |
| 1948 | **kw: Any, |
| 1949 | ) -> bool: |
| 1950 | """Check the existence of a particular sequence in the database. |
| 1951 | |
| 1952 | Given a :class:`_engine.Connection` object and a string |
| 1953 | `sequence_name`, return ``True`` if the given sequence exists in |
| 1954 | the database, ``False`` otherwise. |
| 1955 | |
| 1956 | This is an internal dialect method. Applications should use |
| 1957 | :meth:`_engine.Inspector.has_sequence`. |
| 1958 | """ |
| 1959 | |
| 1960 | raise NotImplementedError() |
| 1961 | |
| 1962 | def has_schema( |
| 1963 | self, connection: Connection, schema_name: str, **kw: Any |
no outgoing calls