Sha256: e1a5e51dd463db21bf5f33440be2e604b026947ae5703a32873b73ed7eb34e27

Contents?: true

Size: 310 Bytes

Versions: 5

Compression:

Stored size: 310 Bytes

Contents

module Alf
  module Sql
    module OffsetClause
      include Expr

      OFFSET = "OFFSET"

      def offset
        last.to_i
      end

      def to_sql(buffer = "")
        buffer << OFFSET << SPACE << offset.to_s
        buffer
      end

    end # module OffsetClause
  end # module Sql
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-sql-0.16.3 lib/alf/sql/nodes/offset_clause.rb
alf-sql-0.16.2 lib/alf/sql/nodes/offset_clause.rb
alf-sql-0.16.1 lib/alf/sql/nodes/offset_clause.rb
alf-sql-0.16.0 lib/alf/sql/nodes/offset_clause.rb
alf-sql-0.15.0 lib/alf/sql/nodes/offset_clause.rb