erdb 1.1.1 → 1.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: c78c60da7522f9f14d1fb6a56e3f2531d8b24311aa3179649032415fb5bea5e3
4
- data.tar.gz: 4b7efdc217e9fdaa8d2b6fd7e41dfa5f8e4acae0aefc705d20bd8d61889f1469
3
+ metadata.gz: fd50d69ff105b8b36454c0bf0ea0e6856c542a918e76624cdc6b824b8a259fc5
4
+ data.tar.gz: cc008ed9f2e0a730954725fa344a4f34948552483e41640c010a6bac29a76e41
5
5
  SHA512:
6
- metadata.gz: b4515effe4b61586d0cb94e67d65e51b1ca350aeb74f41c7c98e69993f146a82095256421403272234f808b5b00e90f9c2ed1a413d3f073a8a8e0bcb463dd389
7
- data.tar.gz: f8b12f1fa9c0446fe3a7029e7f3a2ca424ba7034cab3aaaea30e46dcb1750abe0d98856ba79d6baec55cacd9a58783fc56c85a96c7e90f33d165840f8e72e257
6
+ metadata.gz: 2ac6553030f6d2c5d528626c0d366da1e714ddcf28731dd124eb1db2ea7a48595667788549708bf5f8f8f9ed102af49929808c48ae5842badf16de333e8e5522
7
+ data.tar.gz: cccb9ac0141ab61b74e739e67ac51d1994f0c25f3f7641f18fb7d074f5169095caf646703b751b7244448cd909669d12d201b8073901a48bfc56fbfef8150143
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.2
2
+
3
+ - Remove metadata table and schema_migrations table from diagram.
4
+
1
5
  ### 1.1.1
2
6
 
3
7
  - Show `No Tables` error message when there is no tables.
data/README.md CHANGED
@@ -55,13 +55,6 @@ I know there are many tools available for generating ERD,
55
55
  But I wanted to create a tool that is easy to use and can be used with any database.
56
56
  And I don't want to repeat the same steps again and again for generating ERD. -_-
57
57
 
58
- ## Roadmap
59
-
60
- - [x] Support `sqlite3`, `mysql2` and `postgresql` database.
61
- - [x] Generate ERD using Azimutt
62
- - [x] Generate ERD using DBDiagram
63
- - [ ] Support `MongoDB` database.
64
-
65
58
  ## Contributing
66
59
 
67
60
  Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
@@ -40,7 +40,11 @@ module ERDB
40
40
 
41
41
  raise "No tables found in database." if @connection.tables.empty?
42
42
 
43
- @connection.tables.map do |table|
43
+ tables = @connection.tables.reject do |table|
44
+ %w[schema_migrations ar_internal_metadata].include?(table)
45
+ end
46
+
47
+ tables.map do |table|
44
48
  columns = @connection.columns(table).map { |column| { name: column.name, type: column.type || "unknown" } }
45
49
  relations = @connection.foreign_keys(table).map do |fk|
46
50
  {
data/lib/erdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ERDB
2
- VERSION = "1.1.1".freeze
2
+ VERSION = "1.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wai Yan Phyo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord