tables

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveDumpTables

func SaveDumpTables(tables DumpTables, file jsonio.NamedWriter) (err error)

Types

type DumpTables

type DumpTables map[string][]Row

func (DumpTables) GetTableNames

func (tables DumpTables) GetTableNames() []string

type InitTables

type InitTables []Table

func LoadInitTables

func LoadInitTables(file jsonio.NamedReader) (InitTables, error)

func (InitTables) GetTableNames

func (tables InitTables) GetTableNames() []string

type Row

type Row map[string]*wrap.JsonValue

func (Row) GetColumnNames

func (row Row) GetColumnNames() []string

func (Row) GetJsonType

func (row Row) GetJsonType(columnName string) (wrap.JsonType, bool)

func (Row) Has

func (row Row) Has(columnName string) bool

func (Row) SetBool

func (row Row) SetBool(columnName string, val bool)

func (Row) SetFloat64

func (row Row) SetFloat64(columnName string, val float64)

func (Row) SetInt64

func (row Row) SetInt64(columnName string, val int64)

func (Row) SetNil

func (row Row) SetNil(columnName string)

func (Row) SetString

func (row Row) SetString(columnName string, val string)

func (Row) ToBool

func (row Row) ToBool(columnName string) (bool, error)

func (Row) ToFloat64

func (row Row) ToFloat64(columnName string) (float64, error)

func (Row) ToInt64

func (row Row) ToInt64(columnName string) (int64, error)

func (Row) ToString

func (row Row) ToString(columnName string) (string, error)

type Table

type Table struct {
	Name string
	Rows []Row
}

Jump to

Keyboard shortcuts

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