示例#1
0
def cpython(fn):
    return _chain_decorators_on(
         fn,
         only_if(lambda: util.cpython,
           "cPython interpreter needed"
         )
    )
示例#2
0
def window_functions(fn):
    return only_if([
                "postgresql", "mssql", "oracle"
            ], "Backend does not support window functions")(fn)
示例#3
0
def returning(fn):
    return only_if(["postgresql", "mssql", "oracle", "firebird"],
            "'returning' not supported by database"
        )(fn)
示例#4
0
def sequences(fn):
    """Target database must support SEQUENCEs."""

    return only_if([
            "postgresql", "firebird", "oracle"
        ], "no SEQUENCE support")(fn)