Skip to content

Commit

Permalink
doc: adjustements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrebiai committed Jan 24, 2025
1 parent aabeeb4 commit ba90e9d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo-template.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ PRIVATE_KEY_PASSPHRASE=my-passphrase

SNOWFLAKE_DATABASE=DEV_KARATE_DATA_DB
SNOWFLAKE_SCHEMA=BURGER_OUTPUT
SNOWFLAKE_SCHEMA_SOURCE=BURGER_INPUT
SNOWFLAKE_ROLE=MY_ROLE
SNOWFLAKE_WAREHOUSE=MY_WH
SNOWFLAKE_SCHEMA_SOURCE=BURGER_INPUT

DBT_PROJECT_DIR=burger_factory
DBT_PROFILES_DIR=burger_factory/.dbt
41 changes: 38 additions & 3 deletions presentation_en.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,55 @@ function fn() {
}
----

See https://karatelabs.github.io/karate/#environment-specific-config[karate documentation^] for file location

[.columns]
=== `snowflake` extension config
[%step]
.`cli-config`
[.column]
--
[source, bash]
.`cli-config`
----
SNOWFLAKE_ACCOUNT=xxx.west-europe.azure
SNOWFLAKE_USER=MY_USER
SNOWFLAKE_PRIVATE_KEY_PATH=/my-path/private-key.pem
PRIVATE_KEY_PASSPHRASE=my-passphrase
----

[source, javascript]
----
include::demo-template.env[lines=1..4]
{
"account": "xxx.west-europe.azure",
"user": "MY_USER",
"privateKeyPath": "/my-path/private-key.pem",
"privateKeyPassphrase": "my-passphrase"
}
----
--

[%step]
[.column]
--
.`snowflake-config`
[source, bash]
----
include::demo-template.env[lines=6..10]
SNOWFLAKE_DATABASE=MY_DB
SNOWFLAKE_SCHEMA=MY_SCHEMA
SNOWFLAKE_ROLE=MY_ROLE
SNOWFLAKE_WAREHOUSE=MY_WH
----

[source, javascript]
----
{
"database": "MY_DB",
"schema": "MY_SCHEMA"
"role": "MY_ROLE",
"warehouse": "MY_WH"
}
----
--

=== `snowflake` extension
* Config with env vars, JS files...
Expand Down

0 comments on commit ba90e9d

Please sign in to comment.