Class: Ec::Pg::Configuration
- Inherits:
-
Object
- Object
- Ec::Pg::Configuration
- Defined in:
- lib/ec/pg/configuration.rb
Instance Attribute Summary collapse
-
#context_switch_exclude_paths ⇒ Object
Returns the value of attribute context_switch_exclude_paths.
-
#default_schema ⇒ Object
Returns the value of attribute default_schema.
-
#get_context_method ⇒ Object
Returns the value of attribute get_context_method.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#number_of_shards ⇒ Object
Returns the value of attribute number_of_shards.
-
#rls_mode ⇒ Object
Returns the value of attribute rls_mode.
-
#shared_schemas ⇒ Object
Returns the value of attribute shared_schemas.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 |
# File 'lib/ec/pg/configuration.rb', line 14 def initialize self.logger = Logger.new($stdout) self.default_schema = 'public' self.number_of_shards = 1 self.rls_mode = :local self.context_switch_exclude_paths = [] end |
Instance Attribute Details
#context_switch_exclude_paths ⇒ Object
Returns the value of attribute context_switch_exclude_paths.
12 13 14 |
# File 'lib/ec/pg/configuration.rb', line 12 def context_switch_exclude_paths @context_switch_exclude_paths end |
#default_schema ⇒ Object
Returns the value of attribute default_schema.
7 8 9 |
# File 'lib/ec/pg/configuration.rb', line 7 def default_schema @default_schema end |
#get_context_method ⇒ Object
Returns the value of attribute get_context_method.
11 12 13 |
# File 'lib/ec/pg/configuration.rb', line 11 def get_context_method @get_context_method end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/ec/pg/configuration.rb', line 6 def logger @logger end |
#number_of_shards ⇒ Object
Returns the value of attribute number_of_shards.
10 11 12 |
# File 'lib/ec/pg/configuration.rb', line 10 def number_of_shards @number_of_shards end |
#rls_mode ⇒ Object
Returns the value of attribute rls_mode.
9 10 11 |
# File 'lib/ec/pg/configuration.rb', line 9 def rls_mode @rls_mode end |
#shared_schemas ⇒ Object
Returns the value of attribute shared_schemas.
8 9 10 |
# File 'lib/ec/pg/configuration.rb', line 8 def shared_schemas @shared_schemas end |