def dbapi_lastrowid(fn): """"target backend includes a 'lastrowid' accessor on the DBAPI cursor object. """ return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite', 'mysql+pymysql')(fn)
def emulated_lastrowid(fn): """"target dialect retrieves cursor.lastrowid or an equivalent after an insert() construct executes. """ return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite', 'mysql+pymysql', 'mssql+pyodbc', 'mssql+mxodbc')(fn)
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') )