fixture_fox 0.2.8 → 0.2.10

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: d169cf91f6468fcd829b7edd7af5309c4a15ff17e7087d2a75609fa7ea97b606
4
- data.tar.gz: 2d99e4c1329f4cde08ac5f808c593f5cc92d086db7f8fb8bb909932aa6a96f67
3
+ metadata.gz: fed3fb1edee1d875c5392c5426905834d7f217b1f90e379fb00a2edad501ddc2
4
+ data.tar.gz: d2a2e38670b7cea7dc3a9de84f96eded72aa3203909da9233279b76a8ac4186d
5
5
  SHA512:
6
- metadata.gz: 0b4bee30d8d492878f68a511730e7dda92b9db40c9a4c3be68f4e5db0a14464a9879cb7d7c3d570dab3c849352decb45df6e8f6441ae5dea8eb238ee1c7450ac
7
- data.tar.gz: b33f654ff11fd0935c49f83492829d010dd035dfaf2034229c16272d5610a2127fd097c0fe2cd60cf9234755ac1edb6b2992e455a3fa34b9fb8bdd6c2869f15f
6
+ metadata.gz: d6f6b63d52a94a575e49965a10191340ce9782d65cc1952e85438a62648a4ff9d2270a8d9be921dfdc6e620e0ec101a90c96a08acafd543f4cdc3807bec41ffc
7
+ data.tar.gz: 39a4098d6b109b347afa181cf8e7036fd7f449611e4fc01afce1eebc2551e607ff0fbab8f06163bb935f517e769c4d1f5a70cb9ce1b2a3b31f2ba253601f00de
data/exe/fox CHANGED
@@ -22,7 +22,7 @@ SPEC = %(
22
22
  Reflections YML file
23
23
 
24
24
  -s,state=EFILE?
25
- State file. fox(1) reads ids and anchors from this file. Default is
25
+ State file. fox reads ids and anchors from this file. Default is
26
26
  fox.yml
27
27
 
28
28
  -w,write=FILE? @ Write new state file
@@ -44,6 +44,11 @@ SPEC = %(
44
44
  -x,exec
45
45
  Execute the generated SQL instead of printing it on standard output
46
46
 
47
+ +e,exclude=SCHEMA,
48
+ Exclude the given schemas. The schemas are passed on to PgGraph to
49
+ exclude schemas that doesn't comply with PgGraph's naming conventions,
50
+ typically FDW schemas. This option can be repeated
51
+
47
52
  -t,time
48
53
  Emit timings for sub-processes
49
54
 
@@ -67,7 +72,7 @@ begin
67
72
 
68
73
  opts.format ||= 'psql'
69
74
 
70
- if opts.state?
75
+ if opts.state?
71
76
  opts.state = File.expand_path(opts.state || DEFAULT_STATE_FILE)
72
77
  FileUtils.touch(opts.state) if !File.exist?(opts.state)
73
78
  end
@@ -103,8 +108,10 @@ begin
103
108
  reflector = tg.time("reflections") { PgGraph::Reflector.new }
104
109
  end
105
110
 
106
- # Dump types
107
- type = tg.time("type") { PgGraph::Type.new(meta, reflector) }
111
+ # Load types
112
+ type = tg.time("type") { PgGraph::Type.new(meta, reflector, ignore: opts.exclude || []) }
113
+
114
+ # Dump types?
108
115
  if opts.dump == "type"
109
116
  type.dump
110
117
  exit
@@ -152,7 +159,7 @@ begin
152
159
  end
153
160
 
154
161
  if opts.exec?
155
- tg.time("write") { fox.data.write(conn, ids: ids) }
162
+ tg.time("write") { fox.data.write(conn, ids: ids, delete: opts.delete&.to_sym || :all) }
156
163
  else
157
164
  tg.time("emit") {
158
165
  # puts "Format: #{opts.format.inspect}"
@@ -165,12 +165,3 @@ module FixtureFox
165
165
  end
166
166
  end
167
167
 
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
@@ -1,3 +1,3 @@
1
1
  module FixtureFox
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixture_fox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg