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'),
        )
Exemple #2
0
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'),
        )
Exemple #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')
    )
Exemple #4
0
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'))
Exemple #7
0
def dbapi_lastrowid(fn):
    return _chain_decorators_on(
        fn,
        fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite')
    )