当前位置: 首页>>代码示例>>Python>>正文


Python exclusions.fails_on_everything_except函数代码示例

本文整理汇总了Python中sqlalchemy.testing.exclusions.fails_on_everything_except函数的典型用法代码示例。如果您正苦于以下问题:Python fails_on_everything_except函数的具体用法?Python fails_on_everything_except怎么用?Python fails_on_everything_except使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了fails_on_everything_except函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: datetime_literals

    def datetime_literals(self):
        """target dialect supports rendering of a date, time, or datetime as a
        literal string, e.g. via the TypeEngine.literal_processor() method.

        """

        return fails_on_everything_except("sqlite")
开发者ID:NeilTruick,项目名称:sqlalchemy,代码行数:7,代码来源:requirements.py

示例2: unique_constraint_reflection

 def unique_constraint_reflection(self):
     return fails_on_everything_except(
                 "postgresql",
                 "mysql",
                 "sqlite",
                 "oracle"
             )
开发者ID:cpcloud,项目名称:sqlalchemy,代码行数:7,代码来源:requirements.py

示例3: emulated_lastrowid

 def emulated_lastrowid(self):
     """"target dialect retrieves cursor.lastrowid or an equivalent
     after an insert() construct executes.
     """
     return fails_on_everything_except('mysql',
                                   'sqlite+pysqlite', 'sqlite+pysqlcipher',
                                   'sybase', 'mssql')
开发者ID:FlipperPA,项目名称:sqlalchemy,代码行数:7,代码来源:requirements.py

示例4: non_updating_cascade

    def non_updating_cascade(self):
        """target database must *not* support ON UPDATE..CASCADE behavior in
        foreign keys."""

        return fails_on_everything_except(
            "sqlite", "oracle", "+zxjdbc"
        ) + skip_if("mssql")
开发者ID:BY-jk,项目名称:sqlalchemy,代码行数:7,代码来源:requirements.py

示例5: check_constraint_reflection

 def check_constraint_reflection(self):
     return fails_on_everything_except(
         "postgresql",
         "sqlite",
         "oracle",
         self._mysql_and_check_constraints_exist,
     )
开发者ID:monetate,项目名称:sqlalchemy,代码行数:7,代码来源:requirements.py

示例6: dbapi_lastrowid

    def dbapi_lastrowid(self):
        """"target backend includes a 'lastrowid' accessor on the DBAPI
        cursor object.

        """
        return skip_if('mssql+pymssql', 'crashes on pymssql') + \
                    fails_on_everything_except('mysql',
                                       'sqlite+pysqlite', 'sqlite+pysqlcipher')
开发者ID:FlipperPA,项目名称:sqlalchemy,代码行数:8,代码来源:requirements.py

示例7: dbapi_lastrowid

    def dbapi_lastrowid(self):
        """"target backend includes a 'lastrowid' accessor on the DBAPI
        cursor object.

        """
        return skip_if(
            "mssql+pymssql", "crashes on pymssql"
        ) + fails_on_everything_except(
            "mysql", "sqlite+pysqlite", "sqlite+pysqlcipher"
        )
开发者ID:BY-jk,项目名称:sqlalchemy,代码行数:10,代码来源:requirements.py

示例8: reflects_pk_names

    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except('postgresql', 'oracle', 'mssql',
                    'sybase')
开发者ID:NeilTruick,项目名称:sqlalchemy,代码行数:5,代码来源:requirements.py

示例9: nullsordering

 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except('postgresql', 'oracle', 'firebird')
开发者ID:NeilTruick,项目名称:sqlalchemy,代码行数:3,代码来源:requirements.py

示例10: non_updating_cascade

    def non_updating_cascade(self):
        """target database must *not* support ON UPDATE..CASCADE behavior in
        foreign keys."""

        return fails_on_everything_except('sqlite', 'oracle', '+zxjdbc') + \
            skip_if('mssql')
开发者ID:FlipperPA,项目名称:sqlalchemy,代码行数:6,代码来源:requirements.py

示例11: check_constraint_reflection

 def check_constraint_reflection(self):
     return fails_on_everything_except(
                 "postgresql",
                 "sqlite"
             )
开发者ID:robin900,项目名称:sqlalchemy,代码行数:5,代码来源:requirements.py

示例12: check_constraint_reflection

 def check_constraint_reflection(self):
     return fails_on_everything_except(
         "postgresql", "sqlite", "oracle",
         self._mariadb_102
     )
开发者ID:cpcloud,项目名称:sqlalchemy,代码行数:5,代码来源:requirements.py

示例13: reflects_pk_names

    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except(
            "postgresql", "oracle", "mssql", "sybase", "sqlite"
        )
开发者ID:BY-jk,项目名称:sqlalchemy,代码行数:6,代码来源:requirements.py


注:本文中的sqlalchemy.testing.exclusions.fails_on_everything_except函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。