Documentation ¶
Index ¶
- func SelectByKVCondition(db sqlx.DBExecutor, kvc kvcondition.KVCondition, modelWithTag ModelWithTag, ...) *pgbuilder.StmtSelect
- type ModelWithTag
- type Tag
- type Tagger
- func (t *Tagger) GetTags(db sqlx.DBExecutor, targetID uint64) (Tags, error)
- func (t *Tagger) SelectFor(db sqlx.DBExecutor, tagql kvcondition.KVCondition) *pgbuilder.StmtSelect
- func (t *Tagger) Tag(db sqlx.DBExecutor, targetID uint64, tags Tags) error
- func (t *Tagger) UnTag(db sqlx.DBExecutor, targetID uint64, keyAndValues ...string) error
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectByKVCondition ¶
func SelectByKVCondition(db sqlx.DBExecutor, kvc kvcondition.KVCondition, modelWithTag ModelWithTag, idCol *builder.Column) *pgbuilder.StmtSelect
Types ¶
type ModelWithTag ¶
type Tagger ¶
type Tagger struct {
// contains filtered or unexported fields
}
func TaggerFor ¶
func TaggerFor(modelWithTag ModelWithTag) *Tagger
func (*Tagger) SelectFor ¶
func (t *Tagger) SelectFor(db sqlx.DBExecutor, tagql kvcondition.KVCondition) *pgbuilder.StmtSelect
Click to show internal directories.
Click to hide internal directories.