Dagger
Search

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@4bdd5f30e5a13e4615d8a936bdfd43bee15647bf

Entrypoint

Return Type
SnowflakeCli !
Example
func (m *myModule) example() *SnowflakeCli  {
	return dag.
			SnowflakeCli()
}
@function
def example() -> dag.SnowflakeCli:
	return (
		dag.snowflake_cli()
	)
@func()
example(): SnowflakeCli {
	return dag
		.snowflakeCli()
}

Types

SnowflakeCli 🔗

ctr() 🔗

Run a Snowflake CLI command

Return Type
Container !
Example
func (m *myModule) example() *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
NameTypeDefault ValueDescription
configSecret !-A reference to a secret value, which can be handled more safely than the value itself.
queryString !-No description provided
formatJsonBoolean !falseNo description provided
cacheBoolean !trueNo description provided
Example
func (m *myModule) example(ctx context.Context, config *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)
}