record

package
v0.0.0-...-0460edb Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(schema *storage.TableSchemaStructure, record storage.Record) ([]byte, error)

Marshal a raw Record (variable type values loosely)

func Unmarshal

func Unmarshal(schema *storage.TableSchemaStructure, data []byte) (storage.Record, error)

Types

type JSONEncoder

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

func NewJSONEncoder

func NewJSONEncoder(out io.Writer) (encoder *JSONEncoder)

func (*JSONEncoder) EncodeRecord

func (j *JSONEncoder) EncodeRecord(record storage.Record) (err error)

func (*JSONEncoder) EncodeSchemaHeader

func (j *JSONEncoder) EncodeSchemaHeader(schema *storage.TableSchemaStructure) (err error)

Jump to

Keyboard shortcuts

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