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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39f7e43d87726d850170e72cdc0205169914df16a3d5971785ec40ce2df1ebe8
4
- data.tar.gz: 5bdc2db66531cb4b21156ef964b32888a9e287871f804802d348b44d405bc54d
3
+ metadata.gz: d52403381daa98c60173e4a6b7d42ef9987cecb0929b838ab4db77d7b3219a1b
4
+ data.tar.gz: 3206e648d2e3ca404007244b74e2afeab3f68539151c64a5cefdb0678f670304
5
5
  SHA512:
6
- metadata.gz: c2b55c7d86020166b41256126a7188aeb7a959141ff6b918b8affa47053dc8b04f6f612a0cee3d1726ad2a900eadeba63cff6f7ac1ca27de91526291af0087f7
7
- data.tar.gz: 380c236bbac26c0ef271b4d035124cd06985e1323e316c8d9aca93b2f2968ef40114f3573971c71e9ad690448569138f727bf3eebb4371cc42809d963dbc45bf
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 MariaDB dump (`.sql`, `.sql.gz`) converts to PostgreSQL like any file. `job_report` reads the report with each of its tables:
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"))
@@ -8,7 +8,13 @@ module IntoSQL
8
8
  PROCEDURE = "procedure"
9
9
  FUNCTION = "function"
10
10
  EVENT = "event"
11
- ALL = [VIEW, TRIGGER, PROCEDURE, FUNCTION, EVENT].freeze
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IntoSQL
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intosql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - IntoSQL