db_blaster 0.1.1 → 0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d35e663180807e21555f50de79be57ebaf73a7a2effbc86fda8cb2b59ea538bb
|
|
4
|
+
data.tar.gz: fcd1df984229d196a858e7e81fc94503eabb476bb3569afc0ff66871f6ab0e6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 270045284ee3ff5032bbb5b34de7bd3ad6add7252b6c7af05dfa6e1525f6b156c2d11138a62cbd1a3630606bb52e6df25b3e050ce24262ab99d4679b2ba84dd3
|
|
7
|
+
data.tar.gz: af1f643cae181fdbfba7f6a5ec11acef540f33d5bda76ce9753e6e0065dd40ca8640af80fcc9bd530ada2645ef8b4131f4afc5cb00f5c0f439836ab700425de5
|
|
@@ -22,6 +22,11 @@ module DbBlaster
|
|
|
22
22
|
# example: config.only_source_tables = ['posts', 'tags', 'comments']
|
|
23
23
|
attr_accessor :only_source_tables
|
|
24
24
|
|
|
25
|
+
# Optional
|
|
26
|
+
# If set, ignore source tables specified.
|
|
27
|
+
# example: config.ignore_source_tables = ['active_storage_blobs']
|
|
28
|
+
attr_accessor :ignore_source_tables
|
|
29
|
+
|
|
25
30
|
# Optional
|
|
26
31
|
# Customize batch_size and/or ignored_columns
|
|
27
32
|
# example:
|
|
@@ -45,11 +45,12 @@ module DbBlaster
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
def table_names_for_configuration
|
|
48
|
-
if configuration.only_source_tables&.length&.positive?
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
table_names = if configuration.only_source_tables&.length&.positive?
|
|
49
|
+
available_tables & configuration.only_source_tables
|
|
50
|
+
else
|
|
51
|
+
available_tables
|
|
52
|
+
end
|
|
53
|
+
table_names - (configuration.ignore_source_tables || [])
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
56
|
end
|
data/lib/db_blaster/version.rb
CHANGED
|
@@ -14,7 +14,7 @@ DbBlaster.configure do |config|
|
|
|
14
14
|
# Optional
|
|
15
15
|
# db_blaster will publish no messages larger than this value
|
|
16
16
|
# Default value is 256
|
|
17
|
-
#
|
|
17
|
+
# config.max_message_size_in_kilobytes = 256
|
|
18
18
|
|
|
19
19
|
# Optional
|
|
20
20
|
# Extra [SNS message_attributes](https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html)
|
|
@@ -29,6 +29,10 @@ DbBlaster.configure do |config|
|
|
|
29
29
|
# If set, only publish tables specified.
|
|
30
30
|
# config.only_source_tables = ['posts', 'tags', 'comments']
|
|
31
31
|
|
|
32
|
+
# Optional
|
|
33
|
+
# If set, ignore source tables specified.
|
|
34
|
+
# config.ignore_source_tables = ['active_storage_blobs']
|
|
35
|
+
|
|
32
36
|
# Optional
|
|
33
37
|
# Customize batch_size and/or ignored_columns
|
|
34
38
|
# example:
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: db_blaster
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Perry Hertler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08-
|
|
11
|
+
date: 2021-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-sns
|