thead

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Topology = Thead{
		Col{Name: "id", FieldType: consts.FieldTypeLongLong},
		Col{Name: "group_name", FieldType: consts.FieldTypeVarString},
		Col{Name: "table_name", FieldType: consts.FieldTypeVarString},
	}
	Database = Thead{
		Col{Name: "Database", FieldType: consts.FieldTypeVarString},
	}
	Nodes = Thead{
		Col{Name: "node", FieldType: consts.FieldTypeVarString},
		Col{Name: "cluster", FieldType: consts.FieldTypeVarString},
		Col{Name: "database", FieldType: consts.FieldTypeVarString},
		Col{Name: "host", FieldType: consts.FieldTypeVarString},
		Col{Name: "port", FieldType: consts.FieldTypeLong},
		Col{Name: "user_name", FieldType: consts.FieldTypeVarString},
		Col{Name: "weight", FieldType: consts.FieldTypeVarString},
		Col{Name: "parameters", FieldType: consts.FieldTypeVarString},
	}
	Users = Thead{
		Col{Name: "user_name", FieldType: consts.FieldTypeVarString},
	}
	GroupSequence = Thead{
		Col{Name: "type", FieldType: consts.FieldTypeVarString},
		Col{Name: "seq_val", FieldType: consts.FieldTypeVarString},
		Col{Name: "step", FieldType: consts.FieldTypeVarString},
	}
	SnowflakeSequence = Thead{
		Col{Name: "type", FieldType: consts.FieldTypeVarString},
		Col{Name: "work_id", FieldType: consts.FieldTypeVarString},
		Col{Name: "node_id", FieldType: consts.FieldTypeVarString},
	}
	ShardingRule = Thead{
		Col{Name: "name", FieldType: consts.FieldTypeVarString},
		Col{Name: "sequence_type", FieldType: consts.FieldTypeVarString},
		Col{Name: "db_rules", FieldType: consts.FieldTypeVarString},
		Col{Name: "tbl_rules", FieldType: consts.FieldTypeVarString},
		Col{Name: "attributes", FieldType: consts.FieldTypeVarString},
	}

	DBRule = Thead{
		Col{Name: "table_name", FieldType: consts.FieldTypeVarString},
		Col{Name: "column", FieldType: consts.FieldTypeVarString},
		Col{Name: "type", FieldType: consts.FieldTypeVarString},
		Col{Name: "expr", FieldType: consts.FieldTypeVarString},
		Col{Name: "step", FieldType: consts.FieldTypeInt24},
	}

	TableRule = Thead{
		Col{Name: "table_name", FieldType: consts.FieldTypeVarString},
		Col{Name: "column", FieldType: consts.FieldTypeVarString},
		Col{Name: "type", FieldType: consts.FieldTypeVarString},
		Col{Name: "expr", FieldType: consts.FieldTypeVarString},
		Col{Name: "step", FieldType: consts.FieldTypeVarString},
	}
)

Functions

This section is empty.

Types

type Col

type Col struct {
	Name      string
	FieldType consts.FieldType
}

type Thead

type Thead []Col

func (Thead) ToFields

func (t Thead) ToFields() []proto.Field

Jump to

Keyboard shortcuts

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