Esempio n. 1
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'),
        )
Esempio n. 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'),
        )
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')
    )
Esempio n. 5
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. 6
0
def nullsordering(fn):
    """Target backends that support nulls ordering."""
    return _chain_decorators_on(
        fn, fails_on_everything_except('postgresql', 'oracle', 'firebird'))
Esempio n. 7
0
def dbapi_lastrowid(fn):
    return _chain_decorators_on(
        fn,
        fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite')
    )