Class: Ec::Pg::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ec/pg/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathsObject

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_schemaObject

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_methodObject

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

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/ec/pg/configuration.rb', line 6

def logger
  @logger
end

#number_of_shardsObject

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_modeObject

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_schemasObject

Returns the value of attribute shared_schemas.



8
9
10
# File 'lib/ec/pg/configuration.rb', line 8

def shared_schemas
  @shared_schemas
end