Documentation ¶
Index ¶
- Constants
- type BinaryDefinition
- type BooleanDefinition
- type DateDefinition
- type DatetimeDefinition
- type FloatDefinition
- type IntegerDefinition
- type JSONDefinition
- func (f *JSONDefinition) DBType() *libpersistence.DBType
- func (f *JSONDefinition) DiffTypeInterface() string
- func (f *JSONDefinition) ProtoType() string
- func (f *JSONDefinition) ProtoTypeArg() string
- func (f *JSONDefinition) ProtoTypeOptional() string
- func (f *JSONDefinition) Type() libpersistence.PropertyType
- type Many2manyDefinition
- func (f *Many2manyDefinition) DBType() *libpersistence.DBType
- func (f *Many2manyDefinition) GetReference() libpersistence.TableInterface
- func (f *Many2manyDefinition) GoType() string
- func (f *Many2manyDefinition) GoTypeID() string
- func (f *Many2manyDefinition) InverseSnake() string
- func (f *Many2manyDefinition) InverseTitle() string
- func (f *Many2manyDefinition) InverseUpper() string
- func (f *Many2manyDefinition) IsNested() bool
- func (f *Many2manyDefinition) IsStored() bool
- func (f *Many2manyDefinition) RelationTitle() string
- func (f *Many2manyDefinition) RelationUpper() string
- func (f *Many2manyDefinition) SetReference(d libpersistence.TableInterface)
- func (f *Many2manyDefinition) TargetSnake() string
- func (f *Many2manyDefinition) TargetTitle() string
- func (f *Many2manyDefinition) Type() libpersistence.PropertyType
- type Many2oneDefinition
- func (f *Many2oneDefinition) DBType() *libpersistence.DBType
- func (f *Many2oneDefinition) GetReference() libpersistence.TableInterface
- func (f *Many2oneDefinition) GoType() string
- func (f *Many2oneDefinition) GoTypeWithPath() string
- func (f *Many2oneDefinition) SetReference(d libpersistence.TableInterface)
- func (f *Many2oneDefinition) Type() libpersistence.PropertyType
- type One2manyDefinition
- func (f *One2manyDefinition) DBType() *libpersistence.DBType
- func (f *One2manyDefinition) GetInverseProperty() string
- func (f *One2manyDefinition) GetReference() libpersistence.TableInterface
- func (f *One2manyDefinition) GoType() string
- func (f *One2manyDefinition) GoTypeID() string
- func (f *One2manyDefinition) InversePropertySnake() string
- func (f *One2manyDefinition) InversePropertyUpper() string
- func (f *One2manyDefinition) IsNested() bool
- func (f *One2manyDefinition) IsStored() bool
- func (f *One2manyDefinition) SetReference(d libpersistence.TableInterface)
- func (f *One2manyDefinition) Type() libpersistence.PropertyType
- type PersistenceOptions
- func (r *PersistenceOptions) GetExcludeFromInterface() bool
- func (r *PersistenceOptions) GetExternalDatasource() libpersistence.DatasourceClient
- func (f *PersistenceOptions) GetReference() libpersistence.TableInterface
- func (r *PersistenceOptions) IsIndexed() bool
- func (f *PersistenceOptions) SetReference(d libpersistence.TableInterface)
- type SelectionDefinition
- type TextDefinition
- func Text(name string, required bool, position int, loadedPosition int, ...) *TextDefinition
- func TextPatch(name string, required bool, position int, loadedPosition int, ...) *TextDefinition
- func TextTranslatable(name string, required bool, position int, loadedPosition int, ...) *TextDefinition
- func TextWYSIWYG(name string, required bool, patch bool, position int, loadedPosition int, ...) *TextDefinition
- func (f *TextDefinition) DBType() *libpersistence.DBType
- func (f *TextDefinition) DiffTypeInterface() string
- func (f *TextDefinition) ProtoType() string
- func (f *TextDefinition) ProtoTypeArg() string
- func (f *TextDefinition) ProtoTypeOptional() string
- func (f *TextDefinition) Type() libpersistence.PropertyType
Constants ¶
const BinaryPropertyType = libpersistence.PropertyType("BinaryType")
JSONPropertyType contains the field type for JSON
const BooleanPropertyType = libpersistence.PropertyType("BooleanType")
BooleanPropertyType contains the field type for Boolean
const DatePropertyType = libpersistence.PropertyType("DateType")
DatePropertyType contains the field type for Date
const DatetimePropertyType = libpersistence.PropertyType("DatetimeType")
DatetimePropertyType contains the field type for Datetime
const FloatPropertyType = libpersistence.PropertyType("FloatType")
FloatPropertyType contains the field type for Float
const IntegerPropertyType = libpersistence.PropertyType("IntegerType")
IntegerPropertyType contains the field type for Interger
const JSONPropertyType = libpersistence.PropertyType("JSONType")
JSONPropertyType contains the field type for JSON
const Many2manyPropertyType = libpersistence.PropertyType("Many2manyType")
Many2manyPropertyType contains the field type for Many2many
const Many2onePropertyType = libpersistence.PropertyType("Many2oneType")
Many2onePropertyType contains the field type for Many2one
const One2manyPropertyType = libpersistence.PropertyType("One2manyType")
One2manyPropertyType contains the field type for One2many
const SelectionPropertyType = libpersistence.PropertyType("SelectionType")
TextPropertyType contains the field type for Text
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 ¶
func (f *BinaryDefinition) Type() libpersistence.PropertyType
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 (f *BooleanDefinition) DBType() *libpersistence.DBType
func (*BooleanDefinition) DiffTypeInterface ¶
func (f *BooleanDefinition) DiffTypeInterface() string
func (*BooleanDefinition) Type ¶
func (f *BooleanDefinition) Type() libpersistence.PropertyType
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 ¶
func (f *DateDefinition) Type() libpersistence.PropertyType
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 (f *DatetimeDefinition) DBType() *libpersistence.DBType
func (*DatetimeDefinition) DiffTypeInterface ¶
func (f *DatetimeDefinition) DiffTypeInterface() string
func (*DatetimeDefinition) Type ¶
func (f *DatetimeDefinition) Type() libpersistence.PropertyType
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 ¶
func (f *FloatDefinition) Type() libpersistence.PropertyType
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 (f *IntegerDefinition) DBType() *libpersistence.DBType
func (*IntegerDefinition) DiffTypeInterface ¶
func (f *IntegerDefinition) DiffTypeInterface() string
func (*IntegerDefinition) Type ¶
func (f *IntegerDefinition) Type() libpersistence.PropertyType
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 ¶
func (f *JSONDefinition) Type() libpersistence.PropertyType
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 ¶
func (f *Many2manyDefinition) DBType() *libpersistence.DBType
// ProtoType return the protobuf type for this field.
func (*Many2manyDefinition) GetReference ¶
func (f *Many2manyDefinition) GetReference() libpersistence.TableInterface
// 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 ¶
func (f *Many2manyDefinition) SetReference(d libpersistence.TableInterface)
// 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 ¶
func (f *Many2manyDefinition) Type() libpersistence.PropertyType
// 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 ¶
func (f *Many2oneDefinition) DBType() *libpersistence.DBType
// ProtoType return the protobuf type for this field.
func (*Many2oneDefinition) GetReference ¶
func (f *Many2oneDefinition) GetReference() libpersistence.TableInterface
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 ¶
func (f *Many2oneDefinition) SetReference(d libpersistence.TableInterface)
SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*Many2oneDefinition) Type ¶
func (f *Many2oneDefinition) Type() libpersistence.PropertyType
// 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 ¶
func (f *One2manyDefinition) DBType() *libpersistence.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 ¶
func (f *One2manyDefinition) GetReference() libpersistence.TableInterface
// 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 ¶
func (f *One2manyDefinition) SetReference(d libpersistence.TableInterface)
// SetReferenceDefinition set the definition of referenced model, // if this field is linked to another model.
func (*One2manyDefinition) Type ¶
func (f *One2manyDefinition) Type() libpersistence.PropertyType
// 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 (f *PersistenceOptions) GetReference() libpersistence.TableInterface
func (*PersistenceOptions) IsIndexed ¶
func (r *PersistenceOptions) IsIndexed() bool
func (*PersistenceOptions) SetReference ¶
func (f *PersistenceOptions) SetReference(d libpersistence.TableInterface)
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 ¶
func (f *SelectionDefinition) DBType() *libpersistence.DBType
// ProtoType return the protobuf type for this field.
func (*SelectionDefinition) GetReference ¶
func (f *SelectionDefinition) GetReference() libpersistence.TableInterface
// GetReferenceDefinition return the definition of referenced model, // if this field is linked to another model.
func (*SelectionDefinition) SetReference ¶
func (f *SelectionDefinition) SetReference(libpersistence.TableInterface)
// SetReferenceDefinition set the definition of referenced model, if this field is linked to another model.
func (*SelectionDefinition) Type ¶
func (f *SelectionDefinition) Type() libpersistence.PropertyType
// 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 ¶
func (f *TextDefinition) Type() libpersistence.PropertyType
Type return the type of the field.