(cls, pg_vers)
return sql
Return SQL statement for finding objects.
Return SQL statement for finding objects.
Return SQL statement for finding objects .
def get_load_sql(cls, pg_vers):
        """Return SQL statement for finding objects."""

        sql = "SELECT tgname as name, pg_get_triggerdef(oid) as def "\
              "  FROM  pg_trigger "\
              "  WHERE tgrelid = %(oid)s AND "
        if pg_vers >= 90000:
            sql += "NOT tgisinternal"
        else:
            sql += "NOT tgisconstraint"
        return sql
def get_load_sql ( cls , pg_vers ) : sql = "SELECT tgname as name, pg_get_triggerdef(oid) as def " "  FROM  pg_trigger " "  WHERE tgrelid = %(oid)s AND " if pg_vers >= 90000 : sql += "NOT tgisinternal" else : sql += "NOT tgisconstraint" return sql