avm-eac_postgresql_base0 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2264f776064ed8277f18dc9bf8b1709917ac80761a6e72ed9101445ef6d91b79
|
4
|
+
data.tar.gz: da0725910f7a61738ae7af19f0d31c7fe5a8fcd612c740231ca9412ba672c105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d9229e8f4cb7df168f1f963d42d109dacdc88da81d9f5ecd0547493573bbf0d4e77aea98b5259907db30cf81d0dfe93847a67dd398c877111fbbcc4a0ebb509
|
7
|
+
data.tar.gz: da16356cfbbcd62084a58d92f34ac1036633bc44deb0fe0d9fd277900f32f13a528204ed02ec1ce1ad32a6517859f8319d758e093c032b6407564f3d662ca3be
|
@@ -12,10 +12,7 @@ module Avm
|
|
12
12
|
TABLES_SQL = "select schemaname || '#{TABLE_PARTS_SEPARATOR}' || tablename from " \
|
13
13
|
"pg_tables where schemaname = '#{SCHEMA_VAR}'"
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
def clear
|
18
|
-
info 'Clearing database (Dropping all tables)...'
|
15
|
+
def do_clear
|
19
16
|
ts = tables
|
20
17
|
if ts.empty?
|
21
18
|
info 'Database has no tables'
|
@@ -26,11 +23,11 @@ module Avm
|
|
26
23
|
end
|
27
24
|
|
28
25
|
def dump_command
|
29
|
-
instance.dump_gzip_command
|
26
|
+
instance.pg.dump_gzip_command
|
30
27
|
end
|
31
28
|
|
32
29
|
def load_command
|
33
|
-
instance.load_gzip_command
|
30
|
+
instance.pg.load_gzip_command
|
34
31
|
end
|
35
32
|
|
36
33
|
private
|
@@ -49,7 +46,7 @@ module Avm
|
|
49
46
|
end
|
50
47
|
|
51
48
|
def run_sql(sql)
|
52
|
-
instance.psql_command_command(sql).execute!
|
49
|
+
instance.pg.psql_command_command(sql).execute!
|
53
50
|
end
|
54
51
|
|
55
52
|
# @return [Array<String>]
|
@@ -60,7 +57,7 @@ module Avm
|
|
60
57
|
|
61
58
|
# @return [String]
|
62
59
|
def tables_sql
|
63
|
-
TABLES_SQL.gsub(SCHEMA_VAR, instance.schema)
|
60
|
+
TABLES_SQL.gsub(SCHEMA_VAR, instance.pg.schema)
|
64
61
|
end
|
65
62
|
end
|
66
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_postgresql_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.71'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.71'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eac_ruby_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.115'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.115'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: eac_ruby_gem_support
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|