Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TableName is the name of the table in Clickhouse. TableName = "name_index" // TimestampColumn is the name of the timestamp column in Clickhouse. TimestampColumn = "timestamp" // PrimaryFillerColumn is the name of the primary filler column in Clickhouse. PrimaryFillerColumn = "primary_filler" // DataTypeColumn is the name of the data type column in Clickhouse. DataTypeColumn = "data_type" // SubjectColumn is the name of the subject column in Clickhouse. SubjectColumn = "subject" // SecondaryFillerColumn is the name of the secondary filler column in Clickhouse. SecondaryFillerColumn = "secondary_filler" // IndexKeyColumn is the name of the index name column in Clickhouse. IndexKeyColumn = "index_key" // SourceColumn is the name of the source column in Clickhouse. SourceColumn = "source" // ProducerColumn is the name of the producer column in Clickhouse. ProducerColumn = "producer" // OptionalColumn is the name of the optional column in Clickhouse. OptionalColumn = "optional" // InsertStmt is the SQL statement for inserting a row into Clickhouse. InsertStmt = "INSERT INTO " + TableName + " (" + SubjectColumn + ", " + TimestampColumn + ", " + PrimaryFillerColumn + ", " + SourceColumn + ", " + DataTypeColumn + ", " + SecondaryFillerColumn + ", " + ProducerColumn + ", " + OptionalColumn + ", " + IndexKeyColumn + ") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)" )
Variables ¶
This section is empty.
Functions ¶
func CloudEventIndexToSlice ¶ added in v0.0.8
func CloudEventIndexToSlice(origIndex *nameindexer.CloudEventIndex) ([]any, error)
CloudEventIndexToSlice converts a CloudEventIndex to an array of any for Clickhouse insertion. The order of the elements in the array match the order of the columns in the table.
func IndexToSlice ¶
func IndexToSlice(origIndex *nameindexer.Index) ([]any, error)
IndexToSlice converts a Inedx to an array of any for Clickhouse insertion. The order of the elements in the array match the order of the columns in the table.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package indexrepo contains service code for gettting and managing indexed objects.
|
Package indexrepo contains service code for gettting and managing indexed objects. |
Code generated by "clickhouse-infra" DO NOT EDIT.
|
Code generated by "clickhouse-infra" DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.