Example #1
0
 def check_constraint_reflection(self):
     return fails_on_everything_except(
         "postgresql",
         "sqlite",
         "oracle",
         self._mysql_and_check_constraints_exist,
     )
Example #2
0
    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")
Example #3
0
    def dbapi_lastrowid(self):
        """"target backend includes a 'lastrowid' accessor on the DBAPI
        cursor object.

        """
        return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
                                       'sqlite+pysqlite', 'mysql+pymysql')
Example #4
0
 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')
Example #5
0
 def unique_constraint_reflection(self):
     return fails_on_everything_except(
                 "postgresql",
                 "mysql",
                 "sqlite",
                 "oracle"
             )
Example #6
0
    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")
Example #7
0
    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')
Example #8
0
    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"
        )
Example #9
0
 def emulated_lastrowid(self):
     """"target dialect retrieves cursor.lastrowid or an equivalent
     after an insert() construct executes.
     """
     return fails_on_everything_except(
         "mysql+mysqldb",
         "mysql+oursql",
         "sqlite+pysqlite",
         "mysql+pymysql",
         "mysql+cymysql",
         "sybase",
         "mssql+pyodbc",
         "mssql+mxodbc",
     )
Example #10
0
 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except('postgresql', 'oracle', 'firebird')
Example #11
0
 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except("postgresql", "oracle", "firebird")
Example #12
0
    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')
Example #13
0
 def check_constraint_reflection(self):
     return fails_on_everything_except(
                 "postgresql",
                 "sqlite"
             )
Example #14
0
    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except(
            "postgresql", "oracle", "mssql", "sybase", "sqlite"
        )
Example #15
0
 def check_constraint_reflection(self):
     return fails_on_everything_except(
         "postgresql", "sqlite", "oracle",
         self._mariadb_102
     )
Example #16
0
    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")
Example #17
0
 def check_constraint_reflection(self):
     return fails_on_everything_except("postgresql", "sqlite", "oracle",
                                       self._mariadb_102)
Example #18
0
 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except("postgresql", "oracle", "firebird")
Example #19
0
    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')
Example #20
0
 def unique_constraint_reflection(self):
     return fails_on_everything_except("postgresql", "mysql", "sqlite",
                                       "oracle")
Example #21
0
    def no_referential_integrity(self):
        """test will fail if referential integrity is enforced"""

        return exclusions.fails_on_everything_except("sqlite")
Example #22
0
 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except('postgresql', 'oracle', 'firebird')
Example #23
0
 def check_constraint_reflection(self):
     return fails_on_everything_except("postgresql", "sqlite")
Example #24
0
    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except('postgresql', 'oracle', 'mssql',
                    'sybase')
Example #25
0
    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except("postgresql", "oracle", "mssql",
                                          "sybase", "sqlite")
Example #26
0
    def reflects_pk_names(self):
        """Target driver reflects the name of primary key constraints."""

        return fails_on_everything_except('postgresql', 'oracle', 'mssql',
                                          'sybase', 'sqlite')
Example #27
0
 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', 'sybase',
                                       'mssql')