schema

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt

type BigInt struct {
	*big.Int
}

func NewBigInt

func NewBigInt(i int64) BigInt

func (BigInt) Add

func (b BigInt) Add(c BigInt) BigInt

func (*BigInt) Scan

func (b *BigInt) Scan(src interface{}) error

func (BigInt) Value

func (b BigInt) Value() (driver.Value, error)

type Card

type Card struct {
	ent.Schema
}

Card holds the schema definition for the CreditCard entity.

func (Card) Annotations

func (Card) Annotations() []schema.Annotation

func (Card) Edges

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

Edges of the Card.

func (Card) Fields

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

Fields of the Comment.

func (Card) Indexes

func (Card) Indexes() []ent.Index

Indexes of the Card.

func (Card) Mixin

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

type CardMixin

type CardMixin struct {
	mixin.Schema
}

func (CardMixin) Annotations

func (CardMixin) Annotations() []schema.Annotation

type CheckError

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

CheckError is returned by the validators.

func (CheckError) Error

func (c CheckError) Error() string

type Comment

type Comment struct {
	ent.Schema
}

Comment holds the schema definition for the Comment entity.

func (Comment) Fields

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

Fields of the Comment.

type FieldType

type FieldType struct {
	ent.Schema
}

FieldType holds the schema definition for the FieldType entity. used for testing field types.

func (FieldType) Fields

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

Fields of the File.

type File

type File struct {
	ent.Schema
}

File holds the schema definition for the File entity.

func (File) Annotations

func (File) Annotations() []schema.Annotation

func (File) Edges

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

Edges of the File.

func (File) Fields

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

Fields of the File.

func (File) Indexes

func (File) Indexes() []ent.Index

Indexes of a file.

type FileType

type FileType struct {
	ent.Schema
}

FileType holds the schema definition for the FileType entity.

func (FileType) Edges

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

Edges of the FileType.

func (FileType) Fields

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

Fields of the FileType.

type Float32

type Float32 float32

type Float64

type Float64 float64

type Goods

type Goods struct {
	ent.Schema
}

Goods holds the schema definition for the Goods entity.

func (Goods) Edges

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

Edges of the Goods.

func (Goods) Fields

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

Fields of the Goods.

type Group

type Group struct {
	ent.Schema
}

Group holds the schema for the group entity.

func (Group) Edges

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

Edges of the group.

func (Group) Fields

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

Fields of the group.

type GroupInfo

type GroupInfo struct {
	ent.Schema
}

GroupInfo holds the schema for the group-info entity.

func (GroupInfo) Edges

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

Edges of the group.

func (GroupInfo) Fields

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

Fields of the group.

type Int

type Int int

type Int64

type Int64 int64

type Int8

type Int8 int8

type Item

type Item struct {
	ent.Schema
}

Item holds the schema definition for the Item entity.

func (Item) Fields

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

Fields of the Item.

type Link struct {
	*url.URL
}
func DefaultLink() *Link

func (*Link) Scan

func (l *Link) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Link) Value

func (l Link) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type MAC

type MAC struct {
	net.HardwareAddr
}

func (*MAC) Scan

func (m *MAC) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (MAC) Value

func (m MAC) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Node

type Node struct {
	ent.Schema
}

Node holds the schema definition for the linked-list Node entity.

func (Node) Edges

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

Edges of the Node.

func (Node) Fields

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

Fields of the Node.

type Pair

type Pair struct {
	K, V []byte
}

func (*Pair) Scan

func (p *Pair) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Pair) Value

func (p Pair) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Password

type Password string

func (*Password) Scan

func (p *Password) Scan(src interface{}) error

func (Password) Value

func (p Password) Value() (driver.Value, error)

type Pet

type Pet struct {
	ent.Schema
}

Pet holds the schema definition for the Pet entity.

func (Pet) Annotations

func (Pet) Annotations() []schema.Annotation

Annotations of the Pet.

func (Pet) Edges

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

Edges of the Dog.

func (Pet) Fields

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

Fields of the Pet.

func (Pet) Indexes

func (Pet) Indexes() []ent.Index

type Spec

type Spec struct {
	ent.Schema
}

func (Spec) Edges

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

Edges of the Spec.

type Status

type Status bool

type StringScanner

type StringScanner string

func (*StringScanner) Scan

func (s *StringScanner) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (StringScanner) Value

func (s StringScanner) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Strings

type Strings []string

func (*Strings) Scan

func (s *Strings) Scan(v interface{}) (err error)

func (Strings) Value

func (s Strings) Value() (driver.Value, error)

type Task

type Task struct {
	ent.Schema
}

Task holds the schema definition for the Task entity.

func (Task) Fields

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

Fields of the Task.

type Triple

type Triple struct {
	E [3]string
}

func (*Triple) Scan

func (t *Triple) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Triple) Value

func (t Triple) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type User

type User struct {
	ent.Schema
}

User holds the schema 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) Mixin

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

type UserMixin

type UserMixin struct {
	mixin.Schema
}

UserMixin composes create/update time mixin.

func (UserMixin) Fields

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

Fields of the time mixin.

type VString

type VString string

func (*VString) Scan

func (s *VString) Scan(v interface{}) (err error)

func (VString) Value

func (s VString) Value() (driver.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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