Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	// The Table option allows overriding the default table
	// name that is generated by ent. For example:
	//
	//	entsql.Annotation{
	//		Table: "Users",
	//	}
	//
	Table string
}

Annotation is a builtin schema annotation for attaching SQL metadata to schema objects for both codegen and runtime.

func (Annotation) Name

func (Annotation) Name() string

Name describes the annotation name.

Source Files