definitions

package
v0.0.0-...-7ba985f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrFieldNoFoundByColumn

func NewErrFieldNoFoundByColumn(column string, modelDefinition specs.ModelDefinition) specs.ErrFieldNoFoundByColumn

func NewErrFieldNotFound

func NewErrFieldNotFound(field string, modelDefinition specs.ModelDefinition) specs.ErrNotFoundError

func NewErrNoPrimaryField

func NewErrNoPrimaryField(modelDefinition specs.ModelDefinition) specs.ErrPrimaryFieldNotFound

func Use

func Use(model specs.Model) specs.ModelDefinition

Types

type ErrFieldNoFoundByColumn

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

func (*ErrFieldNoFoundByColumn) Column

func (e *ErrFieldNoFoundByColumn) Column() string

func (*ErrFieldNoFoundByColumn) Error

func (e *ErrFieldNoFoundByColumn) Error() string

func (*ErrFieldNoFoundByColumn) ModelDefinition

func (e *ErrFieldNoFoundByColumn) ModelDefinition() specs.ModelDefinition

type ErrNotFoundError

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

func (*ErrNotFoundError) Error

func (e *ErrNotFoundError) Error() string

type ErrPrimaryFieldNotFound

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

func (*ErrPrimaryFieldNotFound) Error

func (e *ErrPrimaryFieldNotFound) Error() string

Jump to

Keyboard shortcuts

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