class ActiveRecord::ConnectionAdapters::SpannerSchemaCache

Public Class Methods

new(conn) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 10
def initialize conn
  @primary_and_parent_keys = {}
  super
end

Public Instance Methods

clear!() click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 37
def clear!
  @primary_and_parent_keys.clear
  super
end
encode_with(coder) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 20
def encode_with coder
  coder["primary_and_parent_keys"] = @primary_and_parent_keys
  super
end
init_with(coder) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 25
def init_with coder
  @primary_and_parent_keys = coder["primary_and_parent_keys"]
  super
end
initialize_dup(other) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 15
def initialize_dup other
  @primary_and_parent_keys = @primary_and_parent_keys.dup
  super
end
primary_and_parent_keys(table_name) click to toggle source
# File lib/active_record/connection_adapters/spanner/schema_cache.rb, line 30
def primary_and_parent_keys table_name
  @primary_and_parent_keys[table_name] ||=
    if data_source_exists? table_name
      connection.primary_and_parent_keys table_name
    end
end