model

package
v0.0.0-...-959c02d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIStr

type CIStr struct {
	O string `json:"O"` // Original string.
	L string `json:"L"` // Lower case string.
}

CIStr is case-insensitive string.

func NewCIStr

func NewCIStr(s string) (cs CIStr)

NewCIStr creates a new CIStr.

func (CIStr) Equal

func (cis CIStr) Equal(other CIStr) bool

Equal reports whether `cis` is equal to `other` in a case-insensitive way.

func (CIStr) IsEmpty

func (cis CIStr) IsEmpty() bool

IsEmpty reports whether the CIStr is an empty string

func (CIStr) String

func (cis CIStr) String() string

String implements fmt.Stringer interface.

func (*CIStr) UnmarshalJSON

func (cis *CIStr) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the user defined unmarshal method. CIStr can be unmarshaled from a single string, so PartitionDefinition.Name in this change https://github.com/pingcap/tidb/pull/6460/files would be compatible during TiDB upgrading.

type GraphInfo

type GraphInfo struct {
	ID         int64           `json:"id"`
	Name       CIStr           `json:"name"`
	Indexes    []*IndexInfo    `json:"indexes"`
	NextPropID uint16          `json:"next_prop_id"`
	Query      string          `json:"query"`
	Labels     []*LabelInfo    `json:"-"`
	Properties []*PropertyInfo `json:"-"`
}

GraphInfo provides meta data describing a graph.

func (*GraphInfo) Clone

func (info *GraphInfo) Clone() *GraphInfo

type IndexInfo

type IndexInfo struct {
	ID         int64   `json:"id"`
	Name       CIStr   `json:"name"`
	Properties []CIStr `json:"properties"`
	Query      string  `json:"query"`
}

IndexInfo provides meta data describing a index.

func (*IndexInfo) Clone

func (info *IndexInfo) Clone() *IndexInfo

type LabelInfo

type LabelInfo struct {
	ID    int64  `json:"id"`
	Name  CIStr  `json:"name"`
	Query string `json:"query"`
}

LabelInfo provides meta data describing a label.

func (*LabelInfo) Clone

func (info *LabelInfo) Clone() *LabelInfo

type PropertyInfo

type PropertyInfo struct {
	ID   uint16 `json:"id"`
	Name CIStr  `json:"name"`
}

func (*PropertyInfo) Clone

func (info *PropertyInfo) Clone() *PropertyInfo

Jump to

Keyboard shortcuts

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