Module: Backhoe

Defined in:
lib/backhoe.rb,
lib/backhoe/dump.rb,
lib/backhoe/load.rb,
lib/backhoe/backup.rb,
lib/backhoe/version.rb,
lib/backhoe/database.rb

Defined Under Namespace

Classes: Backup, Database, Dump, Load

Constant Summary collapse

VERSION =
"0.6.1"

Class Method Summary collapse

Class Method Details

.backup(s3_path, access_key: nil, secret_key: nil) ⇒ Object



18
19
20
# File 'lib/backhoe.rb', line 18

def backup s3_path, access_key: nil, secret_key: nil
  Backup.new(s3_path, access_key, secret_key).call
end

.dump(file_path, skip_tables: [], skip_columns: {}) ⇒ Object



10
11
12
# File 'lib/backhoe.rb', line 10

def dump file_path, skip_tables: [], skip_columns: {}
  Dump.new(Database.new, file_path, skip_tables, skip_columns).call
end

.load(file_path, drop_and_create: false) ⇒ Object



14
15
16
# File 'lib/backhoe.rb', line 14

def load file_path, drop_and_create: false
  Load.new(Database.new, file_path, drop_and_create).call
end