コード例 #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'),
        )
コード例 #2
0
ファイル: requires.py プロジェクト: onetera/scandatatransfer
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'),
        )
コード例 #3
0
ファイル: requires.py プロジェクト: onetera/scandatatransfer
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')
    )
コード例 #4
0
ファイル: requires.py プロジェクト: onetera/scandatatransfer
def nullsordering(fn):
    """Target backends that support nulls ordering."""
    return _chain_decorators_on(
        fn,
        fails_on_everything_except('postgresql', 'oracle', 'firebird')
    )
コード例 #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'))
コード例 #6
0
def nullsordering(fn):
    """Target backends that support nulls ordering."""
    return _chain_decorators_on(
        fn, fails_on_everything_except('postgresql', 'oracle', 'firebird'))
コード例 #7
0
ファイル: requires.py プロジェクト: idavydov/pinyin-toolkit
def dbapi_lastrowid(fn):
    return _chain_decorators_on(
        fn,
        fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite')
    )