gadget 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -6
- data/bin/gadget +2 -0
- data/lib/gadget.rb +0 -1
- data/lib/gadget/version.rb +1 -1
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a5f64881f5f94dec9288e36c441eceead62e545
|
4
|
+
data.tar.gz: 3c9250f58beb61cafff7ecbe868c2a6936aa7091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc4653a8f3689dde13c0d1b232214ae01bd8b7f39a9eb6484986371e031e2e4b9158c485f190fe9bf2dde4a0f08cf7af30ec47adf5e285289915f1f474e82992
|
7
|
+
data.tar.gz: ff59a168e4e9fa4fd0406bbf74269c8a13f9bf6282dc08e63eb16afa2993cc4b5402792fdd5007db90bbddc4ee24a4343af08352137593f630a265939f4c2182
|
data/README.md
CHANGED
@@ -32,13 +32,10 @@ If `tablename` is given, returns the columns in only that table.
|
|
32
32
|
Returns a list of all foreign keys in the schema reachable through `conn`.
|
33
33
|
If `tablename` is given, returns the foreign keys in only that table.
|
34
34
|
|
35
|
-
`#
|
36
|
-
|
37
|
-
Returns a list of all functions in the schema reachable through `conn`.
|
38
|
-
|
39
|
-
`#triggers(conn)`
|
35
|
+
`#constraints(conn, tablename=nil)`
|
40
36
|
|
41
|
-
Returns a list of all
|
37
|
+
Returns a list of all constraints in the schema reachable through `conn`.
|
38
|
+
If `tablename` is given, returns the constraints in only that table.
|
42
39
|
|
43
40
|
`#dependencies(conn)`
|
44
41
|
|
@@ -50,6 +47,26 @@ Table A is defined as dependent on table B if A contains a foreign key reference
|
|
50
47
|
Returns a list of all tables in the schema reachable through `conn`, ordered such that any given table
|
51
48
|
appears later in the list than all of its dependencies.
|
52
49
|
|
50
|
+
`#dependency_graph(conn)`
|
51
|
+
|
52
|
+
Returns `.dot` script (suitable for feeding into Graphviz) describing the table dependency graph.
|
53
|
+
|
54
|
+
`#functions(conn)`
|
55
|
+
|
56
|
+
Returns a list of all functions in the schema reachable through `conn`.
|
57
|
+
|
58
|
+
`#sequences(conn)`
|
59
|
+
|
60
|
+
Returns a list of all sequences in the schema reachable through `conn`.
|
61
|
+
|
62
|
+
`#triggers(conn)`
|
63
|
+
|
64
|
+
Returns a list of all triggers in the schema reachable through `conn`.
|
65
|
+
|
66
|
+
`#types(conn)`
|
67
|
+
|
68
|
+
Returns a list of all types in the schema reachable through `conn`.
|
69
|
+
|
53
70
|
## Contributing
|
54
71
|
|
55
72
|
1. Fork it
|
data/bin/gadget
CHANGED
data/lib/gadget.rb
CHANGED
data/lib/gadget/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gadget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig S. Cottingham
|
@@ -87,13 +87,10 @@ description: |
|
|
87
87
|
Returns a list of all foreign keys in the schema reachable through `conn`.
|
88
88
|
If `tablename` is given, returns the foreign keys in only that table.
|
89
89
|
|
90
|
-
`#
|
91
|
-
|
92
|
-
Returns a list of all functions in the schema reachable through `conn`.
|
93
|
-
|
94
|
-
`#triggers(conn)`
|
90
|
+
`#constraints(conn, tablename=nil)`
|
95
91
|
|
96
|
-
Returns a list of all
|
92
|
+
Returns a list of all constraints in the schema reachable through `conn`.
|
93
|
+
If `tablename` is given, returns the constraints in only that table.
|
97
94
|
|
98
95
|
`#dependencies(conn)`
|
99
96
|
|
@@ -105,6 +102,26 @@ description: |
|
|
105
102
|
Returns a list of all tables in the schema reachable through `conn`, ordered such that any given table
|
106
103
|
appears later in the list than all of its dependencies.
|
107
104
|
|
105
|
+
`#dependency_graph(conn)`
|
106
|
+
|
107
|
+
Returns `.dot` script (suitable for feeding into Graphviz) describing the table dependency graph.
|
108
|
+
|
109
|
+
`#functions(conn)`
|
110
|
+
|
111
|
+
Returns a list of all functions in the schema reachable through `conn`.
|
112
|
+
|
113
|
+
`#sequences(conn)`
|
114
|
+
|
115
|
+
Returns a list of all sequences in the schema reachable through `conn`.
|
116
|
+
|
117
|
+
`#triggers(conn)`
|
118
|
+
|
119
|
+
Returns a list of all triggers in the schema reachable through `conn`.
|
120
|
+
|
121
|
+
`#types(conn)`
|
122
|
+
|
123
|
+
Returns a list of all types in the schema reachable through `conn`.
|
124
|
+
|
108
125
|
## Contributing
|
109
126
|
|
110
127
|
1. Fork it
|