Skip to content

Commit

Permalink
SNOW-1058245-sqlalchemy-20-support: add cache for has_seqence_cache r…
Browse files Browse the repository at this point in the history
…election
  • Loading branch information
sfc-gh-mraba committed Mar 11, 2024
1 parent 8aac16c commit 4af8296
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/snowflake/sqlalchemy/snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def has_table(self, connection, table_name, schema=None, **kw):
"""
return self._has_object(connection, "TABLE", table_name, schema)

@reflection.cache
def has_sequence(self, connection, sequence_name, schema=None, **kw):
"""
Checks if the sequence exists
Expand Down

0 comments on commit 4af8296

Please sign in to comment.