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: 87fd0b8fc37e185451163ffce33b07b4e9dae7ac8a4c9b0e8b9b345abe31bd92
4
- data.tar.gz: aa7ca433255e681a839e3d66f94b3cc15f59316aa5358f1d342c1068bc1c6ea4
3
+ metadata.gz: 2264f776064ed8277f18dc9bf8b1709917ac80761a6e72ed9101445ef6d91b79
4
+ data.tar.gz: da0725910f7a61738ae7af19f0d31c7fe5a8fcd612c740231ca9412ba672c105
5
5
  SHA512:
6
- metadata.gz: 79a4baf2e58a6d56b7046badcc10a8b6d2456f2e42c459c8356668942fa104f256d18f3a80996a54bc8f706624be4b6e21002871e83632119165903bb55fca5c
7
- data.tar.gz: f73ad27f21f5a99fb84782504b891e20f3f659cbea4c4afc793709f37c855c25f46ba20158524811623e7980ecac5e608836ae92858270381115c0fec6e362d5
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
- before_load :clear
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
@@ -21,10 +21,6 @@ module Avm
21
21
  ::Avm::EacPostgresqlBase0::Instance::Assert.new(self).perform
22
22
  end
23
23
 
24
- def data_unit
25
- ::Avm::EacPostgresqlBase0::Instance::DataUnit.new(self)
26
- end
27
-
28
24
  def host
29
25
  connection_params[:host] || DEFAULT_HOSTNAME
30
26
  end
@@ -15,6 +15,11 @@ module Avm
15
15
  name: database_name
16
16
  )
17
17
  end
18
+
19
+ # @return [Avm::EacPostgresqlBase0::Instance::DataUnit]
20
+ def pg_data_unit
21
+ ::Avm::EacPostgresqlBase0::Instance::DataUnit.new(self)
22
+ end
18
23
  end
19
24
  end
20
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacPostgresqlBase0
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
  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.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-10 00:00:00.000000000 Z
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.69'
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.69'
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.113'
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.113'
40
+ version: '0.115'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: eac_ruby_gem_support
43
43
  requirement: !ruby/object:Gem::Requirement