multiwoven-integrations 0.5.0 → 0.5.1
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: 8c247bae51bf614083121b6ed6f8b3ab674511bbc931bbc7c224ad857fd7443a
|
4
|
+
data.tar.gz: 3e8f42157f3c79293e9f896059f9b2d6b6c9ebc2f6a9bf55bbb1af0d2769417c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44256ec88e53ed9942c91823772f9165e74e15f94c2013a850af18e165c646a94c41619eecbbc3c38ab4b3e0a5205bae44ded87b178bd27aaacc6a878edef7e
|
7
|
+
data.tar.gz: d06f6937d55c691ccbcb145bafc902b762a9e2782f7446fb3391a3c65d619e4a2c0be1439c1e39efc87f6bb0797115ae9077fc6f30d003d1d518e0ce2ed98536
|
@@ -16,6 +16,8 @@ module Multiwoven
|
|
16
16
|
JSON_SCHEMA_URL = "https://json-schema.org/draft-07/schema#"
|
17
17
|
|
18
18
|
# CONNECTORS
|
19
|
+
INSTALL_HTTPFS_QUERY = ENV["INSTALL_HTTPFS_QUERY"] || "INSTALL HTTPFS; LOAD HTTPFS;"
|
20
|
+
|
19
21
|
KLAVIYO_AUTH_ENDPOINT = "https://a.klaviyo.com/api/lists/"
|
20
22
|
KLAVIYO_AUTH_PAYLOAD = {
|
21
23
|
data: {
|
@@ -74,6 +74,8 @@ module Multiwoven::Integrations::Source
|
|
74
74
|
@session_name = "preview-#{connection_config[:region]}-#{connection_config[:bucket]}" if @session_name.to_s.empty?
|
75
75
|
auth_data = get_auth_data(connection_config)
|
76
76
|
conn = DuckDB::Database.open.connect
|
77
|
+
# Install and/or Load the HTTPFS extension
|
78
|
+
conn.execute(INSTALL_HTTPFS_QUERY)
|
77
79
|
# Set up S3 configuration
|
78
80
|
secret_query = "
|
79
81
|
CREATE SECRET amazons3_source (
|