Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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')
    )
Esempio n. 4
0
def nullsordering(fn):
    """Target backends that support nulls ordering."""
    return _chain_decorators_on(
        fn,
        fails_on_everything_except('postgresql', 'oracle', 'firebird')
    )