intosql 0.2.1 → 0.3.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/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: 5f02bad4bf61e9009764ccd9d24accfea76d37bfefd5c9bb5d6f7f7ad7984e9d
|
|
4
|
+
data.tar.gz: 1d5dab23a612c181b2cbd3340debb737f0a246ffc38f995d11c7c84469b2c8f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '089ea29a168349659b874d91c2140879f48a24e63882fc4a5347201a73303bb82a6e881f993f32f3d4953f0dbd7680b81d4740c164b6be3f4bebc3778546e12d'
|
|
7
|
+
data.tar.gz: dd156c0d309e377cd5872c210e79e944708d6c058646f3f3643c17a0ea3a253499ed311bbce8f34b186c524383226a7d2e0a1879da9cbae19242bd0f8dfbab21
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
- The README says a SQL Server script converts to any of the six databases, and its report carries the codes of each target.
|
|
6
|
+
|
|
7
|
+
## 0.3.0
|
|
8
|
+
|
|
9
|
+
- `IntoSQL::ObjectKind` includes what PostgreSQL dumps leave out: `MATERIALIZED_VIEW`, `RULE`, `EXTENSION`, `POLICY`, `TYPE` and `OTHER`.
|
|
10
|
+
|
|
3
11
|
## 0.2.1
|
|
4
12
|
|
|
5
13
|
- The README says a MySQL or MariaDB dump converts to any of the six databases, and its report carries the codes of each target.
|
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, PostgreSQL or SQL Server 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