def dbapi_lastrowid(fn): if util.pypy: return _chain_decorators_on(fn, fails_if(lambda: True)) else: return _chain_decorators_on( fn, fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite', 'mysql+pymysql'), )
def dbapi_lastrowid(fn): if util.pypy: return _chain_decorators_on( fn, fails_if(lambda:True) ) else: return _chain_decorators_on( fn, fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite', 'mysql+pymysql'), )
def reflects_pk_names(fn): """Target driver reflects the name of primary key constraints.""" return _chain_decorators_on( fn, fails_on_everything_except('postgresql', 'oracle') )
def nullsordering(fn): """Target backends that support nulls ordering.""" return _chain_decorators_on( fn, fails_on_everything_except('postgresql', 'oracle', 'firebird') )
def reflects_pk_names(fn): """Target driver reflects the name of primary key constraints.""" return _chain_decorators_on( fn, fails_on_everything_except('postgresql', 'oracle'))
def nullsordering(fn): """Target backends that support nulls ordering.""" return _chain_decorators_on( fn, fails_on_everything_except('postgresql', 'oracle', 'firebird'))
def dbapi_lastrowid(fn): return _chain_decorators_on( fn, fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite') )