Class: Backup::Configuration::Database::PostgreSQL

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/configuration/database/postgresql.rb

Class Attribute Summary collapse

Method Summary

Methods inherited from Base

defaults

Methods included from Helpers

#clear_defaults!, #load_defaults!

Class Attribute Details

.additional_optionsObject

Additional “pg_dump” options



31
32
33
# File 'lib/backup/configuration/database/postgresql.rb', line 31

def additional_options
  @additional_options
end

.hostObject

Connectivity options



19
20
21
# File 'lib/backup/configuration/database/postgresql.rb', line 19

def host
  @host
end

.nameObject

Name of the database that needs to get dumped



11
12
13
# File 'lib/backup/configuration/database/postgresql.rb', line 11

def name
  @name
end

.only_tablesObject

Tables to dump, tables that aren’t specified won’t get dumped



27
28
29
# File 'lib/backup/configuration/database/postgresql.rb', line 27

def only_tables
  @only_tables
end

.passwordObject

Credentials for the specified database



15
16
17
# File 'lib/backup/configuration/database/postgresql.rb', line 15

def password
  @password
end

.pg_dump_utilityObject

Path to pg_dump utility (optional)



35
36
37
# File 'lib/backup/configuration/database/postgresql.rb', line 35

def pg_dump_utility
  @pg_dump_utility
end

.portObject

Connectivity options



19
20
21
# File 'lib/backup/configuration/database/postgresql.rb', line 19

def port
  @port
end

.skip_tablesObject

Tables to skip while dumping the database



23
24
25
# File 'lib/backup/configuration/database/postgresql.rb', line 23

def skip_tables
  @skip_tables
end

.socketObject

Connectivity options



19
20
21
# File 'lib/backup/configuration/database/postgresql.rb', line 19

def socket
  @socket
end

.usernameObject

Credentials for the specified database



15
16
17
# File 'lib/backup/configuration/database/postgresql.rb', line 15

def username
  @username
end