schema

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipSoftDelete added in v0.11.5

func SkipSoftDelete(parent context.Context) context.Context

SkipSoftDelete returns a new context that skips the soft-delete interceptor/mutators.

func VersionHook

func VersionHook() ent.Hook

Types

type Card

type Card struct {
	ent.Schema
}

Card holds the schema definition for the CreditCard entity.

func (Card) Edges

func (Card) Edges() []ent.Edge

func (Card) Fields

func (Card) Fields() []ent.Field

func (Card) Hooks

func (Card) Hooks() []ent.Hook

func (Card) Interceptors added in v0.11.5

func (Card) Interceptors() []ent.Interceptor

func (Card) Mixin

func (Card) Mixin() []ent.Mixin

type Pet added in v0.11.5

type Pet struct {
	ent.Schema
}

Pet holds the schema definition for the Pet entity.

func (Pet) Edges added in v0.11.5

func (Pet) Edges() []ent.Edge

Edges of the Pet.

func (Pet) Fields added in v0.11.5

func (Pet) Fields() []ent.Field

Fields of the Pet.

func (Pet) Mixin added in v0.11.5

func (Pet) Mixin() []ent.Mixin

Mixin of the Pet.

type RejectUpdate

type RejectUpdate struct {
	mixin.Schema
}

RejectUpdate rejects ~all update operations that are not on a specific entity.

func (RejectUpdate) Hooks

func (RejectUpdate) Hooks() []ent.Hook

type SoftDeleteMixin added in v0.11.5

type SoftDeleteMixin struct {
	mixin.Schema
}

func (SoftDeleteMixin) Fields added in v0.11.5

func (SoftDeleteMixin) Fields() []ent.Field

func (SoftDeleteMixin) Hooks added in v0.11.5

func (d SoftDeleteMixin) Hooks() []ent.Hook

func (SoftDeleteMixin) Interceptors added in v0.11.5

func (d SoftDeleteMixin) Interceptors() []ent.Interceptor

func (SoftDeleteMixin) P added in v0.11.5

func (d SoftDeleteMixin) P(w interface{ WhereP(...func(*sql.Selector)) })

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User.

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Hooks added in v0.11.0

func (User) Hooks() []ent.Hook

Hooks of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin of the User.

type VersionMixin

type VersionMixin struct {
	mixin.Schema
}

func (VersionMixin) Fields

func (VersionMixin) Fields() []ent.Field

func (VersionMixin) Hooks

func (VersionMixin) Hooks() []ent.Hook

Jump to

Keyboard shortcuts

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