Sha256: 00e5c8ce6b13ab9f7ce9944c39b78588bfd9679a931a8aff72aa2cf4e7cb3a82

Contents?: true

Size: 314 Bytes

Versions: 66

Compression:

Stored size: 314 Bytes

Contents

module Bmg
  module Sql
    module OffsetClause
      include Expr

      OFFSET = "OFFSET"

      def offset
        last.to_i
      end

      def to_sql(buffer, dialect)
        buffer << OFFSET << SPACE << offset.to_s
        buffer
      end

    end # module OffsetClause
  end # module Sql
end # module Bmg

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
bmg-0.23.3 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.23.2 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.23.1 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.23.0 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.21.5 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.21.4 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.20.5 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.19.3 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.21.3 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.21.2 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.21.0 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.20.4 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.20.2 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.20.1 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.20.0 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.19.2 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.19.1 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.19.0 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.18.15 lib/bmg/sql/nodes/offset_clause.rb
bmg-0.18.14 lib/bmg/sql/nodes/offset_clause.rb