class ActiveRecord::StatementCache::Query

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/active_record/statement_cache.rbs

class ActiveRecord::StatementCache::Query
  def sql_for: (Array[ActiveRecord::Relation::QueryAttribute] binds, ActiveRecord::ConnectionAdapters::PostgreSQLAdapter connection) -> String
end

:nodoc:

def initialize(sql)

:nodoc:
def initialize(sql)
  @sql = sql
end

def sql_for(binds, connection)

Experimental RBS support (using type sampling data from the type_fusion project).

def sql_for: (ActiveModel::Attribute::WithCastValue binds, ActiveRecord::ConnectionAdapters::PostgreSQLAdapter connection) -> String

This signature was generated using 1 sample from 1 application.

def sql_for(binds, connection)
  @sql
end