snowflake-cli
This module provides a `SnowflakeCli` object type that can be used to run Snowflake CLI commands.Installation
dagger install github.com/samalba/dagger-modules/snowflake-cli@4bdd5f30e5a13e4615d8a936bdfd43bee15647bfEntrypoint
Return Type
SnowflakeCli ! Example
dagger -m github.com/samalba/dagger-modules/snowflake-cli@4bdd5f30e5a13e4615d8a936bdfd43bee15647bf call \
func (m *MyModule) Example() *dagger.SnowflakeCli {
return dag.
SnowflakeCli()
}@function
def example() -> dagger.SnowflakeCli:
return (
dag.snowflake_cli()
)@func()
example(): SnowflakeCli {
return dag
.snowflakeCli()
}Types
SnowflakeCli 🔗
ctr() 🔗
Run a Snowflake CLI command
Return Type
Container ! Example
dagger -m github.com/samalba/dagger-modules/snowflake-cli@4bdd5f30e5a13e4615d8a936bdfd43bee15647bf call \
ctrfunc (m *MyModule) Example() *dagger.Container {
return dag.
SnowflakeCli().
Ctr()
}@function
def example() -> dagger.Container:
return (
dag.snowflake_cli()
.ctr()
)@func()
example(): Container {
return dag
.snowflakeCli()
.ctr()
}query() 🔗
Run a query
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| config | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
| query | String ! | - | No description provided |
| formatJson | Boolean ! | false | No description provided |
| cache | Boolean ! | true | No description provided |
Example
dagger -m github.com/samalba/dagger-modules/snowflake-cli@4bdd5f30e5a13e4615d8a936bdfd43bee15647bf call \
query --config env:MYSECRET --query string --format-json boolean --cache booleanfunc (m *MyModule) Example(ctx context.Context, config *dagger.Secret, query string, formatJson bool, cache bool) string {
return dag.
SnowflakeCli().
Query(ctx, config, query, formatJson, cache)
}@function
async def example(config: dagger.Secret, query: str, format_json: bool, cache: bool) -> str:
return await (
dag.snowflake_cli()
.query(config, query, format_json, cache)
)@func()
async example(config: Secret, query: string, formatJson: boolean, cache: boolean): Promise<string> {
return dag
.snowflakeCli()
.query(config, query, formatJson, cache)
}