fields

package
v0.0.0-...-ee1e9a0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const BooleanFieldType = libdata.FieldType("BooleanType")

BooleanFieldType contains the field type for Boolean

View Source
const DateFieldType = libdata.FieldType("DateType")

DateFieldType contains the field type for Date

View Source
const DatetimeFieldType = libdata.FieldType("DatetimeType")

DatetimeFieldType contains the field type for Datetime

View Source
const FloatFieldType = libdata.FieldType("FloatType")

FloatFieldType contains the field type for Float

View Source
const IDFieldType = libdata.FieldType("IDType")

IDFieldType contains the field type for ID

View Source
const IntegerFieldType = libdata.FieldType("IntegerType")

IntegerFieldType contains the field type for Interger

View Source
const JSONFieldType = libdata.FieldType("JSONType")

JSONFieldType contains the field type for JSON

View Source
const Many2manyFieldType = libdata.FieldType("Many2manyType")

Many2manyFieldType contains the field type for Many2many

View Source
const Many2oneFieldType = libdata.FieldType("Many2oneType")

Many2oneFieldType contains the field type for Many2one

View Source
const One2manyFieldType = libdata.FieldType("One2manyType")

One2manyFieldType contains the field type for One2many

View Source
const TextFieldType = libdata.FieldType("TextType")

TextFieldType contains the field type for Text

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Boolean is the field type you can use in definition to declare a Boolean field.

func (*Boolean) DBType

func (f *Boolean) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Boolean) GetInverseField

func (f *Boolean) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Boolean) GetName

func (f *Boolean) GetName() string

GetName return the name of the field.

func (*Boolean) GetPrimaryKey

func (f *Boolean) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Boolean) GetReference

func (f *Boolean) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Boolean) GetReferenceName

func (f *Boolean) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Boolean) GetRequired

func (f *Boolean) GetRequired() bool

GetRequired return if this field is required or not.

func (*Boolean) GoType

func (f *Boolean) GoType() string

Type return the type of the field.

func (*Boolean) GraphqlSchemaType

func (f *Boolean) GraphqlSchemaType() string

Type return the type of the field.

func (*Boolean) GraphqlType

func (f *Boolean) GraphqlType() string

Type return the type of the field.

func (*Boolean) IsNested

func (f *Boolean) IsNested() bool

func (*Boolean) IsStored

func (f *Boolean) IsStored() bool

func (*Boolean) NameWithoutUUID

func (f *Boolean) NameWithoutUUID() string

Title return the title of the field.

func (*Boolean) ProtoType

func (f *Boolean) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Boolean) SetReference

func (f *Boolean) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Boolean) Snake

func (f *Boolean) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Boolean) Title

func (f *Boolean) Title() string

GetTitleName return the title of the field.

func (*Boolean) TitleWithoutUUID

func (f *Boolean) TitleWithoutUUID() string

Title return the title of the field.

func (*Boolean) Type

func (f *Boolean) Type() libdata.FieldType

Type return the type of the field.

type Date

type Date struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Date is the field type you can use in definition to declare a Date field.

func (*Date) DBType

func (f *Date) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Date) GetInverseField

func (f *Date) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Date) GetName

func (f *Date) GetName() string

GetName return the name of the field.

func (*Date) GetPrimaryKey

func (f *Date) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Date) GetReference

func (f *Date) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Date) GetReferenceName

func (f *Date) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Date) GetRequired

func (f *Date) GetRequired() bool

GetRequired return if this field is required or not.

func (*Date) GoType

func (f *Date) GoType() string

Type return the type of the field.

func (*Date) GraphqlSchemaType

func (f *Date) GraphqlSchemaType() string

Type return the type of the field.

func (*Date) GraphqlType

func (f *Date) GraphqlType() string

Type return the type of the field.

func (*Date) IsNested

func (f *Date) IsNested() bool

func (*Date) IsStored

func (f *Date) IsStored() bool

func (*Date) NameWithoutUUID

func (f *Date) NameWithoutUUID() string

Title return the title of the field.

func (*Date) ProtoType

func (f *Date) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Date) SetReference

func (f *Date) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Date) Snake

func (f *Date) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Date) Title

func (f *Date) Title() string

Title return the title of the field.

func (*Date) TitleWithoutUUID

func (f *Date) TitleWithoutUUID() string

Title return the title of the field.

func (*Date) Type

func (f *Date) Type() libdata.FieldType

Type return the type of the field.

type Datetime

type Datetime struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Datetime is the field type you can use in definition to declare a Datetime field.

func (*Datetime) DBType

func (f *Datetime) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Datetime) GetInverseField

func (f *Datetime) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Datetime) GetName

func (f *Datetime) GetName() string

GetName return the name of the field.

func (*Datetime) GetPrimaryKey

func (f *Datetime) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Datetime) GetReference

func (f *Datetime) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Datetime) GetReferenceName

func (f *Datetime) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Datetime) GetRequired

func (f *Datetime) GetRequired() bool

GetRequired return if this field is required or not.

func (*Datetime) GoType

func (f *Datetime) GoType() string

Type return the type of the field.

func (*Datetime) GraphqlSchemaType

func (f *Datetime) GraphqlSchemaType() string

Type return the type of the field.

func (*Datetime) GraphqlType

func (f *Datetime) GraphqlType() string

Type return the type of the field.

func (*Datetime) IsNested

func (f *Datetime) IsNested() bool

func (*Datetime) IsStored

func (f *Datetime) IsStored() bool

func (*Datetime) NameWithoutUUID

func (f *Datetime) NameWithoutUUID() string

Title return the title of the field.

func (*Datetime) ProtoType

func (f *Datetime) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Datetime) SetReference

func (f *Datetime) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Datetime) Snake

func (f *Datetime) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Datetime) Title

func (f *Datetime) Title() string

Title return the title of the field.

func (*Datetime) TitleWithoutUUID

func (f *Datetime) TitleWithoutUUID() string

Title return the title of the field.

func (*Datetime) Type

func (f *Datetime) Type() libdata.FieldType

Type return the type of the field.

type Float

type Float struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Float is the field type you can use in definition to declare a Float field.

func (*Float) DBType

func (f *Float) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Float) GetInverseField

func (f *Float) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Float) GetName

func (f *Float) GetName() string

GetName return the name of the field.

func (*Float) GetPrimaryKey

func (f *Float) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Float) GetReference

func (f *Float) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Float) GetReferenceName

func (f *Float) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Float) GetRequired

func (f *Float) GetRequired() bool

GetRequired return if this field is required or not.

func (*Float) GoType

func (f *Float) GoType() string

Type return the type of the field.

func (*Float) GraphqlSchemaType

func (f *Float) GraphqlSchemaType() string

Type return the type of the field.

func (*Float) GraphqlType

func (f *Float) GraphqlType() string

Type return the type of the field.

func (*Float) IsNested

func (f *Float) IsNested() bool

func (*Float) IsStored

func (f *Float) IsStored() bool

func (*Float) NameWithoutUUID

func (f *Float) NameWithoutUUID() string

Title return the title of the field.

func (*Float) ProtoType

func (f *Float) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Float) SetReference

func (f *Float) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Float) Snake

func (f *Float) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Float) Title

func (f *Float) Title() string

Title return the title of the field.

func (*Float) TitleWithoutUUID

func (f *Float) TitleWithoutUUID() string

Title return the title of the field.

func (*Float) Type

func (f *Float) Type() libdata.FieldType

Type return the type of the field.

type ID

type ID struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

ID is the field type you can use in definition to declare an ID field.

func (*ID) DBType

func (f *ID) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*ID) GetInverseField

func (f *ID) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*ID) GetName

func (f *ID) GetName() string

GetName return the name of the field.

func (*ID) GetPrimaryKey

func (f *ID) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*ID) GetReference

func (f *ID) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*ID) GetReferenceName

func (f *ID) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*ID) GetRequired

func (f *ID) GetRequired() bool

GetRequired return if this field is required or not.

func (*ID) GoType

func (f *ID) GoType() string

Type return the type of the field.

func (*ID) GraphqlSchemaType

func (f *ID) GraphqlSchemaType() string

Type return the type of the field.

func (*ID) GraphqlType

func (f *ID) GraphqlType() string

Type return the type of the field.

func (*ID) IsNested

func (f *ID) IsNested() bool

func (*ID) IsStored

func (f *ID) IsStored() bool

func (*ID) NameWithoutUUID

func (f *ID) NameWithoutUUID() string

Title return the title of the field.

func (*ID) ProtoType

func (f *ID) ProtoType() string

ProtoType return the protobuf type for this field.

func (*ID) SetReference

func (f *ID) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*ID) Snake

func (f *ID) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*ID) Title

func (f *ID) Title() string

Title return the title of the field.

func (*ID) TitleWithoutUUID

func (f *ID) TitleWithoutUUID() string

Title return the title of the field.

func (*ID) Type

func (f *ID) Type() libdata.FieldType

Type return the type of the field.

type Integer

type Integer struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Integer is the field type you can use in definition to declare an Integer field.

func (*Integer) DBType

func (f *Integer) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Integer) GetInverseField

func (f *Integer) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Integer) GetName

func (f *Integer) GetName() string

GetName return the name of the field.

func (*Integer) GetPrimaryKey

func (f *Integer) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Integer) GetReference

func (f *Integer) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Integer) GetReferenceName

func (f *Integer) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Integer) GetRequired

func (f *Integer) GetRequired() bool

GetRequired return if this field is required or not.

func (*Integer) GoType

func (f *Integer) GoType() string

Type return the type of the field.

func (*Integer) GraphqlSchemaType

func (f *Integer) GraphqlSchemaType() string

Type return the type of the field.

func (*Integer) GraphqlType

func (f *Integer) GraphqlType() string

Type return the type of the field.

func (*Integer) IsNested

func (f *Integer) IsNested() bool

func (*Integer) IsStored

func (f *Integer) IsStored() bool

func (*Integer) NameWithoutUUID

func (f *Integer) NameWithoutUUID() string

Title return the title of the field.

func (*Integer) ProtoType

func (f *Integer) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Integer) SetReference

func (f *Integer) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Integer) Snake

func (f *Integer) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Integer) Title

func (f *Integer) Title() string

Title return the title of the field.

func (*Integer) TitleWithoutUUID

func (f *Integer) TitleWithoutUUID() string

Title return the title of the field.

func (*Integer) Type

func (f *Integer) Type() libdata.FieldType

Type return the type of the field.

type JSON

type JSON struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

JSON is the field type you can use in definition to declare a JSON field.

func (*JSON) DBType

func (f *JSON) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*JSON) GetInverseField

func (f *JSON) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*JSON) GetName

func (f *JSON) GetName() string

GetName return the name of the field.

func (*JSON) GetPrimaryKey

func (f *JSON) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*JSON) GetReference

func (f *JSON) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*JSON) GetReferenceName

func (f *JSON) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*JSON) GetRequired

func (f *JSON) GetRequired() bool

GetRequired return if this field is required or not.

func (*JSON) GoType

func (f *JSON) GoType() string

Type return the type of the field.

func (*JSON) GraphqlSchemaType

func (f *JSON) GraphqlSchemaType() string

Type return the type of the field.

func (*JSON) GraphqlType

func (f *JSON) GraphqlType() string

Type return the type of the field.

func (*JSON) IsNested

func (f *JSON) IsNested() bool

func (*JSON) IsStored

func (f *JSON) IsStored() bool

func (*JSON) NameWithoutUUID

func (f *JSON) NameWithoutUUID() string

Title return the title of the field.

func (*JSON) ProtoType

func (f *JSON) ProtoType() string

ProtoType return the protobuf type for this field.

func (*JSON) SetReference

func (f *JSON) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*JSON) Snake

func (f *JSON) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*JSON) Title

func (f *JSON) Title() string

Title return the title of the field.

func (*JSON) TitleWithoutUUID

func (f *JSON) TitleWithoutUUID() string

Title return the title of the field.

func (*JSON) Type

func (f *JSON) Type() libdata.FieldType

Type return the type of the field.

type Many2many

type Many2many struct {
	Name                string
	String              string
	Reference           string
	ReferenceDefinition *libdata.ModelDefinition
	TitleName           string
	DBName              string
}

Many2many is the field type you can use in definition to declare a Many2many field.

func (*Many2many) DBType

func (f *Many2many) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Many2many) GetInverseField

func (f *Many2many) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Many2many) GetName

func (f *Many2many) GetName() string

GetName return the name of the field.

func (*Many2many) GetPrimaryKey

func (f *Many2many) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Many2many) GetReference

func (f *Many2many) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Many2many) GetReferenceName

func (f *Many2many) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Many2many) GetRequired

func (f *Many2many) GetRequired() bool

GetRequired return if this field is required or not.

func (*Many2many) GoType

func (f *Many2many) GoType() string

Type return the type of the field.

func (*Many2many) GraphqlSchemaType

func (f *Many2many) GraphqlSchemaType() string

Type return the type of the field.

func (*Many2many) GraphqlType

func (f *Many2many) GraphqlType() string

Type return the type of the field.

func (*Many2many) IsNested

func (f *Many2many) IsNested() bool

func (*Many2many) IsStored

func (f *Many2many) IsStored() bool

func (*Many2many) NameWithoutUUID

func (f *Many2many) NameWithoutUUID() string

Title return the title of the field.

func (*Many2many) ProtoType

func (f *Many2many) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Many2many) SetReference

func (f *Many2many) SetReference(d *libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Many2many) Snake

func (f *Many2many) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Many2many) Title

func (f *Many2many) Title() string

Title return the title of the field.

func (*Many2many) TitleWithoutUUID

func (f *Many2many) TitleWithoutUUID() string

Title return the title of the field.

func (*Many2many) Type

func (f *Many2many) Type() libdata.FieldType

Type return the type of the field.

type Many2one

type Many2one struct {
	Name                string
	String              string
	Reference           string
	ReferenceDefinition *libdata.ModelDefinition
	Required            bool
	Unique              bool
	PrimaryKey          bool
	Store               bool
	TitleName           string
	DBName              string
}

Many2one is the field type you can use in definition to declare a Many2one field.

func (*Many2one) DBType

func (f *Many2one) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Many2one) GetInverseField

func (f *Many2one) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Many2one) GetName

func (f *Many2one) GetName() string

GetName return the name of the field.

func (*Many2one) GetPrimaryKey

func (f *Many2one) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Many2one) GetReference

func (f *Many2one) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Many2one) GetReferenceName

func (f *Many2one) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Many2one) GetRequired

func (f *Many2one) GetRequired() bool

GetRequired return if this field is required or not.

func (*Many2one) GoType

func (f *Many2one) GoType() string

Type return the type of the field.

func (*Many2one) GraphqlSchemaType

func (f *Many2one) GraphqlSchemaType() string

Type return the type of the field.

func (*Many2one) GraphqlType

func (f *Many2one) GraphqlType() string

Type return the type of the field.

func (*Many2one) IsNested

func (f *Many2one) IsNested() bool

func (*Many2one) IsStored

func (f *Many2one) IsStored() bool

func (*Many2one) NameWithoutUUID

func (f *Many2one) NameWithoutUUID() string

Title return the title of the field.

func (*Many2one) ProtoType

func (f *Many2one) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Many2one) SetReference

func (f *Many2one) SetReference(d *libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Many2one) Snake

func (f *Many2one) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Many2one) Title

func (f *Many2one) Title() string

Title return the title of the field.

func (*Many2one) TitleWithoutUUID

func (f *Many2one) TitleWithoutUUID() string

Title return the title of the field.

func (*Many2one) Type

func (f *Many2one) Type() libdata.FieldType

Type return the type of the field.

type One2many

type One2many struct {
	Name                string
	String              string
	Reference           string
	ReferenceDefinition *libdata.ModelDefinition
	InverseField        string
	TitleName           string
	DBName              string
}

One2many is the field type you can use in definition to declare a One2many field.

func (*One2many) DBType

func (f *One2many) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*One2many) GetInverseField

func (f *One2many) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*One2many) GetName

func (f *One2many) GetName() string

GetName return the name of the field.

func (*One2many) GetPrimaryKey

func (f *One2many) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*One2many) GetReference

func (f *One2many) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*One2many) GetReferenceName

func (f *One2many) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*One2many) GetRequired

func (f *One2many) GetRequired() bool

GetRequired return if this field is required or not.

func (*One2many) GoType

func (f *One2many) GoType() string

Type return the type of the field.

func (*One2many) GraphqlSchemaType

func (f *One2many) GraphqlSchemaType() string

Type return the type of the field.

func (*One2many) GraphqlType

func (f *One2many) GraphqlType() string

Type return the type of the field.

func (*One2many) IsNested

func (f *One2many) IsNested() bool

func (*One2many) IsStored

func (f *One2many) IsStored() bool

func (*One2many) NameWithoutUUID

func (f *One2many) NameWithoutUUID() string

Title return the title of the field.

func (*One2many) ProtoType

func (f *One2many) ProtoType() string

ProtoType return the protobuf type for this field.

func (*One2many) SetReference

func (f *One2many) SetReference(d *libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*One2many) Snake

func (f *One2many) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*One2many) Title

func (f *One2many) Title() string

Title return the title of the field.

func (*One2many) TitleWithoutUUID

func (f *One2many) TitleWithoutUUID() string

Title return the title of the field.

func (*One2many) Type

func (f *One2many) Type() libdata.FieldType

Type return the type of the field.

type Text

type Text struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
}

Text is the field type you can use in definition to declare a Text field.

func (*Text) DBType

func (f *Text) DBType() *libdata.DBType

ProtoType return the protobuf type for this field.

func (*Text) GetInverseField

func (f *Text) GetInverseField() string

GetInverseField return the inverse field, if applicable.

func (*Text) GetName

func (f *Text) GetName() string

GetName return the name of the field.

func (*Text) GetPrimaryKey

func (f *Text) GetPrimaryKey() bool

GetPrimaryKey return if this field is a primary key or not.

func (*Text) GetReference

func (f *Text) GetReference() *libdata.ModelDefinition

GetReferenceDefinition return the definition of referenced model, if this field is linked to another model.

func (*Text) GetReferenceName

func (f *Text) GetReferenceName() string

GetReference return the name of referenced model, if this field is linked to another model.

func (*Text) GetRequired

func (f *Text) GetRequired() bool

GetRequired return if this field is required or not.

func (*Text) GoType

func (f *Text) GoType() string

Type return the type of the field.

func (*Text) GraphqlSchemaType

func (f *Text) GraphqlSchemaType() string

Type return the type of the field.

func (*Text) GraphqlType

func (f *Text) GraphqlType() string

Type return the type of the field.

func (*Text) IsNested

func (f *Text) IsNested() bool

func (*Text) IsStored

func (f *Text) IsStored() bool

func (*Text) NameWithoutUUID

func (f *Text) NameWithoutUUID() string

Title return the title of the field.

func (*Text) ProtoType

func (f *Text) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Text) SetReference

func (f *Text) SetReference(*libdata.ModelDefinition)

SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.

func (*Text) Snake

func (f *Text) Snake() string

Snake return the name of the field, in snake_case. This is essentially used for database.

func (*Text) Title

func (f *Text) Title() string

Title return the title of the field.

func (*Text) TitleWithoutUUID

func (f *Text) TitleWithoutUUID() string

Title return the title of the field.

func (*Text) Type

func (f *Text) Type() libdata.FieldType

Type return the type of the field.

Jump to

Keyboard shortcuts

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