properties

package
v0.0.0-...-ec57856 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryPropertyType = libdomain.PropertyType("BinaryType")

JSONPropertyType contains the field type for JSON

View Source
const BooleanPropertyType = libdomain.PropertyType("BooleanType")

BooleanPropertyType contains the field type for Boolean

View Source
const DatePropertyType = libdomain.PropertyType("DateType")

DatePropertyType contains the field type for Date

View Source
const DatetimePropertyType = libdomain.PropertyType("DatetimeType")

DatetimePropertyType contains the field type for Datetime

View Source
const FloatPropertyType = libdomain.PropertyType("FloatType")

FloatPropertyType contains the field type for Float

View Source
const IDPropertyType = libdomain.PropertyType("IDType")

IDPropertyType contains the field type for ID

View Source
const IntegerPropertyType = libdomain.PropertyType("IntegerType")

IntegerPropertyType contains the field type for Interger

View Source
const JSONPropertyType = libdomain.PropertyType("JSONType")

JSONPropertyType contains the field type for JSON

View Source
const Many2manyPropertyType = libdomain.PropertyType("Many2manyType")

Many2manyPropertyType contains the field type for Many2many

View Source
const Many2onePropertyType = libdomain.PropertyType("Many2oneType")

Many2onePropertyType contains the field type for Many2one

View Source
const One2manyPropertyType = libdomain.PropertyType("One2manyType")

One2manyPropertyType contains the field type for One2many

View Source
const TextPropertyType = libdomain.PropertyType("TextType")

TextPropertyType contains the field type for Text

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Name       string
	String     string
	Required   bool
	Unique     bool
	PrimaryKey bool
	Store      bool
	TitleName  string
	DBName     string
	Position   int
}

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

func (*Binary) DBType

func (f *Binary) DBType() *libdomain.DBType

ProtoType return the protobuf type for this field.

func (*Binary) GetInverseProperty

func (f *Binary) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Binary) GetName

func (f *Binary) GetName() string

GetName return the name of the field.

func (*Binary) GetPosition

func (f *Binary) GetPosition() int

func (*Binary) GetPrimaryKey

func (f *Binary) GetPrimaryKey() bool

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

func (*Binary) GetReference

func (f *Binary) GetReference() libdomain.TableInterface

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

func (*Binary) GetReferenceName

func (f *Binary) GetReferenceName() string

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

func (*Binary) GetRequired

func (f *Binary) GetRequired() bool

GetRequired return if this field is required or not.

func (*Binary) GoNil

func (f *Binary) GoNil() string

Type return the type of the field.

func (*Binary) GoType

func (f *Binary) GoType() string

Type return the type of the field.

func (*Binary) GraphqlSchemaType

func (f *Binary) GraphqlSchemaType() string

Type return the type of the field.

func (*Binary) GraphqlType

func (f *Binary) GraphqlType() string

Type return the type of the field.

func (*Binary) IsNested

func (f *Binary) IsNested() bool

func (*Binary) IsRepeated

func (r *Binary) IsRepeated() bool

func (*Binary) IsStored

func (f *Binary) IsStored() bool

func (*Binary) IsTranslatable

func (r *Binary) IsTranslatable() bool

func (*Binary) JSONType

func (f *Binary) JSONType() string

Type return the type of the field.

func (*Binary) NameWithoutID

func (f *Binary) NameWithoutID() string

Title return the title of the field.

func (*Binary) ProtoType

func (f *Binary) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Binary) ProtoTypeOptional

func (f *Binary) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Binary) SetPosition

func (f *Binary) SetPosition(position int)

func (*Binary) SetReference

func (f *Binary) SetReference(libdomain.TableInterface)

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

func (*Binary) Snake

func (f *Binary) Snake() string

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

func (*Binary) Title

func (f *Binary) Title() string

Title return the title of the field.

func (*Binary) TitleWithoutID

func (f *Binary) TitleWithoutID() string

Title return the title of the field.

func (*Binary) Type

func (f *Binary) Type() libdomain.PropertyType

Type return the type of the field.

type Boolean

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

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

func (*Boolean) DBType

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

ProtoType return the protobuf type for this field.

func (*Boolean) GetInverseProperty

func (f *Boolean) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Boolean) GetName

func (f *Boolean) GetName() string

GetName return the name of the field.

func (*Boolean) GetPosition

func (f *Boolean) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Boolean) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Boolean) IsRepeated() bool

func (*Boolean) IsStored

func (f *Boolean) IsStored() bool

func (*Boolean) IsTranslatable

func (r *Boolean) IsTranslatable() bool

func (*Boolean) JSONType

func (f *Boolean) JSONType() string

Type return the type of the field.

func (*Boolean) NameWithoutID

func (f *Boolean) NameWithoutID() 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) ProtoTypeOptional

func (f *Boolean) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Boolean) SetPosition

func (f *Boolean) SetPosition(position int)

func (*Boolean) SetReference

func (f *Boolean) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Boolean) TitleWithoutID() string

Title return the title of the field.

func (*Boolean) Type

func (f *Boolean) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*Date) DBType

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

ProtoType return the protobuf type for this field.

func (*Date) GetInverseProperty

func (f *Date) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Date) GetName

func (f *Date) GetName() string

GetName return the name of the field.

func (*Date) GetPosition

func (f *Date) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Date) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Date) IsRepeated() bool

func (*Date) IsStored

func (f *Date) IsStored() bool

func (*Date) IsTranslatable

func (r *Date) IsTranslatable() bool

func (*Date) JSONType

func (f *Date) JSONType() string

Type return the type of the field.

func (*Date) NameWithoutID

func (f *Date) NameWithoutID() 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) ProtoTypeOptional

func (f *Date) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Date) SetPosition

func (f *Date) SetPosition(position int)

func (*Date) SetReference

func (f *Date) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Date) TitleWithoutID() string

Title return the title of the field.

func (*Date) Type

func (f *Date) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*Datetime) DBType

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

ProtoType return the protobuf type for this field.

func (*Datetime) GetInverseProperty

func (f *Datetime) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Datetime) GetName

func (f *Datetime) GetName() string

GetName return the name of the field.

func (*Datetime) GetPosition

func (f *Datetime) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Datetime) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Datetime) IsRepeated() bool

func (*Datetime) IsStored

func (f *Datetime) IsStored() bool

func (*Datetime) IsTranslatable

func (r *Datetime) IsTranslatable() bool

func (*Datetime) JSONType

func (f *Datetime) JSONType() string

Type return the type of the field.

func (*Datetime) NameWithoutID

func (f *Datetime) NameWithoutID() 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) ProtoTypeOptional

func (f *Datetime) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Datetime) SetPosition

func (f *Datetime) SetPosition(position int)

func (*Datetime) SetReference

func (f *Datetime) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Datetime) TitleWithoutID() string

Title return the title of the field.

func (*Datetime) Type

func (f *Datetime) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*Float) DBType

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

ProtoType return the protobuf type for this field.

func (*Float) GetInverseProperty

func (f *Float) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Float) GetName

func (f *Float) GetName() string

GetName return the name of the field.

func (*Float) GetPosition

func (f *Float) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Float) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Float) IsRepeated() bool

func (*Float) IsStored

func (f *Float) IsStored() bool

func (*Float) IsTranslatable

func (r *Float) IsTranslatable() bool

func (*Float) JSONType

func (f *Float) JSONType() string

Type return the type of the field.

func (*Float) NameWithoutID

func (f *Float) NameWithoutID() 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) ProtoTypeOptional

func (f *Float) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Float) SetPosition

func (f *Float) SetPosition(position int)

func (*Float) SetReference

func (f *Float) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Float) TitleWithoutID() string

Title return the title of the field.

func (*Float) Type

func (f *Float) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*ID) DBType

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

ProtoType return the protobuf type for this field.

func (*ID) GetInverseProperty

func (f *ID) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*ID) GetName

func (f *ID) GetName() string

GetName return the name of the field.

func (*ID) GetPosition

func (f *ID) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *ID) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *ID) IsRepeated() bool

func (*ID) IsStored

func (f *ID) IsStored() bool

func (*ID) IsTranslatable

func (r *ID) IsTranslatable() bool

func (*ID) JSONType

func (f *ID) JSONType() string

Type return the type of the field.

func (*ID) NameWithoutID

func (f *ID) NameWithoutID() 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) ProtoTypeOptional

func (f *ID) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*ID) SetPosition

func (f *ID) SetPosition(position int)

func (*ID) SetReference

func (f *ID) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *ID) TitleWithoutID() string

Title return the title of the field.

func (*ID) Type

func (f *ID) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*Integer) DBType

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

ProtoType return the protobuf type for this field.

func (*Integer) GetInverseProperty

func (f *Integer) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Integer) GetName

func (f *Integer) GetName() string

GetName return the name of the field.

func (*Integer) GetPosition

func (f *Integer) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Integer) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Integer) IsRepeated() bool

func (*Integer) IsStored

func (f *Integer) IsStored() bool

func (*Integer) IsTranslatable

func (r *Integer) IsTranslatable() bool

func (*Integer) JSONType

func (f *Integer) JSONType() string

Type return the type of the field.

func (*Integer) NameWithoutID

func (f *Integer) NameWithoutID() 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) ProtoTypeOptional

func (f *Integer) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Integer) SetPosition

func (f *Integer) SetPosition(position int)

func (*Integer) SetReference

func (f *Integer) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Integer) TitleWithoutID() string

Title return the title of the field.

func (*Integer) Type

func (f *Integer) Type() libdomain.PropertyType

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
	Position   int
}

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

func (*JSON) DBType

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

ProtoType return the protobuf type for this field.

func (*JSON) GetInverseProperty

func (f *JSON) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*JSON) GetName

func (f *JSON) GetName() string

GetName return the name of the field.

func (*JSON) GetPosition

func (f *JSON) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *JSON) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *JSON) IsRepeated() bool

func (*JSON) IsStored

func (f *JSON) IsStored() bool

func (*JSON) IsTranslatable

func (r *JSON) IsTranslatable() bool

func (*JSON) JSONType

func (f *JSON) JSONType() string

Type return the type of the field.

func (*JSON) NameWithoutID

func (f *JSON) NameWithoutID() 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) ProtoTypeOptional

func (f *JSON) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*JSON) SetPosition

func (f *JSON) SetPosition(position int)

func (*JSON) SetReference

func (f *JSON) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *JSON) TitleWithoutID() string

Title return the title of the field.

func (*JSON) Type

func (f *JSON) Type() libdomain.PropertyType

Type return the type of the field.

type Many2many

type Many2many struct {
	Name                string
	String              string
	Reference           string
	ReferenceDefinition libdomain.TableInterface
	Relation            string
	InverseProperty     string
	TargetProperty      string
	OnDelete            libdomain.OnDeleteValue
	// ValueObject         *libdomain.ValueObjectDefinition
	TitleName string
	DBName    string
	Position  int
}

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

func (*Many2many) DBType

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

ProtoType return the protobuf type for this field.

func (*Many2many) GetInverseProperty

func (f *Many2many) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2many) GetName

func (f *Many2many) GetName() string

GetName return the name of the field.

func (*Many2many) GetPosition

func (f *Many2many) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Many2many) GoNil() string

Type return the type of the field.

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) InverseSnake

func (f *Many2many) InverseSnake() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2many) InverseTitle

func (f *Many2many) InverseTitle() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2many) IsNested

func (f *Many2many) IsNested() bool

func (*Many2many) IsRepeated

func (r *Many2many) IsRepeated() bool

func (*Many2many) IsStored

func (f *Many2many) IsStored() bool

func (*Many2many) IsTranslatable

func (r *Many2many) IsTranslatable() bool

func (*Many2many) JSONType

func (f *Many2many) JSONType() string

Type return the type of the field.

func (*Many2many) NameWithoutID

func (f *Many2many) NameWithoutID() 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) ProtoTypeOptional

func (f *Many2many) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Many2many) RelationTitle

func (f *Many2many) RelationTitle() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2many) SetPosition

func (f *Many2many) SetPosition(position int)

func (*Many2many) SetReference

func (f *Many2many) SetReference(d libdomain.TableInterface)

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) TargetTitle

func (f *Many2many) TargetTitle() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2many) Title

func (f *Many2many) Title() string

Title return the title of the field.

func (*Many2many) TitleWithoutID

func (f *Many2many) TitleWithoutID() string

Title return the title of the field.

func (*Many2many) Type

func (f *Many2many) Type() libdomain.PropertyType

Type return the type of the field.

type Many2one

type Many2one struct {
	Name                string
	String              string
	Reference           string
	ReferenceDefinition libdomain.TableInterface
	ReferencePrefix     string
	ReferencePath       string
	Required            bool
	Unique              bool
	OnDelete            libdomain.OnDeleteValue
	PrimaryKey          bool
	Store               bool
	TitleName           string
	DBName              string
	Position            int
}

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

func (*Many2one) DBType

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

ProtoType return the protobuf type for this field.

func (*Many2one) GetInverseProperty

func (f *Many2one) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Many2one) GetName

func (f *Many2one) GetName() string

GetName return the name of the field.

func (*Many2one) GetPosition

func (f *Many2one) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Many2one) GoNil() string

Type return the type of the field.

func (*Many2one) GoType

func (f *Many2one) GoType() string

Type return the type of the field.

func (*Many2one) GoTypeWithPath

func (f *Many2one) GoTypeWithPath() 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) IsRepeated

func (r *Many2one) IsRepeated() bool

func (*Many2one) IsStored

func (f *Many2one) IsStored() bool

func (*Many2one) IsTranslatable

func (r *Many2one) IsTranslatable() bool

func (*Many2one) JSONType

func (f *Many2one) JSONType() string

Type return the type of the field.

func (*Many2one) NameWithoutID

func (f *Many2one) NameWithoutID() 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) ProtoTypeOptional

func (f *Many2one) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Many2one) SetPosition

func (f *Many2one) SetPosition(position int)

func (*Many2one) SetReference

func (f *Many2one) SetReference(d libdomain.TableInterface)

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) TitleWithoutID

func (f *Many2one) TitleWithoutID() string

Title return the title of the field.

func (*Many2one) Type

func (f *Many2one) Type() libdomain.PropertyType

Type return the type of the field.

type One2many

type One2many struct {
	Name            string
	String          string
	Child           string
	ChildDefinition libdomain.TableInterface
	InverseProperty string
	TitleName       string
	DBName          string
	Position        int
}

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

func (*One2many) DBType

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

ProtoType return the protobuf type for this field.

func (*One2many) GetInverseProperty

func (f *One2many) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*One2many) GetName

func (f *One2many) GetName() string

GetName return the name of the field.

func (*One2many) GetPosition

func (f *One2many) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *One2many) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *One2many) IsRepeated() bool

func (*One2many) IsStored

func (f *One2many) IsStored() bool

func (*One2many) IsTranslatable

func (r *One2many) IsTranslatable() bool

func (*One2many) JSONType

func (f *One2many) JSONType() string

Type return the type of the field.

func (*One2many) NameWithoutID

func (f *One2many) NameWithoutID() 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) ProtoTypeOptional

func (f *One2many) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*One2many) SetPosition

func (f *One2many) SetPosition(position int)

func (*One2many) SetReference

func (f *One2many) SetReference(d libdomain.TableInterface)

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) TitleWithoutID

func (f *One2many) TitleWithoutID() string

Title return the title of the field.

func (*One2many) Type

func (f *One2many) Type() libdomain.PropertyType

Type return the type of the field.

type Text

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

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

func (*Text) DBType

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

ProtoType return the protobuf type for this field.

func (*Text) GetInverseProperty

func (f *Text) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Text) GetName

func (f *Text) GetName() string

GetName return the name of the field.

func (*Text) GetPosition

func (f *Text) GetPosition() int

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() libdomain.TableInterface

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) GoNil

func (f *Text) GoNil() string

Type return the type of the field.

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) IsRepeated

func (r *Text) IsRepeated() bool

func (*Text) IsStored

func (f *Text) IsStored() bool

func (*Text) IsTranslatable

func (r *Text) IsTranslatable() bool

func (*Text) JSONType

func (f *Text) JSONType() string

Type return the type of the field.

func (*Text) NameWithoutID

func (f *Text) NameWithoutID() 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) ProtoTypeOptional

func (f *Text) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Text) SetPosition

func (f *Text) SetPosition(position int)

func (*Text) SetReference

func (f *Text) SetReference(libdomain.TableInterface)

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) TitleWithoutID

func (f *Text) TitleWithoutID() string

Title return the title of the field.

func (*Text) Type

func (f *Text) Type() libdomain.PropertyType

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