intosql 0.2.0 → 0.3.0
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/intosql/report.rb +7 -1
- data/lib/intosql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d52403381daa98c60173e4a6b7d42ef9987cecb0929b838ab4db77d7b3219a1b
|
|
4
|
+
data.tar.gz: 3206e648d2e3ca404007244b74e2afeab3f68539151c64a5cefdb0678f670304
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3fb4488732b8d779fcddfcc98a45a7a7ff0e8bac17f774ae3769bd3db314d0ffb49fef00c00bfc5bbd0a5356671e7557be8ac8139d91551f0d9a068116edc75
|
|
7
|
+
data.tar.gz: c5d4febc41321f1370ca4eba349d8acdf95c0013a6321d1824ae4b9d93340367c7ac6553b4f81fe923f5acd04ec3a08f689599c77136ead0b87ba8f5848fdcbf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- `IntoSQL::ObjectKind` includes what PostgreSQL dumps leave out: `MATERIALIZED_VIEW`, `RULE`, `EXTENSION`, `POLICY`, `TYPE` and `OTHER`.
|
|
6
|
+
|
|
7
|
+
## 0.2.1
|
|
8
|
+
|
|
9
|
+
- The README says a MySQL or MariaDB dump converts to any of the six databases, and its report carries the codes of each target.
|
|
10
|
+
|
|
3
11
|
## 0.2.0
|
|
4
12
|
|
|
5
13
|
- Reports of database dumps: `source`, `tables` and `not_converted`.
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ puts conversion.report[:rows][:converted], conversion.output.url
|
|
|
22
22
|
|
|
23
23
|
The file streams to storage as it is; the output URL downloads the script for ten minutes. Read the conversion again (`intosql.conversions.retrieve(id)`) for a fresh one.
|
|
24
24
|
|
|
25
|
-
A MySQL or
|
|
25
|
+
A MySQL, MariaDB or PostgreSQL dump (`.sql`, `.sql.gz`) converts to any of the six databases like any file. `job_report` reads the report with each of its tables:
|
|
26
26
|
|
|
27
27
|
```ruby
|
|
28
28
|
conversion = intosql.convert("shop.sql.gz", spec: IntoSQL.spec(dialect: "postgresql"))
|
data/lib/intosql/report.rb
CHANGED
|
@@ -8,7 +8,13 @@ module IntoSQL
|
|
|
8
8
|
PROCEDURE = "procedure"
|
|
9
9
|
FUNCTION = "function"
|
|
10
10
|
EVENT = "event"
|
|
11
|
-
|
|
11
|
+
MATERIALIZED_VIEW = "materialized_view"
|
|
12
|
+
RULE = "rule"
|
|
13
|
+
EXTENSION = "extension"
|
|
14
|
+
POLICY = "policy"
|
|
15
|
+
TYPE = "type"
|
|
16
|
+
OTHER = "other"
|
|
17
|
+
ALL = [VIEW, TRIGGER, PROCEDURE, FUNCTION, EVENT, MATERIALIZED_VIEW, RULE, EXTENSION, POLICY, TYPE, OTHER].freeze
|
|
12
18
|
end
|
|
13
19
|
|
|
14
20
|
# A correction the engine made, numbered like a proofreader's mark. `code` is a string.
|
data/lib/intosql/version.rb
CHANGED