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,
)
| 1910 | raise NotImplementedError() |
| 1911 | |
| 1912 | def has_sequence( |
| 1913 | self, |
| 1914 | connection: Connection, |
| 1915 | sequence_name: str, |
| 1916 | schema: Optional[str] = None, |
| 1917 | **kw: Any, |
| 1918 | ) -> bool: |
| 1919 | """Check the existence of a particular sequence in the database. |
| 1920 | |
| 1921 | Given a :class:`_engine.Connection` object and a string |
| 1922 | `sequence_name`, return ``True`` if the given sequence exists in |
| 1923 | the database, ``False`` otherwise. |
| 1924 | |
| 1925 | This is an internal dialect method. Applications should use |
| 1926 | :meth:`_engine.Inspector.has_sequence`. |
| 1927 | """ |
| 1928 | |
| 1929 | raise NotImplementedError() |
| 1930 | |
| 1931 | def has_schema( |
| 1932 | self, connection: Connection, schema_name: str, **kw: Any |
no outgoing calls