properties

package
v0.0.0-...-86f8a73 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

JSONPropertyType contains the field type for JSON

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

BooleanPropertyType contains the field type for Boolean

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

DatePropertyType contains the field type for Date

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

DatetimePropertyType contains the field type for Datetime

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

FloatPropertyType contains the field type for Float

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

IntegerPropertyType contains the field type for Interger

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

JSONPropertyType contains the field type for JSON

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

Many2manyPropertyType contains the field type for Many2many

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

Many2onePropertyType contains the field type for Many2one

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

One2manyPropertyType contains the field type for One2many

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

TextPropertyType contains the field type for Text

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

TextPropertyType contains the field type for Text

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryDefinition

type BinaryDefinition struct {
	*properties.BinaryDefinition
	*PersistenceOptions
}

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

func Binary

func Binary(name string, required bool, position int, loadedPosition int, options *properties.BinaryOptions, persistenceOptions *PersistenceOptions) *BinaryDefinition

func (*BinaryDefinition) DBType

func (f *BinaryDefinition) DBType() *libpersistence.DBType

func (*BinaryDefinition) Type

Type return the type of the field.

type BooleanDefinition

type BooleanDefinition struct {
	*properties.BooleanDefinition
	*PersistenceOptions
}

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

func Boolean

func Boolean(name string, required bool, position int, loadedPosition int, options *properties.BooleanOptions, persistenceOptions *PersistenceOptions) *BooleanDefinition

func (*BooleanDefinition) DBType

func (*BooleanDefinition) DiffTypeInterface

func (f *BooleanDefinition) DiffTypeInterface() string

func (*BooleanDefinition) Type

type DateDefinition

type DateDefinition struct {
	*properties.DateDefinition
	*PersistenceOptions
}

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

func Date

func Date(name string, required bool, position int, loadedPosition int, options *properties.DateOptions, persistenceOptions *PersistenceOptions) *DateDefinition

func (*DateDefinition) DBType

func (f *DateDefinition) DBType() *libpersistence.DBType

func (*DateDefinition) DiffTypeInterface

func (f *DateDefinition) DiffTypeInterface() string

func (*DateDefinition) Type

Type return the type of the field.

type DatetimeDefinition

type DatetimeDefinition struct {
	*properties.DatetimeDefinition
	*PersistenceOptions
}

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

func Datetime

func Datetime(name string, required bool, position int, loadedPosition int, options *properties.DatetimeOptions, persistenceOptions *PersistenceOptions) *DatetimeDefinition

func (*DatetimeDefinition) DBType

func (*DatetimeDefinition) DiffTypeInterface

func (f *DatetimeDefinition) DiffTypeInterface() string

func (*DatetimeDefinition) Type

Type return the type of the field.

type FloatDefinition

type FloatDefinition struct {
	*properties.FloatDefinition
	*PersistenceOptions
}

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

func Float

func Float(name string, required bool, position int, loadedPosition int, options *properties.FloatOptions, persistenceOptions *PersistenceOptions) *FloatDefinition

func (*FloatDefinition) DBType

func (f *FloatDefinition) DBType() *libpersistence.DBType

func (*FloatDefinition) DiffTypeInterface

func (f *FloatDefinition) DiffTypeInterface() string

func (*FloatDefinition) Type

Type return the type of the field.

type IntegerDefinition

type IntegerDefinition struct {
	*properties.IntegerDefinition
	*PersistenceOptions
}

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

func Integer

func Integer(name string, required bool, position int, loadedPosition int, options *properties.IntegerOptions, persistenceOptions *PersistenceOptions) *IntegerDefinition

func (*IntegerDefinition) DBType

func (*IntegerDefinition) DiffTypeInterface

func (f *IntegerDefinition) DiffTypeInterface() string

func (*IntegerDefinition) Type

Type return the type of the field.

type JSONDefinition

type JSONDefinition struct {
	*properties.MapDefinition
	*PersistenceOptions
}

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

func JSON

func JSON(name string, required bool, position int, loadedPosition int, options *properties.MapOptions, persistenceOptions *PersistenceOptions) *JSONDefinition

func (*JSONDefinition) DBType

func (f *JSONDefinition) DBType() *libpersistence.DBType

func (*JSONDefinition) DiffTypeInterface

func (f *JSONDefinition) DiffTypeInterface() string

func (*JSONDefinition) ProtoType

func (f *JSONDefinition) ProtoType() string

func (*JSONDefinition) ProtoTypeArg

func (f *JSONDefinition) ProtoTypeArg() string

func (*JSONDefinition) ProtoTypeOptional

func (f *JSONDefinition) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*JSONDefinition) Type

Type return the type of the field.

type Many2manyDefinition

type Many2manyDefinition struct {
	*properties.SliceDefinition
	*PersistenceOptions
	ReferenceDefinition libpersistence.TableInterface
	Relation            string
	InverseProperty     string
	TargetProperty      string
	OnDelete            libpersistence.OnDeleteValue
}

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

func Many2many

func Many2many(name string, required bool, referenceName string, referenceDefinition libdomain.TableInterface, relation string, inverseProperty string, targetProperty string, onDelete libdomain.OnDeleteValue, withEntity bool, position int, loadedPosition int, options *properties.IDOptions, persistenceOptions *PersistenceOptions) *Many2manyDefinition

func (*Many2manyDefinition) DBType

// ProtoType return the protobuf type for this field.

func (*Many2manyDefinition) GetReference

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

func (*Many2manyDefinition) GoType

func (f *Many2manyDefinition) GoType() string

// Type return the type of the field.

func (*Many2manyDefinition) GoTypeID

func (f *Many2manyDefinition) GoTypeID() string

// Type return the type of the field.

func (*Many2manyDefinition) InverseSnake

func (f *Many2manyDefinition) InverseSnake() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) InverseTitle

func (f *Many2manyDefinition) InverseTitle() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) InverseUpper

func (f *Many2manyDefinition) InverseUpper() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) IsNested

func (f *Many2manyDefinition) IsNested() bool

func (*Many2manyDefinition) IsStored

func (f *Many2manyDefinition) IsStored() bool

func (*Many2manyDefinition) RelationTitle

func (f *Many2manyDefinition) RelationTitle() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) RelationUpper

func (f *Many2manyDefinition) RelationUpper() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) SetReference

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

func (*Many2manyDefinition) TargetSnake

func (f *Many2manyDefinition) TargetSnake() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) TargetTitle

func (f *Many2manyDefinition) TargetTitle() string

// GetInverseProperty return the inverse field, if applicable.

func (*Many2manyDefinition) Type

// Type return the type of the field.

type Many2oneDefinition

type Many2oneDefinition struct {
	*properties.IDDefinition
	*PersistenceOptions
	// ReferencePrefix        string
	// ReferencePath          string
	ReferenceDefinition libpersistence.TableInterface
}

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

func Many2one

func Many2one(name string, required bool, referenceName string, referenceDefinition libpersistence.TableInterface, onDelete libdomain.OnDeleteValue, withEntity bool, position int, loadedPosition int, options *properties.IDOptions, persistenceOptions *PersistenceOptions) *Many2oneDefinition

func (*Many2oneDefinition) DBType

// ProtoType return the protobuf type for this field.

func (*Many2oneDefinition) GetReference

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

func (*Many2oneDefinition) GoType

func (f *Many2oneDefinition) GoType() string

// Type return the type of the field.

func (*Many2oneDefinition) GoTypeWithPath

func (f *Many2oneDefinition) GoTypeWithPath() string

// Type return the type of the field.

func (*Many2oneDefinition) SetReference

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

func (*Many2oneDefinition) Type

// Type return the type of the field.

type One2manyDefinition

type One2manyDefinition struct {
	*properties.OrderedMapDefinition
	*PersistenceOptions
	InverseProperty string
	ChildDefinition libpersistence.TableInterface
}

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

func One2many

func One2many(name string, required bool, referenceName string, referenceDefinition libdomain.TableInterface, inverseProperty string, position int, loadedPosition int, options *properties.EntityOptions, persistenceOptions *PersistenceOptions) *One2manyDefinition

func (*One2manyDefinition) DBType

// ProtoType return the protobuf type for this field.

func (*One2manyDefinition) GetInverseProperty

func (f *One2manyDefinition) GetInverseProperty() string

// GetInverseProperty return the inverse field, if applicable.

func (*One2manyDefinition) GetReference

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

func (*One2manyDefinition) GoType

func (f *One2manyDefinition) GoType() string

// Type return the type of the field.

func (*One2manyDefinition) GoTypeID

func (f *One2manyDefinition) GoTypeID() string

// Type return the type of the field.

func (*One2manyDefinition) InversePropertySnake

func (f *One2manyDefinition) InversePropertySnake() string

// GetInverseProperty return the inverse field, if applicable.

func (*One2manyDefinition) InversePropertyUpper

func (f *One2manyDefinition) InversePropertyUpper() string

// GetInverseProperty return the inverse field, if applicable.

func (*One2manyDefinition) IsNested

func (f *One2manyDefinition) IsNested() bool

func (*One2manyDefinition) IsStored

func (f *One2manyDefinition) IsStored() bool

func (*One2manyDefinition) SetReference

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

func (*One2manyDefinition) Type

// Type return the type of the field.

type PersistenceOptions

type PersistenceOptions struct {
	ExternalDatasource   libpersistence.DatasourceClient
	ExcludeFromInterface bool
	Index                bool
}

func (*PersistenceOptions) GetExcludeFromInterface

func (r *PersistenceOptions) GetExcludeFromInterface() bool

func (*PersistenceOptions) GetExternalDatasource

func (r *PersistenceOptions) GetExternalDatasource() libpersistence.DatasourceClient

func (*PersistenceOptions) GetReference

func (*PersistenceOptions) IsIndexed

func (r *PersistenceOptions) IsIndexed() bool

func (*PersistenceOptions) SetReference

type SelectionDefinition

type SelectionDefinition struct {
	*properties.SelectionDefinition
	*PersistenceOptions
	Options []string
}

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

func Selection

func Selection(name string, required bool, options []string, position int, loadedPosition int, selectionOptions *properties.SelectionOptions, persistenceOptions *PersistenceOptions) *SelectionDefinition

func (*SelectionDefinition) DBType

// ProtoType return the protobuf type for this field.

func (*SelectionDefinition) GetReference

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

func (*SelectionDefinition) SetReference

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

func (*SelectionDefinition) Type

// Type return the type of the field.

type TextDefinition

type TextDefinition struct {
	*properties.TextDefinition
	*PersistenceOptions
}

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

func Text

func Text(name string, required bool, position int, loadedPosition int, options *properties.TextOptions, persistenceOptions *PersistenceOptions) *TextDefinition

func TextPatch

func TextPatch(name string, required bool, position int, loadedPosition int, options *properties.TextOptions, persistenceOptions *PersistenceOptions) *TextDefinition

func TextTranslatable

func TextTranslatable(name string, required bool, position int, loadedPosition int, options *properties.TextOptions, persistenceOptions *PersistenceOptions) *TextDefinition

func TextWYSIWYG

func TextWYSIWYG(name string, required bool, patch bool, position int, loadedPosition int, positionTerms int, loadedPositionTerms int, options *properties.TextOptions, persistenceOptions *PersistenceOptions) *TextDefinition

func (*TextDefinition) DBType

func (f *TextDefinition) DBType() *libpersistence.DBType

func (*TextDefinition) DiffTypeInterface

func (f *TextDefinition) DiffTypeInterface() string

func (*TextDefinition) ProtoType

func (f *TextDefinition) ProtoType() string

func (*TextDefinition) ProtoTypeArg

func (f *TextDefinition) ProtoTypeArg() string

func (*TextDefinition) ProtoTypeOptional

func (f *TextDefinition) ProtoTypeOptional() string

ProtoType return the protobuf type for this field.

func (*TextDefinition) Type

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