multiwoven-integrations 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c1f29e452cbeee226a06909b5bf589061063a051bc3c73ac73ec1d2748b159
|
4
|
+
data.tar.gz: d4b47377d27c931947cf15589723ba397d4a2e500c600ada8fad308f3a82e0d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2024-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|