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

        return exclusions.fails_on_everything_except("sqlite")
Beispiel #22
0
 def nullsordering(self):
     """Target backends that support nulls ordering."""
     return fails_on_everything_except('postgresql', 'oracle', 'firebird')
Beispiel #23
0
 def check_constraint_reflection(self):
     return fails_on_everything_except("postgresql", "sqlite")
Beispiel #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')
Beispiel #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")
Beispiel #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')
Beispiel #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')