indexes

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Col

type Col struct {
	Name      string
	Direction Direction
}

Col :

func Column

func Column(name string) Col

Column :

func Columns

func Columns(names ...string) []Col

Columns :

type Direction

type Direction int

Direction :

const (
	Ascending Direction = iota
	Descending
)

direction :

type Index

type Index struct {
	Name    string
	Cast    string
	As      string
	Type    Type
	Columns []Col
	Comment string
}

Index :

func (Index) GetName

func (idx Index) GetName() string

GetName :

func (Index) HashName

func (idx Index) HashName() string

HashName :

type Type

type Type int

Type :

const (
	BTree Type = iota + 1
	FullText
	Unique
	Spatial
	Primary
	MultiValued
)

types :

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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