schema

package
v0.0.0-...-0eefd46 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	RowBinary                  format = 0
	RowBinaryWithNames         format = 1
	RowBinaryWithNamesAndTypes format = 2
)

Variables

This section is empty.

Functions

func Read

func Read[V any](r *Reader, tp rowbinary.Type[V]) (V, error)

func Write

func Write[V any](w *Writer, tp rowbinary.Type[V], value V) error

Types

type Option

type Option func(*options)

func Binary

func Binary(isBinary bool) Option

output_format_binary_encode_types_in_binary_format=true input_format_binary_decode_types_in_binary_format=true https://clickhouse.com/docs/interfaces/formats/RowBinary

func Column

func Column(name string, tp rowbinary.Any) Option

func Format

func Format(f format) Option

type Reader

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

func NewReader

func NewReader(wrap io.Reader, opts ...Option) *Reader

func (*Reader) Err

func (r *Reader) Err() error

func (*Reader) Next

func (r *Reader) Next() bool

func (*Reader) ReadHeader

func (r *Reader) ReadHeader() error

type Writer

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

func NewWriter

func NewWriter(wrap io.Writer, opts ...Option) *Writer

func (*Writer) Err

func (w *Writer) Err() error

func (*Writer) WriteHeader

func (w *Writer) WriteHeader() error

func (*Writer) WriteValues

func (w *Writer) WriteValues(values ...any) error

Jump to

Keyboard shortcuts

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