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" // FileNameColumn is the name of the file name column in Clickhouse. FileNameColumn = "file_name" // InsertStmt is the SQL statement for inserting a row into Clickhouse. InsertStmt = "INSERT INTO " + TableName + " (" + TimestampColumn + ", " + PrimaryFillerColumn + ", " + DataTypeColumn + ", " + SubjectColumn + ", " + SecondaryFillerColumn + ", " + FileNameColumn + ") VALUES (?, ?, ?, ?, ?, ?)" )
Variables ¶
This section is empty.
Functions ¶
func IndexToSlice ¶
func IndexToSlice(index *nameindexer.Index) ([]any, error)
IndexToSlice converts a Inedx to an array of any for Clickhouse insertion. This function will modify the index to have correctly padded values. 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 service contains service code for gettting and managing index files.
|
Package service contains service code for gettting and managing index files. |
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.