clickhouse

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client manages ClickHouse queries for TensorZero data

func NewClient

func NewClient() *Client

NewClient creates a new ClickHouse client Uses CLICKHOUSE_URL which should contain all connection details: Format: https://user:password@host:port/database Or: https://host:port?user=xxx&password=xxx&database=xxx Legacy env vars (CLICKHOUSE_DATABASE, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD) are still supported for backwards compatibility

func (*Client) FetchInferenceDetails

func (c *Client) FetchInferenceDetails(inferenceID string) (*types.InferenceDetailsResponse, error)

FetchInferenceDetails fetches detailed information about a specific inference

func (*Client) FetchInferencesByEpisode

func (c *Client) FetchInferencesByEpisode(episodeID string) ([]types.ClickHouseInference, error)

FetchInferencesByEpisode fetches all inferences for a given episode_id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL