table

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnName

type ColumnName string

type ID

type ID string

type List

type List []TableSummary

func (List) Len

func (l List) Len() int

func (List) Less

func (l List) Less(i, j int) bool

func (List) Swap

func (l List) Swap(i, j int)

type Map

type Map map[ID]List

type Row

type Row map[ColumnName]string

type Rows

type Rows []Row

type Table

type Table struct {
	ID         ID       `json:"id"`
	Version    Version  `json:"version"`
	Timestamp  int64    `json:"timestamp"`
	Rows       Rows     `json:"rows"`
	ReadErrors []string `json:"readErrors"`
}

func (*Table) AppendRow

func (t *Table) AppendRow(row Row, lineError error)

type TableSummary

type TableSummary struct {
	ID        ID      `json:"id"`
	Timestamp int64   `json:"timestamp"`
	Version   Version `json:"version"`
	Valid     bool    `json:"valid"`
	Committed bool    `json:"committed"`
}

type TypedCell

type TypedCell struct {
	Int64  *int64
	String *string
}

type TypedRow

type TypedRow map[ColumnName]TypedCell

type Version

type Version string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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