Sha256: 46cb231870d5f4f4b440eaa168d293638ac699deb7f013be26f9cc7c6743c593

Contents?: true

Size: 1.03 KB

Versions: 18

Compression:

Stored size: 1.03 KB

Contents

module Sequel
  module Progress
    module DatabaseMethods

      # Progress uses the :progress database type.
      def database_type
        :progress
      end
    end
  
    module DatasetMethods
      SELECT_CLAUSE_METHODS = Dataset.clause_methods(:select, %w'select limit distinct columns from join where group order having compounds')

      # Progress requires SQL standard datetimes
      def requires_sql_standard_datetimes?
        true
      end

      # Progress does not support INTERSECT or EXCEPT
      def supports_intersect_except?
        false
      end

      private

      def select_clause_methods
        SELECT_CLAUSE_METHODS
      end

      # Progress uses TOP for limit, but it is only supported in Progress 10.
      # The Progress adapter targets Progress 9, so it silently ignores the option.
      def select_limit_sql(sql)
        raise(Error, "OFFSET not supported") if @opts[:offset]
        # if l = @opts[:limit]
        #   sql << " TOP "
        #   literal_append(sql, l)
        # end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sequel-3.47.0 lib/sequel/adapters/shared/progress.rb
sequel-3.46.0 lib/sequel/adapters/shared/progress.rb
sequel-3.45.0 lib/sequel/adapters/shared/progress.rb
sequel-3.44.0 lib/sequel/adapters/shared/progress.rb
sequel-3.43.0 lib/sequel/adapters/shared/progress.rb
sequel-3.42.0 lib/sequel/adapters/shared/progress.rb
sequel-3.41.0 lib/sequel/adapters/shared/progress.rb
sequel-3.40.0 lib/sequel/adapters/shared/progress.rb
sequel-3.39.0 lib/sequel/adapters/shared/progress.rb
sequel-3.38.0 lib/sequel/adapters/shared/progress.rb
sequel-3.37.0 lib/sequel/adapters/shared/progress.rb
sequel-3.36.1 lib/sequel/adapters/shared/progress.rb
sequel-3.36.0 lib/sequel/adapters/shared/progress.rb
sequel-3.35.0 lib/sequel/adapters/shared/progress.rb
sequel-3.34.1 lib/sequel/adapters/shared/progress.rb
sequel-3.34.0 lib/sequel/adapters/shared/progress.rb
sequel-3.33.0 lib/sequel/adapters/shared/progress.rb
sequel-3.32.0 lib/sequel/adapters/shared/progress.rb