erdb 1.1.1 → 1.1.2
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/CHANGES.md +4 -0
- data/README.md +0 -7
- data/lib/erdb/adapters/sql.rb +5 -1
- data/lib/erdb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd50d69ff105b8b36454c0bf0ea0e6856c542a918e76624cdc6b824b8a259fc5
|
4
|
+
data.tar.gz: cc008ed9f2e0a730954725fa344a4f34948552483e41640c010a6bac29a76e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac6553030f6d2c5d528626c0d366da1e714ddcf28731dd124eb1db2ea7a48595667788549708bf5f8f8f9ed102af49929808c48ae5842badf16de333e8e5522
|
7
|
+
data.tar.gz: cccb9ac0141ab61b74e739e67ac51d1994f0c25f3f7641f18fb7d074f5169095caf646703b751b7244448cd909669d12d201b8073901a48bfc56fbfef8150143
|
data/CHANGES.md
CHANGED
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.
|
data/lib/erdb/adapters/sql.rb
CHANGED
@@ -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.
|
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
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.
|
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-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|