multiwoven-integrations 0.1.74 → 0.1.75

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: 7c7b0b9a8d6a1458eef924831e842a8e78fdaafc9b8f2977da6b5f23f6a465a2
4
- data.tar.gz: 2db159c6afe7267c5d41ef179220ddc40dc84832aa8c76d949c191924d2dd44b
3
+ metadata.gz: ae5784806bc5de9222274f6a03be3883720e308f1e0922a76a588f5e582112fb
4
+ data.tar.gz: 065a346c9beebf746e1e8d6d4a7b49d76c01185005269df442e58719933ca9f4
5
5
  SHA512:
6
- metadata.gz: 54fe61b48f851d3b211e1b26db1280e76b76d5b6f25df33e57d841626f06490431f94279f207d76369f036bd8602d947bed0a5e2e44aa6cc07743acee87d2c7a
7
- data.tar.gz: 89b9dc4e5670c9606cce6624c73552e8168443ab2ace1778202759eba6f79c522da3ce02eea469150fd05b2b3b7bdf8d873956aa049adddca1ac8bf487e41a11
6
+ metadata.gz: 00fa3449d0395073e4b5277d105b5331c19e4290e9a8972baa80bc80aeee6ef63effcf94bc0484ced2ea79bb33900467bd2a68ee85b8a8d2796af317a9ef9340
7
+ data.tar.gz: 263e855471164f79df4acafb32116b752cd3945d2439fc29eea4540ee2c6360d80d472caf2996475a4b3398a68d0361d907e2f5a8844ca4f2cd123da02706155
@@ -45,13 +45,14 @@ module Multiwoven::Integrations::Destination
45
45
  def write(sync_config, records, action = "destination_insert")
46
46
  connection_config = sync_config.destination.connection_specification.with_indifferent_access
47
47
  table_name = sync_config.stream.name
48
+ primary_key = sync_config.model.primary_key
48
49
  db = create_connection(connection_config)
49
50
 
50
51
  write_success = 0
51
52
  write_failure = 0
52
53
 
53
54
  records.each do |record|
54
- query = Multiwoven::Integrations::Core::QueryBuilder.perform(action, table_name, record)
55
+ query = Multiwoven::Integrations::Core::QueryBuilder.perform(action, table_name, record, primary_key)
55
56
  logger.debug("POSTGRESQL:WRITE:QUERY query = #{query} sync_id = #{sync_config.sync_id} sync_run_id = #{sync_config.sync_run_id}")
56
57
  begin
57
58
  db.exec(query)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.74"
5
+ VERSION = "0.1.75"
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.1.74
4
+ version: 0.1.75
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-06-04 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport