dbuserprivilegetype

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ranges = [...]string{
		Invalid:    "Invalid",
		All:        "All",
		Select:     "Select",
		Insert:     "Insert",
		Create:     "Create",
		Update:     "Update",
		Alter:      "Alter",
		Delete:     "Delete",
		Drop:       "Drop",
		Execute:    "Execute",
		Event:      "Event",
		CreateView: "CreateView",
		Index:      "Index",
		LockTables: "LockTables",
		References: "References",
		ShowView:   "ShowView",
		Trigger:    "Trigger",
	}

	BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice(
		coredynamic.TypeName(Invalid),
		Ranges[:])
)

Functions

func Is added in v0.1.3

func Is(
	rawString string,
	expected Variant,
) bool

func RangesInvalidErr

func RangesInvalidErr() error

func StringMustBe added in v0.1.3

func StringMustBe(
	rawString string,
	expected Variant,
)

func ValidationError added in v0.1.3

func ValidationError(
	rawString string,
	expectedEnum Variant,
) error

Types

type Variant

type Variant byte
const (
	Invalid Variant = iota
	All
	Select // refers to read
	Insert
	Create
	Update
	Alter  // refers to rename or change
	Delete // in db drop and delete different
	Drop   // in db drop and delete different
	Execute
	Event
	CreateView
	Index
	LockTables
	References
	ShowView
	Trigger
)

func New

func New(name string) (Variant, error)

func NewMust

func NewMust(name string) Variant

func (Variant) AllNameValues

func (it Variant) AllNameValues() []string

func (*Variant) AsBasicByteEnumContractsBinder

func (it *Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder

func (Variant) AsBasicEnumContractsBinder

func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder

func (Variant) AsCrudTyper

func (it Variant) AsCrudTyper() enuminf.CrudTyper

func (*Variant) AsJsonContractsBinder

func (it *Variant) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Variant) AsJsonMarshaller

func (it *Variant) AsJsonMarshaller() corejson.JsonMarshaller

func (*Variant) AsJsoner

func (it *Variant) AsJsoner() corejson.Jsoner

func (Variant) AsPrivilegeTyper

func (it Variant) AsPrivilegeTyper() enuminf.PrivilegeTyper

func (Variant) EnumType

func (it Variant) EnumType() enuminf.EnumTyper

func (Variant) Format

func (it Variant) Format(format string) (compiled string)

func (Variant) IntegerEnumRanges

func (it Variant) IntegerEnumRanges() []int

func (Variant) IsAll

func (it Variant) IsAll() bool

func (Variant) IsAllOr

func (it Variant) IsAllOr(variant Variant) bool

func (Variant) IsAllOrValue

func (it Variant) IsAllOrValue(value byte) bool

func (Variant) IsAlter

func (it Variant) IsAlter() bool

func (Variant) IsAnyNamesOf

func (it Variant) IsAnyNamesOf(names ...string) bool

func (Variant) IsAnyOf

func (it Variant) IsAnyOf(anyOfItems ...Variant) bool

func (Variant) IsAnyValuesEqual

func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool

func (Variant) IsByteValueEqual

func (it Variant) IsByteValueEqual(value byte) bool

func (Variant) IsCreate

func (it Variant) IsCreate() bool

func (Variant) IsCreateLogically

func (it Variant) IsCreateLogically() bool

func (Variant) IsCreateOrUpdate

func (it Variant) IsCreateOrUpdate() bool

func (Variant) IsCreateOrUpdateLogically

func (it Variant) IsCreateOrUpdateLogically() bool

func (Variant) IsCreateOrUpdateOrInsertLogically

func (it Variant) IsCreateOrUpdateOrInsertLogically() bool

func (Variant) IsCreateView

func (it Variant) IsCreateView() bool

func (Variant) IsCrudOnlyLogically

func (it Variant) IsCrudOnlyLogically() bool

func (Variant) IsDelete

func (it Variant) IsDelete() bool

func (Variant) IsDrop

func (it Variant) IsDrop() bool

IsDrop

Refers to table drop and delete refers to delete records

func (Variant) IsDropLogically

func (it Variant) IsDropLogically() bool

func (Variant) IsDropOnExist

func (it Variant) IsDropOnExist() bool

func (Variant) IsEditOrUpdateLogically

func (it Variant) IsEditOrUpdateLogically() bool

func (Variant) IsEvent

func (it Variant) IsEvent() bool

func (Variant) IsExecute

func (it Variant) IsExecute() bool

func (Variant) IsIndex

func (it Variant) IsIndex() bool

func (Variant) IsInsert

func (it Variant) IsInsert() bool

func (Variant) IsInsertOrUpdate

func (it Variant) IsInsertOrUpdate() bool

func (Variant) IsInvalid

func (it Variant) IsInvalid() bool

func (Variant) IsLockTables

func (it Variant) IsLockTables() bool

func (Variant) IsNameEqual

func (it Variant) IsNameEqual(name string) bool

func (Variant) IsNameOf

func (it Variant) IsNameOf(anyNames ...string) bool

func (Variant) IsNone

func (it Variant) IsNone() bool

func (Variant) IsNotCrudOnlyLogically

func (it Variant) IsNotCrudOnlyLogically() bool

func (Variant) IsOnExistCheckLogically

func (it Variant) IsOnExistCheckLogically() bool

func (Variant) IsOnExistOrSkipOnNonExistLogically

func (it Variant) IsOnExistOrSkipOnNonExistLogically() bool

func (Variant) IsRead

func (it Variant) IsRead() bool

func (Variant) IsReadOrEditLogically

func (it Variant) IsReadOrEditLogically() bool

func (Variant) IsReadOrSelect

func (it Variant) IsReadOrSelect() bool

func (Variant) IsReadOrUpdateLogically

func (it Variant) IsReadOrUpdateLogically() bool

func (Variant) IsReferences

func (it Variant) IsReferences() bool

func (Variant) IsRenameOrChange

func (it Variant) IsRenameOrChange() bool

func (Variant) IsSelect

func (it Variant) IsSelect() bool

func (Variant) IsShowView

func (it Variant) IsShowView() bool

func (Variant) IsSkipOnExist

func (it Variant) IsSkipOnExist() bool

func (Variant) IsTrigger

func (it Variant) IsTrigger() bool

func (Variant) IsUpdate

func (it Variant) IsUpdate() bool

func (Variant) IsUpdateOnExist

func (it Variant) IsUpdateOnExist() bool

func (Variant) IsUpdateOrRemoveLogically

func (it Variant) IsUpdateOrRemoveLogically() bool

func (Variant) IsValid

func (it Variant) IsValid() bool

func (Variant) IsValueEqual

func (it Variant) IsValueEqual(value byte) bool

func (Variant) Json

func (it Variant) Json() corejson.Result

func (*Variant) JsonParseSelfInject

func (it *Variant) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Variant) JsonPtr

func (it Variant) JsonPtr() *corejson.Result

func (Variant) MarshalJSON

func (it Variant) MarshalJSON() ([]byte, error)

func (Variant) MaxByte

func (it Variant) MaxByte() byte

func (Variant) MaxInt

func (it Variant) MaxInt() int

func (Variant) MaxValueString

func (it Variant) MaxValueString() string

func (Variant) MinByte

func (it Variant) MinByte() byte

func (Variant) MinInt

func (it Variant) MinInt() int

func (Variant) MinMaxAny added in v0.1.3

func (it Variant) MinMaxAny() (min, max interface{})

func (Variant) MinValueString

func (it Variant) MinValueString() string

func (Variant) Name

func (it Variant) Name() string

func (Variant) NameValue

func (it Variant) NameValue() string

func (Variant) OnlySupportedErr

func (it Variant) OnlySupportedErr(names ...string) error

func (Variant) OnlySupportedMsgErr

func (it Variant) OnlySupportedMsgErr(message string, names ...string) error

func (Variant) RangeNamesCsv

func (it Variant) RangeNamesCsv() string

func (Variant) RangesByte

func (it Variant) RangesByte() []byte

func (Variant) RangesDynamicMap

func (it Variant) RangesDynamicMap() map[string]interface{}

func (Variant) String

func (it Variant) String() string

func (Variant) ToNumberString

func (it Variant) ToNumberString() string

func (Variant) ToPtr

func (it Variant) ToPtr() *Variant

func (*Variant) ToSimple

func (it *Variant) ToSimple() Variant

func (Variant) TypeName

func (it Variant) TypeName() string

func (*Variant) UnmarshalJSON

func (it *Variant) UnmarshalJSON(data []byte) error

func (Variant) UnmarshallEnumToValue

func (it Variant) UnmarshallEnumToValue(
	jsonUnmarshallingValue []byte,
) (byte, error)

func (Variant) Value

func (it Variant) Value() byte

func (Variant) ValueByte

func (it Variant) ValueByte() byte

func (Variant) ValueInt

func (it Variant) ValueInt() int

func (Variant) ValueInt16

func (it Variant) ValueInt16() int16

func (Variant) ValueInt32

func (it Variant) ValueInt32() int32

func (Variant) ValueInt8

func (it Variant) ValueInt8() int8

func (Variant) ValueString

func (it Variant) ValueString() string

func (Variant) ValueUInt16

func (it Variant) ValueUInt16() uint16

Jump to

Keyboard shortcuts

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