clickhouse

package
v0.0.0-...-f839e32 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter adapts journal for ClickHouse storage

func NewAdapter

func NewAdapter(dsn string) (*Adapter, error)

NewAdapter creates new Adapter for DSN string

func NewAdapterFromConfig

func NewAdapterFromConfig(cfg sections.ClickHouseConfigurator) (*Adapter, error)

NewAdapterFromConfig creates new Adapter from config

func (*Adapter) FindAll

func (j *Adapter) FindAll(entry *journal.Entry) ([]*journal.Entry, error)

FindAll finds entries in ClickHouse

func (*Adapter) Insert

func (j *Adapter) Insert(entry *journal.Entry) error

Insert inserts journal entry into ClickHouse

type AdapterEntry

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

AdapterEntry defines journal entry structure

func NewAdapterEntry

func NewAdapterEntry() *AdapterEntry

NewAdapterEntry creates new AdapterEntry

func (*AdapterEntry) AsUntypedSlice

func (ce *AdapterEntry) AsUntypedSlice() []interface{}

AsUntypedSlice returns slice of fields

func (*AdapterEntry) Export

func (ce *AdapterEntry) Export() *journal.Entry

Export exports data to journal entry

func (*AdapterEntry) Fields

func (ce *AdapterEntry) Fields() string

Fields returns string representation of the fields

func (*AdapterEntry) Import

func (ce *AdapterEntry) Import(entry *journal.Entry) *AdapterEntry

Import imports data from journal entry

func (*AdapterEntry) Scan

func (ce *AdapterEntry) Scan(rows *databasesql.Rows) error

Scan scans date from

func (*AdapterEntry) StmtParamsPlaceholder

func (ce *AdapterEntry) StmtParamsPlaceholder() string

StmtParamsPlaceholder returns string representation of a placeholders for fields

func (*AdapterEntry) String

func (ce *AdapterEntry) String() string

String is a stringifier

type AdapterEntryClickHouseSearch

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

AdapterEntryClickHouseSearch defines journal entry structure

func NewAdapterEntryClickHouseSearch

func NewAdapterEntryClickHouseSearch() *AdapterEntryClickHouseSearch

NewAdapterEntryClickHouseSearch

func (*AdapterEntryClickHouseSearch) Import

Import

func (*AdapterEntryClickHouseSearch) StmtSearchParamsPlaceholderAndArgs

func (ce *AdapterEntryClickHouseSearch) StmtSearchParamsPlaceholderAndArgs() (string, []interface{})

StmtSearchParamsPlaceholderAndArgs

Jump to

Keyboard shortcuts

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