Sha256: c1a603ed4e1ead3b4f579f1e5f85a52605d272885b4223d3adeeaaef0dd42ac1

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'arel/collectors/plain_string'

module Arel
  module Collectors
    class SQLString < PlainString
      def initialize(*)
        super
        @bind_index = 1
      end

      def add_bind bind
        self << yield(@bind_index)
        @bind_index += 1
        self
      end

      def compile bvs
        value
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
spiral_form-0.1.1 vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/sql_string.rb
spiral_form-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/sql_string.rb
nullifyable-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/collectors/sql_string.rb
arel-9.0.0 lib/arel/collectors/sql_string.rb