rules

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unique

type Unique struct {
	// contains filtered or unexported fields
}

func NewUnique

func NewUnique(db *gorm.DB, table, field string) *Unique

func UniqueDefault

func UniqueDefault(table, field string) *Unique

func (*Unique) FormatInput

func (u *Unique) FormatInput(f func(input contracts.InputValue) interface{}) *Unique

func (*Unique) Ignore

func (u *Unique) Ignore(id interface{}, idField ...string) *Unique

func (*Unique) Passes

func (u *Unique) Passes(input contracts.InputValue) (success bool, skipAll bool)

func (*Unique) RoleName added in v0.1.7

func (u *Unique) RoleName() string

func (*Unique) Scope

func (u *Unique) Scope(s func(*gorm.DB) *gorm.DB) *Unique

Jump to

Keyboard shortcuts

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