Methods

Class Public methods

new()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 518
          def initialize
            @parts = []
            @binds = []
          end
🔎 See on GitHub

Instance Public methods

<<(str)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 523
          def <<(str)
            @parts << str
            self
          end
🔎 See on GitHub

add_bind(obj)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 528
          def add_bind(obj)
            @binds << obj
            @parts << Arel::Nodes::BindParam.new(1)
            self
          end
🔎 See on GitHub

value()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 534
          def value
            [@parts, @binds]
          end
🔎 See on GitHub