properties

package
v0.0.0-...-f7eb5ff Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

JSONPropertyType contains the field type for JSON

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

BooleanPropertyType contains the field type for Boolean

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

DatePropertyType contains the field type for Date

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

DatetimePropertyType contains the field type for Datetime

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

FloatPropertyType contains the field type for Float

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

IDPropertyType contains the field type for ID

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

IntegerPropertyType contains the field type for Interger

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

JSONPropertyType contains the field type for JSON

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

Many2manyPropertyType contains the field type for Many2many

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

Many2onePropertyType contains the field type for Many2one

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

One2manyPropertyType contains the field type for One2many

View Source
const SelectionPropertyType = libtranslator.PropertyType("SelectionType")

TextPropertyType contains the field type for Text

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

TextPropertyType contains the field type for Text

View Source
const UploadPropertyType = libtranslator.PropertyType("UploadType")

UploadPropertyType contains the field type for Upload

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

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

func (*Binary) DBType

func (f *Binary) DBType() *libtranslator.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) GetLoadedPosition

func (r *Binary) GetLoadedPosition() int

func (*Binary) GetLoadedPositionMany2one

func (r *Binary) GetLoadedPositionMany2one() int

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

func (r *Binary) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Binary) GetReturnDetailsInTests() bool

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

func (f *Binary) GoTypeID() 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) ProtoTypeArg

func (f *Binary) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*Binary) Upper

func (f *Binary) Upper() string

type Boolean

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

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

func (*Boolean) DBType

func (f *Boolean) DBType() *libtranslator.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) GetLoadedPosition

func (r *Boolean) GetLoadedPosition() int

func (*Boolean) GetLoadedPositionMany2one

func (r *Boolean) GetLoadedPositionMany2one() int

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

func (r *Boolean) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Boolean) GetReturnDetailsInTests() bool

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

func (f *Boolean) GoTypeID() 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) ProtoTypeArg

func (f *Boolean) ProtoTypeArg() string

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(libtranslator.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

Type return the type of the field.

func (*Boolean) Upper

func (f *Boolean) Upper() string

type Date

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

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

func (*Date) DBType

func (f *Date) DBType() *libtranslator.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) GetLoadedPosition

func (r *Date) GetLoadedPosition() int

func (*Date) GetLoadedPositionMany2one

func (r *Date) GetLoadedPositionMany2one() int

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

func (r *Date) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Date) GetReturnDetailsInTests() bool

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

func (f *Date) GoTypeID() 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) ProtoTypeArg

func (f *Date) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*Date) Upper

func (f *Date) Upper() string

type Datetime

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

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

func (*Datetime) DBType

func (f *Datetime) DBType() *libtranslator.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) GetLoadedPosition

func (r *Datetime) GetLoadedPosition() int

func (*Datetime) GetLoadedPositionMany2one

func (r *Datetime) GetLoadedPositionMany2one() int

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

func (r *Datetime) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Datetime) GetReturnDetailsInTests() bool

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

func (f *Datetime) GoTypeID() 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) ProtoTypeArg

func (f *Datetime) ProtoTypeArg() string

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(libtranslator.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

Type return the type of the field.

func (*Datetime) Upper

func (f *Datetime) Upper() string

type Float

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

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

func (*Float) DBType

func (f *Float) DBType() *libtranslator.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) GetLoadedPosition

func (r *Float) GetLoadedPosition() int

func (*Float) GetLoadedPositionMany2one

func (r *Float) GetLoadedPositionMany2one() int

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

func (r *Float) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Float) GetReturnDetailsInTests() bool

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

func (f *Float) GoTypeID() 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) ProtoTypeArg

func (f *Float) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*Float) Upper

func (f *Float) Upper() string

type ID

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

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

func (*ID) DBType

func (f *ID) DBType() *libtranslator.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) GetLoadedPosition

func (r *ID) GetLoadedPosition() int

func (*ID) GetLoadedPositionMany2one

func (r *ID) GetLoadedPositionMany2one() int

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

func (r *ID) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *ID) GetReturnDetailsInTests() bool

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

func (f *ID) GoTypeID() 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) ProtoTypeArg

func (f *ID) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*ID) Upper

func (f *ID) Upper() string

type Integer

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

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

func (*Integer) DBType

func (f *Integer) DBType() *libtranslator.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) GetLoadedPosition

func (r *Integer) GetLoadedPosition() int

func (*Integer) GetLoadedPositionMany2one

func (r *Integer) GetLoadedPositionMany2one() int

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

func (r *Integer) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Integer) GetReturnDetailsInTests() bool

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

func (f *Integer) GoTypeID() 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) ProtoTypeArg

func (f *Integer) ProtoTypeArg() string

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(libtranslator.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

Type return the type of the field.

func (*Integer) Upper

func (f *Integer) Upper() string

type JSON

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

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

func (*JSON) DBType

func (f *JSON) DBType() *libtranslator.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) GetLoadedPosition

func (r *JSON) GetLoadedPosition() int

func (*JSON) GetLoadedPositionMany2one

func (r *JSON) GetLoadedPositionMany2one() int

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

func (r *JSON) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *JSON) GetReturnDetailsInTests() bool

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

func (f *JSON) GoTypeID() 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) ProtoTypeArg

func (f *JSON) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*JSON) Upper

func (f *JSON) Upper() string

type Many2many

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

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

func (*Many2many) DBType

func (f *Many2many) DBType() *libtranslator.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) GetLoadedPosition

func (r *Many2many) GetLoadedPosition() int

func (*Many2many) GetLoadedPositionMany2one

func (r *Many2many) GetLoadedPositionMany2one() int

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

func (r *Many2many) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Many2many) GetReturnDetailsInTests() bool

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

func (f *Many2many) GoTypeID() 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) InverseUpper

func (f *Many2many) InverseUpper() 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) ProtoTypeArg

func (f *Many2many) ProtoTypeArg() string

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

func (f *Many2many) RelationUpper() 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 libtranslator.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) TargetSnake

func (f *Many2many) TargetSnake() string

GetInverseProperty return the inverse field, if applicable.

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

Type return the type of the field.

func (*Many2many) Upper

func (f *Many2many) Upper() string

type Many2one

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

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

func (*Many2one) DBType

func (f *Many2one) DBType() *libtranslator.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) GetLoadedPosition

func (r *Many2one) GetLoadedPosition() int

func (*Many2one) GetLoadedPositionMany2one

func (r *Many2one) GetLoadedPositionMany2one() int

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

func (r *Many2one) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Many2one) GetReturnDetailsInTests() bool

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

func (f *Many2one) GoTypeID() 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) ProtoTypeArg

func (f *Many2one) ProtoTypeArg() string

func (*Many2one) ProtoTypeOptional

func (f *Many2one) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Many2one) ProtoTypeOptionalArg

func (f *Many2one) ProtoTypeOptionalArg() 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 libtranslator.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

Type return the type of the field.

func (*Many2one) Upper

func (f *Many2one) Upper() string

type One2many

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

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

func (*One2many) DBType

func (f *One2many) DBType() *libtranslator.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) GetLoadedPosition

func (r *One2many) GetLoadedPosition() int

func (*One2many) GetLoadedPositionMany2one

func (r *One2many) GetLoadedPositionMany2one() int

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

func (r *One2many) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *One2many) GetReturnDetailsInTests() bool

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

func (f *One2many) GoTypeID() 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) InversePropertySnake

func (f *One2many) InversePropertySnake() string

GetInverseProperty return the inverse field, if applicable.

func (*One2many) InversePropertyUpper

func (f *One2many) InversePropertyUpper() string

GetInverseProperty return the inverse field, if applicable.

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

func (f *One2many) ProtoTypeArg() string

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 libtranslator.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

Type return the type of the field.

func (*One2many) Upper

func (f *One2many) Upper() string

type Selection

type Selection struct {
	Name                string
	String              string
	Enum                string
	Required            bool
	Translatable        bool
	TranslatableOptions *TranslatableOptions
	Unique              bool
	PrimaryKey          bool
	Store               bool
	TitleName           string
	DBName              string
	LoadedPosition      int
	Position            int
}

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

func (*Selection) DBType

func (f *Selection) DBType() *libtranslator.DBType

ProtoType return the protobuf type for this field.

func (*Selection) EnumTitle

func (f *Selection) EnumTitle() string

Title return the title of the field.

func (*Selection) GetInverseProperty

func (f *Selection) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Selection) GetLoadedPosition

func (r *Selection) GetLoadedPosition() int

func (*Selection) GetLoadedPositionMany2one

func (r *Selection) GetLoadedPositionMany2one() int

func (*Selection) GetName

func (f *Selection) GetName() string

GetName return the name of the field.

func (*Selection) GetPosition

func (f *Selection) GetPosition() int

func (*Selection) GetPositionMany2one

func (r *Selection) GetPositionMany2one() int

func (*Selection) GetPrimaryKey

func (f *Selection) GetPrimaryKey() bool

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

func (*Selection) GetReference

func (f *Selection) GetReference() libtranslator.TableInterface

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

func (*Selection) GetReferenceName

func (f *Selection) GetReferenceName() string

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

func (*Selection) GetRequired

func (f *Selection) GetRequired() bool

GetRequired return if this field is required or not.

func (*Selection) GetReturnDetailsInTests

func (r *Selection) GetReturnDetailsInTests() bool

func (*Selection) GoNil

func (f *Selection) GoNil() string

Type return the type of the field.

func (*Selection) GoType

func (f *Selection) GoType() string

Type return the type of the field.

func (*Selection) GoTypeID

func (f *Selection) GoTypeID() string

Type return the type of the field.

func (*Selection) GraphqlSchemaType

func (f *Selection) GraphqlSchemaType() string

Type return the type of the field.

func (*Selection) GraphqlType

func (f *Selection) GraphqlType() string

Type return the type of the field.

func (*Selection) IsNested

func (f *Selection) IsNested() bool

func (*Selection) IsRepeated

func (r *Selection) IsRepeated() bool

func (*Selection) IsStored

func (f *Selection) IsStored() bool

func (*Selection) IsTranslatable

func (r *Selection) IsTranslatable() bool

func (*Selection) JSONType

func (f *Selection) JSONType() string

Type return the type of the field.

func (*Selection) NameWithoutID

func (f *Selection) NameWithoutID() string

Title return the title of the field.

func (*Selection) ProtoType

func (f *Selection) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Selection) ProtoTypeArg

func (f *Selection) ProtoTypeArg() string

func (*Selection) ProtoTypeOptional

func (f *Selection) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Selection) SetPosition

func (f *Selection) SetPosition(position int)

func (*Selection) SetReference

func (f *Selection) SetReference(libtranslator.TableInterface)

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

func (*Selection) Snake

func (f *Selection) Snake() string

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

func (*Selection) Title

func (f *Selection) Title() string

Title return the title of the field.

func (*Selection) TitleWithoutID

func (f *Selection) TitleWithoutID() string

Title return the title of the field.

func (*Selection) Type

Type return the type of the field.

func (*Selection) Upper

func (f *Selection) Upper() string

type Text

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

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

func (*Text) DBType

func (f *Text) DBType() *libtranslator.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) GetLoadedPosition

func (r *Text) GetLoadedPosition() int

func (*Text) GetLoadedPositionMany2one

func (r *Text) GetLoadedPositionMany2one() int

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

func (r *Text) GetPositionMany2one() 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() libtranslator.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) GetReturnDetailsInTests

func (r *Text) GetReturnDetailsInTests() bool

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

func (f *Text) GoTypeID() 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) ProtoTypeArg

func (f *Text) ProtoTypeArg() string

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(libtranslator.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() libtranslator.PropertyType

Type return the type of the field.

func (*Text) Upper

func (f *Text) Upper() string

type TranslatableOptions

type TranslatableOptions struct {
	LoadedPosition int
	Position       int
}

type Upload

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

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

func (*Upload) DBType

func (f *Upload) DBType() *libtranslator.DBType

ProtoType return the protobuf type for this field.

func (*Upload) GetInverseProperty

func (f *Upload) GetInverseProperty() string

GetInverseProperty return the inverse field, if applicable.

func (*Upload) GetLoadedPosition

func (r *Upload) GetLoadedPosition() int

func (*Upload) GetLoadedPositionMany2one

func (r *Upload) GetLoadedPositionMany2one() int

func (*Upload) GetName

func (f *Upload) GetName() string

GetName return the name of the field.

func (*Upload) GetPosition

func (f *Upload) GetPosition() int

func (*Upload) GetPositionMany2one

func (r *Upload) GetPositionMany2one() int

func (*Upload) GetPrimaryKey

func (f *Upload) GetPrimaryKey() bool

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

func (*Upload) GetReference

func (f *Upload) GetReference() libtranslator.TableInterface

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

func (*Upload) GetReferenceName

func (f *Upload) GetReferenceName() string

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

func (*Upload) GetRequired

func (f *Upload) GetRequired() bool

GetRequired return if this field is required or not.

func (*Upload) GetReturnDetailsInTests

func (r *Upload) GetReturnDetailsInTests() bool

func (*Upload) GoNil

func (f *Upload) GoNil() string

Type return the type of the field.

func (*Upload) GoType

func (f *Upload) GoType() string

Type return the type of the field.

func (*Upload) GoTypeID

func (f *Upload) GoTypeID() string

Type return the type of the field.

func (*Upload) GraphqlSchemaType

func (f *Upload) GraphqlSchemaType() string

Type return the type of the field.

func (*Upload) GraphqlType

func (f *Upload) GraphqlType() string

Type return the type of the field.

func (*Upload) IsNested

func (f *Upload) IsNested() bool

func (*Upload) IsRepeated

func (r *Upload) IsRepeated() bool

func (*Upload) IsStored

func (f *Upload) IsStored() bool

func (*Upload) IsTranslatable

func (r *Upload) IsTranslatable() bool

func (*Upload) JSONType

func (f *Upload) JSONType() string

Type return the type of the field.

func (*Upload) NameWithoutID

func (f *Upload) NameWithoutID() string

Title return the title of the field.

func (*Upload) ProtoType

func (f *Upload) ProtoType() string

ProtoType return the protobuf type for this field.

func (*Upload) ProtoTypeArg

func (f *Upload) ProtoTypeArg() string

func (*Upload) ProtoTypeOptional

func (f *Upload) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*Upload) SetPosition

func (f *Upload) SetPosition(position int)

func (*Upload) SetReference

func (f *Upload) SetReference(libtranslator.TableInterface)

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

func (*Upload) Snake

func (f *Upload) Snake() string

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

func (*Upload) Title

func (f *Upload) Title() string

Title return the title of the field.

func (*Upload) TitleWithoutID

func (f *Upload) TitleWithoutID() string

Title return the title of the field.

func (*Upload) Type

func (f *Upload) Type() libtranslator.PropertyType

Type return the type of the field.

func (*Upload) Upper

func (f *Upload) Upper() string

Jump to

Keyboard shortcuts

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