clickhouse
A Dagger module to integrate with Clickhouse https://clickhouse.comInstallation
dagger install github.com/shykes/clickhouse@v0.1.1Entrypoint
Return Type
Clickhouse !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| host | String ! | - | Clickhouse hostname |
| port | Integer ! | - | No description provided |
| user | String ! | - | No description provided |
| password | Secret ! | - | No description provided |
Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRETfunc (m *MyModule) Example(host string, port int, user string, password *dagger.Secret) *dagger.Clickhouse {
return dag.
Clickhouse(host, port, user, password)
}@function
def example(host: str, port: int, user: str, password: dagger.Secret) -> dagger.Clickhouse:
return (
dag.clickhouse(host, port, user, password)
)@func()
example(host: string, port: number, user: string, password: Secret): Clickhouse {
return dag
.clickhouse(host, port, user, password)
}Types
Clickhouse 🔗
host() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET hostfunc (m *MyModule) Example(ctx context.Context, host string, port int, user string, password *dagger.Secret) string {
return dag.
Clickhouse(host, port, user, password).
Host(ctx)
}@function
async def example(host: str, port: int, user: str, password: dagger.Secret) -> str:
return await (
dag.clickhouse(host, port, user, password)
.host()
)@func()
async example(host: string, port: number, user: string, password: Secret): Promise<string> {
return dag
.clickhouse(host, port, user, password)
.host()
}port() 🔗
Return Type
Integer ! Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET portfunc (m *MyModule) Example(ctx context.Context, host string, port int, user string, password *dagger.Secret) int {
return dag.
Clickhouse(host, port, user, password).
Port(ctx)
}@function
async def example(host: str, port: int, user: str, password: dagger.Secret) -> int:
return await (
dag.clickhouse(host, port, user, password)
.port()
)@func()
async example(host: string, port: number, user: string, password: Secret): Promise<number> {
return dag
.clickhouse(host, port, user, password)
.port()
}user() 🔗
Return Type
String ! Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET userfunc (m *MyModule) Example(ctx context.Context, host string, port int, user string, password *dagger.Secret) string {
return dag.
Clickhouse(host, port, user, password).
User(ctx)
}@function
async def example(host: str, port: int, user: str, password: dagger.Secret) -> str:
return await (
dag.clickhouse(host, port, user, password)
.user()
)@func()
async example(host: string, port: number, user: string, password: Secret): Promise<string> {
return dag
.clickhouse(host, port, user, password)
.user()
}password() 🔗
Return Type
Secret ! Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET passwordfunc (m *MyModule) Example(host string, port int, user string, password *dagger.Secret) *dagger.Secret {
return dag.
Clickhouse(host, port, user, password).
Password()
}@function
def example(host: str, port: int, user: str, password: dagger.Secret) -> dagger.Secret:
return (
dag.clickhouse(host, port, user, password)
.password()
)@func()
example(host: string, port: number, user: string, password: Secret): Secret {
return dag
.clickhouse(host, port, user, password)
.password()
}container() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Container ! Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET containerfunc (m *MyModule) Example(host string, port int, user string, password *dagger.Secret) *dagger.Container {
return dag.
Clickhouse(host, port, user, password).
Container()
}@function
def example(host: str, port: int, user: str, password: dagger.Secret) -> dagger.Container:
return (
dag.clickhouse(host, port, user, password)
.container()
)@func()
example(host: string, port: number, user: string, password: Secret): Container {
return dag
.clickhouse(host, port, user, password)
.container()
}csv() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| q | String ! | - | No description provided |
Example
dagger -m github.com/shykes/clickhouse@c774cb197c8ca9600e8e9cba1ef9474f709480c0 call \
--host string --port integer --user string --password env:MYSECRET csv --q stringfunc (m *MyModule) Example(host string, port int, user string, password *dagger.Secret, q string) *dagger.File {
return dag.
Clickhouse(host, port, user, password).
Csv(q)
}@function
def example(host: str, port: int, user: str, password: dagger.Secret, q: str) -> dagger.File:
return (
dag.clickhouse(host, port, user, password)
.csv(q)
)@func()
example(host: string, port: number, user: string, password: Secret, q: string): File {
return dag
.clickhouse(host, port, user, password)
.csv(q)
}