MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / has_table

Method has_table

lib/sqlalchemy/dialects/postgresql/base.py:3830–3833  ·  view source on GitHub ↗
(self, connection, table_name, schema=None, **kw)

Source from the content-addressed store, hash-verified

3828
3829 @reflection.cache
3830 def has_table(self, connection, table_name, schema=None, **kw):
3831 self._ensure_has_table_connection(connection)
3832 query = self._has_table_query(schema)
3833 return bool(connection.scalar(query, {"table_name": table_name}))
3834
3835 @reflection.cache
3836 def has_sequence(self, connection, sequence_name, schema=None, **kw):

Callers

nothing calls this directly

Calls 3

_has_table_queryMethod · 0.95
scalarMethod · 0.45

Tested by

no test coverage detected