repr

package
v0.0.0-...-dba5aa2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name string     `json:"name"`
	Type pyooq.Type `json:"type"`
}

func (Column) Append

func (c Column) Append(out []byte) []byte

func (Column) String

func (c Column) String() string

type Index

type Index struct {
	Name    string           `json:"name"`
	Type    pyooq.IndexType  `json:"type"`
	Columns []*IndexedColumn `json:"columns"`
}

func (Index) Append

func (i Index) Append(out []byte) []byte

func (Index) String

func (i Index) String() string

type IndexedColumn

type IndexedColumn struct {
	Column string
	IsDesc bool
}

func (IndexedColumn) MarshalJSON

func (ic IndexedColumn) MarshalJSON() ([]byte, error)

func (*IndexedColumn) Parse

func (ic *IndexedColumn) Parse(input string) error

func (*IndexedColumn) UnmarshalJSON

func (ic *IndexedColumn) UnmarshalJSON(input []byte) error

type Schema

type Schema struct {
	Tables []*Table `json:"tables"`
}

func (*Schema) Append

func (s *Schema) Append(out []byte) []byte

func (*Schema) String

func (s *Schema) String() string

type Table

type Table struct {
	Name    string    `json:"name"`
	Columns []*Column `json:"columns"`
	Indices []*Index  `json:"indices"`
}

func (Table) Append

func (t Table) Append(out []byte) []byte

func (Table) String

func (t Table) String() string

Jump to

Keyboard shortcuts

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