schema

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 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

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

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

func (Card) Mixin

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

type Pet

type Pet struct {
	ent.Schema
}

Pet holds the schema definition for the Pet entity.

func (Pet) Edges

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

Edges of the Pet.

func (Pet) Fields

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

Fields of the Pet.

func (Pet) Mixin

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

type SoftDeleteMixin struct {
	mixin.Schema
}

func (SoftDeleteMixin) Fields

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

func (SoftDeleteMixin) Hooks

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

func (SoftDeleteMixin) Interceptors

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

func (SoftDeleteMixin) P

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

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