Documentation
¶
Index ¶
Constants ¶
View Source
const ( EntityName = "textValue" TableName = "text_value" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { //SetDefaultConditions(conditions *selection_condition.SelectionCondition) // Get returns the album with the specified album ID. //Get(ctx context.Context, id uint) (*TextValue, error) //First(ctx context.Context, entity *TextValue) (*TextValue, error) // Query returns the list of albums with the given offset and limit. //Query(ctx context.Context, cond *selection_condition.SelectionCondition) ([]TextValue, error) //Count(ctx context.Context, cond *selection_condition.SelectionCondition) (int64, error) //Create(ctx context.Context, entity *TextValue) error //Update(ctx context.Context, entity *TextValue) error //Save(ctx context.Context, entity *TextValue) error //Delete(ctx context.Context, id uint) error BatchSaveChangesTx(ctx context.Context, entityID uint, values []TextValue, langID uint, tx *gorm.DB) error BatchDeleteTx(ctx context.Context, cond *selection_condition.SelectionCondition, tx *gorm.DB) error }
Repository encapsulates the logic to access albums from the data source.
type TextValue ¶
type TextValue struct { ID uint `gorm:"type:bigserial;primaryKey" json:"id"` EntityID uint `` /* 138-byte string literal not displayed */ LangID uint `gorm:"type:integer ;index:idx_text_value,priority:3;index:idx_text_value_inst,priority:2" json:"langID"` // not null [syntax error (SQLSTATE 42601)] PropertyID uint `gorm:"type:bigint not null;index:idx_text_value,priority:2" json:"propertyID"` Value string `gorm:"type:text not null" json:"value"` ValueTsvector string `gorm:"type:tsvector not null;index:textsearch_idx,type:GIN" json:"-"` }
TextValue ...
Click to show internal directories.
Click to hide internal directories.