pg_graph 0.1.1 → 0.1.2

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: 28f5cb17edb384621612f29426084e14f15db45572e5ba80482776b4ca04b3ce
4
- data.tar.gz: e2b1cf4db09e79d2a2d726dbd4ecdaa22fc82ddc4fbd94e9b10cb15220712096
3
+ metadata.gz: 108d2c8460c15baf7814fc56fbf5f3dc2cd3ebf8e0991cda6590d73aef31d103
4
+ data.tar.gz: '0931cbd88556516ce7a210312a23227efae4c6003ec4e2c83b265f08762fa6b9'
5
5
  SHA512:
6
- metadata.gz: 27ab8c10fbf8717e6086983cab0ce5cc32908c41c4d66402031a5bbac12b9ea623f095a4d9a9b6ac02018b34eac6dc2718be50c7c6449698008ea2b348baa4be
7
- data.tar.gz: 8eca990262bb1e8fde6e5dcab49a40a2677ce368528d9485e4742c924cab1225994ac68d9e8f507f18e671ca413998cb73819b2a671cc2476dd850444754979e
6
+ metadata.gz: '00919e561ec71e0ae20a7d3e425b46824b1b67a5ae4812bd6e10162f6e53ce054cb94a05c5e8f062fad7a08d97aa9e3ccd76974679cad6c45abef56857372c69'
7
+ data.tar.gz: 97747263d0d3583b223c7bb2727b8403642f41d8e0c9ebdcf3f7aa0cbc013ad0528e91f0a7c8852636a083581141ca6179f5a75e6280b1266c7365dbc85b4d40
data/Gemfile CHANGED
@@ -3,10 +3,3 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in pg_graph.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
8
-
9
- gem 'shellopts', :github => 'clrgit/shellopts', branch: "master"
10
- gem 'pg_conn', :github => 'clrgit/pg_conn', branch: "master"
11
- gem 'pg_meta', :github => 'clrgit/pg_meta', branch: "master"
12
-
data/exe/pg_graph CHANGED
@@ -12,14 +12,17 @@ SPEC = %(
12
12
  pg_graph is a utility that uses the PgGraph module to load, dump, or clean a
13
13
  database. It uses a variety of formats that can be executed by psql(1)
14
14
  ('psql') or by the Postgres library exec() call ('exec', 'sql'). It can also
15
- read and write Yaml data ('yaml'). The dump command can also write the meta
16
- data and type of the database in yaml format which is useful for debugging.
15
+ read and write Yaml data ('yaml') that is useful for exchanging data with
16
+ other programs
17
17
 
18
- The default is to dump the type in yaml format, this is also the typical use
19
- of pg_graph because dump of data is better done using 'pg_dump -a <database>'
20
- except in the special case when the data contains circular foreign-key
21
- constraints and the load command is run by an ordinary user. The load command
22
- is useful when you want to read Yaml data from other programs into the database
18
+ Note that when you're loading or dumping data in one of the SQL formats,
19
+ you're almost always better off using postgres' own tools
20
+ (pg_dump/pg_restore/pg_sql), except in the special case when the data
21
+ contains circular foreign-key constraints and you don't have superuser
22
+ privileges
23
+
24
+ The dump command can also write the type of the database in yaml format. This
25
+ is the default
23
26
 
24
27
  -m,meta=EFILE @ Load meta data from YAML file
25
28
  Make pg_graph loads its meta data in YAML format from FILE instead of
data/lib/data/data.rb CHANGED
@@ -160,7 +160,7 @@ module PgGraph::Data
160
160
  def write(connection, ids: {}, delete: :all)
161
161
  constrain connection, PgConn
162
162
  constrain ids, String => Integer
163
- connection.exec(to_exec_sql(ids: ids, delete: :all))
163
+ connection.exec(to_exec_sql(ids: ids, delete: delete))
164
164
  self
165
165
  end
166
166
 
@@ -1,3 +1,3 @@
1
1
  module PgGraph
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/pg_graph.gemspec CHANGED
@@ -35,6 +35,10 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency "pg_conn"
36
36
  spec.add_dependency "pg_meta"
37
37
 
38
+ spec.add_development_dependency "rake"
39
+ spec.add_development_dependency "rspec"
40
+ spec.add_development_dependency "simplecov"
41
+
38
42
  # Also un-comment in spec/spec_helper to use simplecov
39
43
  # spec.add_development_dependency "simplecov"
40
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-06 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boolean
@@ -136,6 +136,48 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
139
181
  description: dwpg_graph gem
140
182
  email:
141
183
  - claus.l.rasmussen@gmail.com