multiwoven-integrations 0.7.1 → 0.7.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: e8eae28bf7587692f1d8e9fd6dcb4bdc3ced95ae23fe3edc8e88e13851fa4cb4
4
- data.tar.gz: 4e0ba7c79a2f18ebf64b6821908086f275d55701d63d103d595efd7ea9ba2b0b
3
+ metadata.gz: 77c1f29e452cbeee226a06909b5bf589061063a051bc3c73ac73ec1d2748b159
4
+ data.tar.gz: d4b47377d27c931947cf15589723ba397d4a2e500c600ada8fad308f3a82e0d6
5
5
  SHA512:
6
- metadata.gz: 730507c7e931280de1628ade5269fd87ca7c5cc60a7c49127fcbb1438048cc4f6f620f3601af293439a68063596134909bb1fb4a34e37171c2888c7d5af39f2d
7
- data.tar.gz: 4aa67fd119b1dbd8d8bc491ac9afd97ed826b74eefa4600e7bae550ddae4caedf7b3e194a1a101b31117fc8534dc7ae7ec800a6212160653fd1010c855e42769
6
+ metadata.gz: 6d81300b2ed2fa1dc066b29a3af4096ef5a85045e18f84d708bec9f7f12182fbd2ee013c7bb797de6a2dfa23494a7e07fbb802498e6c2426e6ee714bc8465508
7
+ data.tar.gz: 2f65fd9330887945df04375914b8dddfe1170c40c16fb5575cba642ffae943d36223c42c2e85f50f89796e5f2e9cc82df5878bb1923936f54c544ee725f58535
data/README.md CHANGED
@@ -59,6 +59,10 @@ Before you begin the installation, ensure you have the following dependencies in
59
59
  - Command: `brew install openssl@3`
60
60
  - Description: Essential for secure communication.
61
61
 
62
+ - **Oracle Instant Client**
63
+ - Download Link: https://www.oracle.com/database/technologies/instant-client/downloads.html
64
+ - Description: Required for database interactions.
65
+
62
66
 
63
67
  ### Installation
64
68
 
@@ -41,6 +41,7 @@ module Multiwoven::Integrations::Destination
41
41
  primary_key = sync_config.model.primary_key
42
42
  db = create_connection(connection_config)
43
43
 
44
+ log_message_array = []
44
45
  write_success = 0
45
46
  write_failure = 0
46
47
 
@@ -50,6 +51,7 @@ module Multiwoven::Integrations::Destination
50
51
  begin
51
52
  db.run(query)
52
53
  write_success += 1
54
+ log_message_array << log_request_response("info", query, "Successful")
53
55
  rescue StandardError => e
54
56
  handle_exception(e, {
55
57
  context: "MARIA:DB:RECORD:WRITE:EXCEPTION",
@@ -58,9 +60,10 @@ module Multiwoven::Integrations::Destination
58
60
  sync_run_id: sync_config.sync_run_id
59
61
  })
60
62
  write_failure += 1
63
+ log_message_array << log_request_response("error", query, e.message)
61
64
  end
62
65
  end
63
- tracking_message(write_success, write_failure)
66
+ tracking_message(write_success, write_failure, log_message_array)
64
67
  rescue StandardError => e
65
68
  handle_exception(e, {
66
69
  context: "MARIA:DB:RECORD:WRITE:EXCEPTION",
@@ -106,12 +109,6 @@ module Multiwoven::Integrations::Destination
106
109
  { tablename: entries.first[:tablename], columns: entries.flat_map { |entry| entry[:columns] } }
107
110
  end
108
111
  end
109
-
110
- def tracking_message(success, failure)
111
- Multiwoven::Integrations::Protocol::TrackingMessage.new(
112
- success: success, failed: failure
113
- ).to_multiwoven_message
114
- end
115
112
  end
116
113
  end
117
114
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.7.1"
5
+ VERSION = "0.7.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport