data_keeper 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data_keeper/loader.rb +7 -0
- data/lib/data_keeper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc4571443a29e3b6e5ef297eaf58bcc904245f2fa03e9afdbcb8004156163a3
|
4
|
+
data.tar.gz: 8eeb45101080f53b64365b28a3d5b03201ff22bf57399682dfeeac439df59496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6736489028cef881ae0c24617d87f54ac67d727121350e6a6c6bccbd1a13cc5c0eff21809b4a7705e34740a72270bebd7a65a6042dd253d98ee5cc4bc4455c8b
|
7
|
+
data.tar.gz: 30b58fe74b9b2c4beda31b7fb345bf2be6907c3f60e448cf7634e1458cf7ed6cff48662798b91dae4bd443b68ae680b01813595b0a95632a4a51f9e17e9f4b3b
|
data/lib/data_keeper/loader.rb
CHANGED
@@ -52,6 +52,13 @@ module DataKeeper
|
|
52
52
|
|
53
53
|
def load_partial_database!
|
54
54
|
inflate(@file.path) do |schema_path, tables_path, sql_files|
|
55
|
+
cmd = Terrapin::CommandLine.new(
|
56
|
+
'psql',
|
57
|
+
"#{connection_args} -d :database -c :command",
|
58
|
+
environment: psql_env
|
59
|
+
)
|
60
|
+
cmd.run(database: database, host: host, port: port, command: "drop schema if exists public")
|
61
|
+
|
55
62
|
pg_restore = Terrapin::CommandLine.new(
|
56
63
|
'pg_restore',
|
57
64
|
"#{connection_args} -j 4 --no-owner --dbname :database #{schema_path} 2>/dev/null",
|
data/lib/data_keeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_keeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Campos
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|