Class: AnyQuery::Adapters::Sql::Config Private

Inherits:
Base::Config show all
Defined in:
lib/any_query/adapters/sql.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from Base::Config

#initialize, #primary_key, #url

Constructor Details

This class inherits a constructor from AnyQuery::Adapters::Base::Config

Instance Method Details

#table(name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
# File 'lib/any_query/adapters/sql.rb', line 7

def table(name)
  @table = name
end

#to_hObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
16
17
# File 'lib/any_query/adapters/sql.rb', line 11

def to_h
  {
    url: @url,
    primary_key: @primary_key,
    table: @table
  }
end