Documentation ¶
Index ¶
- Constants
- func MergeArgs(args ...[]any) []any
- type BuilderPart
- type BuilderSelect
- func (b *BuilderSelect) OrderBy(f func(o mrstorage.SqlBuilderOrderBy) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
- func (b *BuilderSelect) Pager(f func(p mrstorage.SqlBuilderPager) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
- func (b *BuilderSelect) Where(f func(w mrstorage.SqlBuilderWhere) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
- type BuilderUpdate
- type EntityMetaOrderBy
- type EntityMetaUpdate
Constants ¶
View Source
const (
ModelNameEntityMetaOrderBy = "EntityMetaOrderBy"
)
View Source
const (
ModelNameEntityMetaUpdate = "EntityMetaUpdate"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuilderPart ¶
type BuilderPart struct {
// contains filtered or unexported fields
}
func NewBuilderPart ¶
func NewBuilderPart(body mrstorage.SqlBuilderPartFunc) *BuilderPart
func (*BuilderPart) Empty ¶
func (b *BuilderPart) Empty() bool
func (*BuilderPart) Param ¶
func (b *BuilderPart) Param(number int) mrstorage.SqlBuilderPart
func (*BuilderPart) String ¶
func (b *BuilderPart) String() string
func (*BuilderPart) ToSql ¶
func (b *BuilderPart) ToSql() (string, []any)
func (*BuilderPart) WithPrefix ¶
func (b *BuilderPart) WithPrefix(value string) mrstorage.SqlBuilderPart
type BuilderSelect ¶
type BuilderSelect struct {
// contains filtered or unexported fields
}
func NewBuilderSelect ¶
func NewBuilderSelect( where mrstorage.SqlBuilderWhere, orderBy mrstorage.SqlBuilderOrderBy, pager mrstorage.SqlBuilderPager, ) *BuilderSelect
func (*BuilderSelect) OrderBy ¶
func (b *BuilderSelect) OrderBy(f func(o mrstorage.SqlBuilderOrderBy) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
func (*BuilderSelect) Pager ¶
func (b *BuilderSelect) Pager(f func(p mrstorage.SqlBuilderPager) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
func (*BuilderSelect) Where ¶
func (b *BuilderSelect) Where(f func(w mrstorage.SqlBuilderWhere) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
type BuilderUpdate ¶
type BuilderUpdate struct {
// contains filtered or unexported fields
}
func NewBuilderUpdate ¶
func NewBuilderUpdate(set mrstorage.SqlBuilderSet) *BuilderUpdate
func NewBuilderUpdateWithMeta ¶
func NewBuilderUpdateWithMeta(meta *EntityMetaUpdate, set mrstorage.SqlBuilderSet) *BuilderUpdate
func (*BuilderUpdate) Set ¶
func (b *BuilderUpdate) Set(f func(s mrstorage.SqlBuilderSet) mrstorage.SqlBuilderPartFunc) mrstorage.SqlBuilderPart
func (*BuilderUpdate) SetFromEntity ¶
func (b *BuilderUpdate) SetFromEntity(entity any) (mrstorage.SqlBuilderPart, error)
func (*BuilderUpdate) SetFromEntityWith ¶ added in v0.6.0
func (b *BuilderUpdate) SetFromEntityWith(entity any, extFields func(s mrstorage.SqlBuilderSet) mrstorage.SqlBuilderPartFunc) (mrstorage.SqlBuilderPart, error)
type EntityMetaOrderBy ¶
type EntityMetaOrderBy struct {
// contains filtered or unexported fields
}
func NewEntityMetaOrderBy ¶
func NewEntityMetaOrderBy(entity any) (*EntityMetaOrderBy, error)
NewEntityMetaOrderBy - WARNING: use only when starting the main process
func (*EntityMetaOrderBy) CheckField ¶ added in v0.6.0
func (m *EntityMetaOrderBy) CheckField(name string) bool
func (*EntityMetaOrderBy) DefaultSort ¶ added in v0.6.0
func (m *EntityMetaOrderBy) DefaultSort() mrtype.SortParams
type EntityMetaUpdate ¶
type EntityMetaUpdate struct {
// contains filtered or unexported fields
}
func NewEntityMetaUpdate ¶
func NewEntityMetaUpdate(entity any) (*EntityMetaUpdate, error)
NewEntityMetaUpdate - WARNING: use only when starting the main process
func (*EntityMetaUpdate) FieldsForUpdate ¶ added in v0.6.0
func (m *EntityMetaUpdate) FieldsForUpdate(entity any) ([]string, []any, error)
Click to show internal directories.
Click to hide internal directories.