Python sqlalchemy.sql.expression.Executable() Examples
The following are 3
code examples of sqlalchemy.sql.expression.Executable().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sqlalchemy.sql.expression
, or try the search function
.
Example #1
Source File: database.py From ACE with Apache License 2.0 | 5 votes |
def retry_sql_on_deadlock(executable, *args, **kwargs): assert isinstance(executable, Executable) return retry_on_deadlock(executable, *args, **kwargs)
Example #2
Source File: database.py From ACE with Apache License 2.0 | 5 votes |
def retry_multi_sql_on_deadlock(executables, *args, **kwargs): assert isinstance(executables, list) assert all([isinstance(_, Executable) for _ in executables]) return retry_on_deadlock(executables, *args, **kwargs)
Example #3
Source File: commands.py From sqlalchemy-redshift with MIT License | 5 votes |
def __init__(self, name): """ Builds the Executable/ClauseElement that represents the refresh command Parameters ---------- name: str, required The name of the view to refresh """ self.name = name