schema

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt added in v0.9.0

type BigInt struct {
	*big.Int
}

func NewBigInt added in v0.9.0

func NewBigInt(i int64) BigInt

func (BigInt) Add added in v0.9.0

func (b BigInt) Add(c BigInt) BigInt

func (*BigInt) Scan added in v0.9.0

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

func (BigInt) Value added in v0.9.0

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 added in v0.7.0

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 License added in v0.11.0

type License struct {
	ent.Schema
}

License holds the schema definition for the License entity.

func (License) Fields added in v0.11.0

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

Fields of the License.

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 added in v0.8.0

type Pair struct {
	K, V []byte
}

func (*Pair) Scan added in v0.8.0

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

Scan implements the Scanner interface.

func (Pair) Value added in v0.8.0

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

Value implements the driver Valuer interface.

type Password added in v0.9.0

type Password string

func (*Password) Scan added in v0.9.0

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

func (Password) Value added in v0.9.0

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 added in v0.8.0

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 added in v0.9.0

type StringScanner string

func (*StringScanner) Scan added in v0.9.0

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

Scan implements the Scanner interface.

func (StringScanner) Value added in v0.9.0

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

Value implements the driver Valuer interface.

type Strings added in v0.8.0

type Strings []string

func (*Strings) Scan added in v0.8.0

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

func (Strings) Value added in v0.8.0

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 added in v0.8.0

type Triple struct {
	E [3]string
}

func (*Triple) Scan added in v0.8.0

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

Scan implements the Scanner interface.

func (Triple) Value added in v0.8.0

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 added in v0.8.0

type VString string

func (*VString) Scan added in v0.8.0

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

func (VString) Value added in v0.8.0

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

Directories

Path Synopsis
Package schemadir is used as an example to test cases where package-name is not equal to the package-path (schemadir <> dir).
Package schemadir is used as an example to test cases where package-name is not equal to the package-path (schemadir <> dir).

Jump to

Keyboard shortcuts

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