enc

package
v0.0.0-...-05cc1f7 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: BSD-3-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 Flags

type Flags int
const (
	// Indicates a key with an autoincrement value. Autoinc
	// globals have a unique key across the table.
	FlagAutoIncGlobal Flags = 1 << iota
	// Local autoincs only apply to storage layers that have
	// some notion of nesting or folders. In this case the
	// key will only be unique to the containing folder.
	FlagAutoIncLocal
	FlagEnd = iota
)

type Tag

type Tag struct {
	Name     string
	Format   string
	HasKey   bool
	KeyGroup string
	KeyIndex int
	Flags    Flags
}

func ParseTag

func ParseTag(expr string) (Tag, error)

ParseTag parses a tag expression.

func (Tag) Autoinc

func (t Tag) Autoinc() bool

func (Tag) AutoincGlobal

func (t Tag) AutoincGlobal() bool

func (Tag) AutoincLocal

func (t Tag) AutoincLocal() bool

func (Tag) Validate

func (t Tag) Validate() error

Jump to

Keyboard shortcuts

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