AptlyStar

ClickHouse

Connect to a ClickHouse database

Instrucciones de uso

Integrate ClickHouse into the workflow. Query and insert data, manage databases and tables, inspect schemas, monitor mutations and running queries, manage partitions, and execute raw SQL over the ClickHouse HTTP interface.

Herramientas

clickhouse_query

Execute a SELECT query on a ClickHouse database

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to connect to
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)
querystringSíSQL SELECT query to execute

Salida

ParámetroTipoDescripción
messagestringOperation status message
rowsarrayArray of rows returned from the query
rowCountnumberNumber of rows returned

clickhouse_execute

Execute raw SQL (DDL, mutations, or queries) on a ClickHouse database

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to connect to
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)
querystringSíRaw SQL statement to execute

Salida

ParámetroTipoDescripción
messagestringOperation status message
rowsarrayArray of rows returned from the statement
rowCountnumberNumber of rows returned or affected

clickhouse_insert

Insert a row into a ClickHouse table

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to connect to
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)
tablestringSíTable name to insert data into
dataobjectSíData object to insert (key-value pairs mapping column names to values)

Salida

ParámetroTipoDescripción
messagestringOperation status message
rowsarrayInserted rows (empty for ClickHouse inserts)
rowCountnumberNumber of rows inserted

clickhouse_insert_rows

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_update

Update rows in a ClickHouse table via an ALTER TABLE ... UPDATE mutation

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to connect to
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)
tablestringSíTable name to update data in
dataobjectSíData object with fields to update (key-value pairs)
wherestringSíWHERE clause condition (without the WHERE keyword)

Salida

ParámetroTipoDescripción
messagestringOperation status message
rowsarrayUpdated rows (empty for ClickHouse mutations)
rowCountnumberNumber of rows written by the mutation

clickhouse_delete

Delete rows from a ClickHouse table via an ALTER TABLE ... DELETE mutation

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to connect to
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)
tablestringSíTable name to delete data from
wherestringSíWHERE clause condition (without the WHERE keyword)

Salida

ParámetroTipoDescripción
messagestringOperation status message
rowsarrayDeleted rows (empty for ClickHouse mutations)
rowCountnumberNumber of rows affected by the mutation

clickhouse_list_databases

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_list_tables

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_describe_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_show_create_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_count_rows

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_introspect

Introspect a ClickHouse database to retrieve table structures, columns, and engines

Entrada

ParámetroTipoObligatorioDescripción
hoststringSíClickHouse server hostname (e.g., your-instance.clickhouse.cloud)
portnumberSíClickHouse HTTP interface port (8443 for HTTPS, 8123 for HTTP)
databasestringSíDatabase name to introspect
usernamestringSíClickHouse username
passwordstringNoClickHouse password
securebooleanNoUse a secure HTTPS connection (default: true)

Salida

ParámetroTipoDescripción
messagestringOperation status message
tablesarrayArray of table schemas with columns and engines
↳ namestringTable name
↳ databasestringDatabase the table belongs to
↳ enginestringTable engine (e.g., MergeTree, Log)
↳ totalRowsnumberApproximate total number of rows in the table
↳ columnsarrayTable columns
↳ namestringColumn name
↳ typestringClickHouse data type (e.g., UInt32, String, DateTime)
↳ defaultKindstringKind of default expression (DEFAULT, MATERIALIZED, ALIAS)
↳ defaultExpressionstringDefault value expression for the column
↳ isInPrimaryKeybooleanWhether the column is part of the primary key
↳ isInSortingKeybooleanWhether the column is part of the sorting key

clickhouse_create_database

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_drop_database

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_create_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_drop_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_truncate_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_rename_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_optimize_table

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_list_partitions

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_drop_partition

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_list_mutations

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_list_running_queries

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_kill_query

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_table_stats

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

clickhouse_list_clusters

Entrada

ParámetroTipoObligatorioDescripción

Salida

ParámetroTipoDescripción
messagestringSuccess or error message describing the operation outcome
rowsarrayArray of rows returned from the operation
rowCountnumberNumber of rows returned or affected by the operation
countnumberRow count (count rows operation)
ddlstringCREATE TABLE statement (show create table operation)
tablesarrayArray of table schemas with columns and engines (introspect operation)

On this page