Class: PgParty::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_party/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
17
18
19
20
# File 'lib/pg_party/config.rb', line 13

def initialize
  @caching = true
  @caching_ttl = -1
  @schema_exclude_partitions = true
  @create_template_tables = true
  @create_with_primary_key = false
  @include_subpartitions_in_partition_list = false
end

Instance Attribute Details

#cachingObject

Returns the value of attribute caching.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def caching
  @caching
end

#caching_ttlObject

Returns the value of attribute caching_ttl.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def caching_ttl
  @caching_ttl
end

#create_template_tablesObject

Returns the value of attribute create_template_tables.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def create_template_tables
  @create_template_tables
end

#create_with_primary_keyObject

Returns the value of attribute create_with_primary_key.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def create_with_primary_key
  @create_with_primary_key
end

#include_subpartitions_in_partition_listObject

Returns the value of attribute include_subpartitions_in_partition_list.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def include_subpartitions_in_partition_list
  @include_subpartitions_in_partition_list
end

#schema_exclude_partitionsObject

Returns the value of attribute schema_exclude_partitions.



5
6
7
# File 'lib/pg_party/config.rb', line 5

def schema_exclude_partitions
  @schema_exclude_partitions
end