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: d612afe45176a37521310c9f694cb2d4b0efe1d42406da82f04bf5fca3187b86
4
- data.tar.gz: 25aae3fae57025cfcc72d14e192b21950c73baa804b4270c7de2c1377bc09686
3
+ metadata.gz: d35e663180807e21555f50de79be57ebaf73a7a2effbc86fda8cb2b59ea538bb
4
+ data.tar.gz: fcd1df984229d196a858e7e81fc94503eabb476bb3569afc0ff66871f6ab0e6e
5
5
  SHA512:
6
- metadata.gz: 28412dbbfae7b89fe57afd4e40fd4bc43bfb2c126a5e3fc67e632d776017f07d2f15d7d70da537344e59aa3021bff30131f905305d00c0784ab156a71185efe9
7
- data.tar.gz: 49c856817e7c650bb36b5a74b3395fcdcd075439c2831aebe720eeda381fcc5e36fd08fbacdb1a4c5bd2fde2ec86e647a14a9a1975a023cc40e76019665e7bb0
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
- available_tables & configuration.only_source_tables
50
- else
51
- available_tables
52
- end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DbBlaster
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
@@ -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
- # attr_accessor :max_message_size_in_kilobytes
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.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 00:00:00.000000000 Z
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