Documentation ¶
Index ¶
- func As(plain string, alias string) string
- func IsBlank(prefixOrKey string) bool
- func JsonArrayExtract(jsonOrRawSql string, index int, alias ...string) string
- func JsonArraySet(jsonOrRawSql string, index int, data any, alias ...string) string
- func JsonContains(jsonOrRawSql string, data any, alias ...string) string
- func JsonDepth(jsonOrRawSql string, alias ...string) string
- func JsonExtract(jsonOrRawSql string, key string, alias ...string) string
- func JsonLength(jsonOrRawSql string, alias ...string) string
- func JsonSet(jsonOrRawSql string, key string, data any, alias ...string) string
- func JsonSetColumn(rawString string, key string, column string, alias ...string) string
- func JsonStorageSize(jsonOrRawSql string, alias ...string) string
- func JsonType(jsonOrRawSql string, alias ...string) string
- func JsonValid(jsonOrRawSql string, alias ...string) string
- type ConcatOpsImpl
- func (s *ConcatOpsImpl) As(alias ...string) string
- func (s *ConcatOpsImpl) Concat(str ...string) *ConcatOpsImpl
- func (s *ConcatOpsImpl) ConcatColumn(column string) *ConcatOpsImpl
- func (s *ConcatOpsImpl) ConcatString(plain string) *ConcatOpsImpl
- func (s *ConcatOpsImpl) Items() string
- func (s *ConcatOpsImpl) Omitempty() *ConcatOpsImpl
- type ConcatWsOpsImpl
- func (s *ConcatWsOpsImpl) As(alias ...string) string
- func (s *ConcatWsOpsImpl) ConcatColumn(column string) *ConcatWsOpsImpl
- func (s *ConcatWsOpsImpl) ConcatString(plain string) *ConcatWsOpsImpl
- func (s *ConcatWsOpsImpl) ConcatWs(split string, str ...string) *ConcatWsOpsImpl
- func (s *ConcatWsOpsImpl) ConcatWsSplit(split string) *ConcatWsOpsImpl
- func (s *ConcatWsOpsImpl) GetSplitString() string
- func (s *ConcatWsOpsImpl) Items() string
- func (s *ConcatWsOpsImpl) Omitempty() *ConcatWsOpsImpl
- type DataPageOpsImpl
- func (paging *DataPageOpsImpl[T]) CurrentPage(currentPage int) *DataPageOpsImpl[T]
- func (paging *DataPageOpsImpl[T]) Fetch() *PageEntityRes[T]
- func (paging *DataPageOpsImpl[T]) Limit() int
- func (paging *DataPageOpsImpl[T]) Offset() int
- func (paging *DataPageOpsImpl[T]) PerPageItems(perPageItems int) *DataPageOpsImpl[T]
- type FieldOpsImpl
- func (f *FieldOpsImpl) ExcludeByAlias(keys ...string) *FieldOpsImpl
- func (f *FieldOpsImpl) ExcludeByColumns(keys ...string) *FieldOpsImpl
- func (f *FieldOpsImpl) ExcludeRawSql(keys ...string) *FieldOpsImpl
- func (f *FieldOpsImpl) Fields() []string
- func (f *FieldOpsImpl) Include(key string, alias string) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludeMap(columns any) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludePrefixColumns(prefix string, columns any) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludePrefixMap(prefix string, columns any) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludePrefixObject(prefix string, columns any) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *FieldOpsImpl
- func (f *FieldOpsImpl) IncludeRawSql(rawSql string) *FieldOpsImpl
- func (f *FieldOpsImpl) Items() []string
- func (f *FieldOpsImpl) Omitempty() *FieldOpsImpl
- type FieldsInterface
- type FieldsOpsImpl
- type GroupOpsImpl
- func (g *GroupOpsImpl) Exclude(keys ...string) *GroupOpsImpl
- func (g *GroupOpsImpl) GetGroupFields() []string
- func (g *GroupOpsImpl) IncludePrefixColumns(prefix string, columns any) *GroupOpsImpl
- func (g *GroupOpsImpl) IncludePrefixObject(prefix string, columns any) *GroupOpsImpl
- func (g *GroupOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *GroupOpsImpl
- type JsonArrayAggOpsImpl
- type JsonArrayOpsImpl
- type JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) As(alias ...string) string
- func (j *JsonObjectOpsImpl) Exclude(keys ...string) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludeItem(key string, value string) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludeMap(columns any) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludePrefixColumns(prefixOrKey string, columns any) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludePrefixMap(prefixOrKey string, columns any) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludePrefixObject(prefixOrKey string, columns any) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *JsonObjectOpsImpl
- func (j *JsonObjectOpsImpl) Items() []string
- func (j *JsonObjectOpsImpl) Omitempty() *JsonObjectOpsImpl
- type PageEntityRes
- type PageOpsImpl
- func (paging *PageOpsImpl[T, V, Z]) Converter(f func(ctx context.Context, source *[]Z, target *[]T)) *PageOpsImpl[T, V, Z]
- func (paging *PageOpsImpl[T, V, Z]) Ctx(ctx context.Context) *PageOpsImpl[T, V, Z]
- func (paging *PageOpsImpl[T, V, Z]) CurrentPage(currentPage int) *PageOpsImpl[T, V, Z]
- func (paging *PageOpsImpl[T, V, Z]) Fetch() (*PageEntityRes[T], error)
- func (paging *PageOpsImpl[T, V, Z]) Limit() int
- func (paging *PageOpsImpl[T, V, Z]) Offset() int
- func (paging *PageOpsImpl[T, V, Z]) Params(params *V) *PageOpsImpl[T, V, Z]
- func (paging *PageOpsImpl[T, V, Z]) PerPageItems(perPageItems int) *PageOpsImpl[T, V, Z]
- func (paging *PageOpsImpl[T, V, Z]) Query(...) *PageOpsImpl[T, V, Z]
- type SimplePageOpsImpl
- type StringOpsImpl
- func (s *StringOpsImpl) As(alias ...string) string
- func (s *StringOpsImpl) FromColumn(column string) *StringOpsImpl
- func (s *StringOpsImpl) FromStr(str string) *StringOpsImpl
- func (s *StringOpsImpl) Instr(find string) *StringOpsImpl
- func (s *StringOpsImpl) Left(length int) *StringOpsImpl
- func (s *StringOpsImpl) Length() *StringOpsImpl
- func (s *StringOpsImpl) Locate(find string, start int) *StringOpsImpl
- func (s *StringOpsImpl) Lower() *StringOpsImpl
- func (s *StringOpsImpl) Replace(find string, replace string) *StringOpsImpl
- func (s *StringOpsImpl) Reverse() *StringOpsImpl
- func (s *StringOpsImpl) Right(length int) *StringOpsImpl
- func (s *StringOpsImpl) SubString(start int, length int) *StringOpsImpl
- func (s *StringOpsImpl) Trim() *StringOpsImpl
- func (s *StringOpsImpl) Upper() *StringOpsImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonArrayExtract ¶
func JsonArraySet ¶
func JsonLength ¶
func JsonSetColumn ¶
func JsonStorageSize ¶
Types ¶
type ConcatOpsImpl ¶
type ConcatOpsImpl struct {
// contains filtered or unexported fields
}
func ConcatOps ¶
func ConcatOps() *ConcatOpsImpl
func (*ConcatOpsImpl) As ¶
func (s *ConcatOpsImpl) As(alias ...string) string
func (*ConcatOpsImpl) Concat ¶
func (s *ConcatOpsImpl) Concat(str ...string) *ConcatOpsImpl
func (*ConcatOpsImpl) ConcatColumn ¶
func (s *ConcatOpsImpl) ConcatColumn(column string) *ConcatOpsImpl
func (*ConcatOpsImpl) ConcatString ¶
func (s *ConcatOpsImpl) ConcatString(plain string) *ConcatOpsImpl
func (*ConcatOpsImpl) Items ¶
func (s *ConcatOpsImpl) Items() string
func (*ConcatOpsImpl) Omitempty ¶
func (s *ConcatOpsImpl) Omitempty() *ConcatOpsImpl
type ConcatWsOpsImpl ¶
type ConcatWsOpsImpl struct {
// contains filtered or unexported fields
}
func ConcatWsOps ¶
func ConcatWsOps() *ConcatWsOpsImpl
func (*ConcatWsOpsImpl) As ¶
func (s *ConcatWsOpsImpl) As(alias ...string) string
func (*ConcatWsOpsImpl) ConcatColumn ¶
func (s *ConcatWsOpsImpl) ConcatColumn(column string) *ConcatWsOpsImpl
func (*ConcatWsOpsImpl) ConcatString ¶
func (s *ConcatWsOpsImpl) ConcatString(plain string) *ConcatWsOpsImpl
func (*ConcatWsOpsImpl) ConcatWs ¶
func (s *ConcatWsOpsImpl) ConcatWs(split string, str ...string) *ConcatWsOpsImpl
func (*ConcatWsOpsImpl) ConcatWsSplit ¶
func (s *ConcatWsOpsImpl) ConcatWsSplit(split string) *ConcatWsOpsImpl
func (*ConcatWsOpsImpl) GetSplitString ¶
func (s *ConcatWsOpsImpl) GetSplitString() string
func (*ConcatWsOpsImpl) Items ¶
func (s *ConcatWsOpsImpl) Items() string
func (*ConcatWsOpsImpl) Omitempty ¶
func (s *ConcatWsOpsImpl) Omitempty() *ConcatWsOpsImpl
type DataPageOpsImpl ¶ added in v0.0.14
type DataPageOpsImpl[T any] struct { // contains filtered or unexported fields }
func DataPaging ¶ added in v0.0.14
func DataPaging[T any](pageData *[]T) *DataPageOpsImpl[T]
func (*DataPageOpsImpl[T]) CurrentPage ¶ added in v0.0.14
func (paging *DataPageOpsImpl[T]) CurrentPage(currentPage int) *DataPageOpsImpl[T]
func (*DataPageOpsImpl[T]) Fetch ¶ added in v0.0.14
func (paging *DataPageOpsImpl[T]) Fetch() *PageEntityRes[T]
func (*DataPageOpsImpl[T]) Limit ¶ added in v0.0.14
func (paging *DataPageOpsImpl[T]) Limit() int
func (*DataPageOpsImpl[T]) Offset ¶ added in v0.0.14
func (paging *DataPageOpsImpl[T]) Offset() int
func (*DataPageOpsImpl[T]) PerPageItems ¶ added in v0.0.14
func (paging *DataPageOpsImpl[T]) PerPageItems(perPageItems int) *DataPageOpsImpl[T]
type FieldOpsImpl ¶ added in v0.0.2
type FieldOpsImpl struct {
// contains filtered or unexported fields
}
func FieldOps ¶ added in v0.0.2
func FieldOps() *FieldOpsImpl
func (*FieldOpsImpl) ExcludeByAlias ¶ added in v0.0.2
func (f *FieldOpsImpl) ExcludeByAlias(keys ...string) *FieldOpsImpl
func (*FieldOpsImpl) ExcludeByColumns ¶ added in v0.0.2
func (f *FieldOpsImpl) ExcludeByColumns(keys ...string) *FieldOpsImpl
func (*FieldOpsImpl) ExcludeRawSql ¶ added in v0.0.2
func (f *FieldOpsImpl) ExcludeRawSql(keys ...string) *FieldOpsImpl
func (*FieldOpsImpl) Fields ¶ added in v0.0.2
func (f *FieldOpsImpl) Fields() []string
func (*FieldOpsImpl) Include ¶ added in v0.0.2
func (f *FieldOpsImpl) Include(key string, alias string) *FieldOpsImpl
func (*FieldOpsImpl) IncludeMap ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludeMap(columns any) *FieldOpsImpl
func (*FieldOpsImpl) IncludePrefixColumns ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludePrefixColumns(prefix string, columns any) *FieldOpsImpl
func (*FieldOpsImpl) IncludePrefixMap ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludePrefixMap(prefix string, columns any) *FieldOpsImpl
func (*FieldOpsImpl) IncludePrefixObject ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludePrefixObject(prefix string, columns any) *FieldOpsImpl
func (*FieldOpsImpl) IncludePrefixSlice ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *FieldOpsImpl
func (*FieldOpsImpl) IncludeRawSql ¶ added in v0.0.2
func (f *FieldOpsImpl) IncludeRawSql(rawSql string) *FieldOpsImpl
func (*FieldOpsImpl) Items ¶ added in v0.0.2
func (f *FieldOpsImpl) Items() []string
func (*FieldOpsImpl) Omitempty ¶ added in v0.0.2
func (f *FieldOpsImpl) Omitempty() *FieldOpsImpl
type FieldsInterface ¶ added in v0.0.6
type FieldsOpsImpl ¶ added in v0.0.6
type FieldsOpsImpl[T FieldsInterface] struct { // contains filtered or unexported fields }
func FieldsOps ¶ added in v0.0.6
func FieldsOps[T FieldsInterface]() *FieldsOpsImpl[T]
func (*FieldsOpsImpl[T]) GetGroupFields ¶ added in v0.0.6
func (f *FieldsOpsImpl[T]) GetGroupFields(cached ...bool) []string
func (*FieldsOpsImpl[T]) GetQueryFields ¶ added in v0.0.6
func (f *FieldsOpsImpl[T]) GetQueryFields(cached ...bool) []string
type GroupOpsImpl ¶
type GroupOpsImpl struct {
// contains filtered or unexported fields
}
func GroupOps ¶
func GroupOps() *GroupOpsImpl
func (*GroupOpsImpl) Exclude ¶
func (g *GroupOpsImpl) Exclude(keys ...string) *GroupOpsImpl
func (*GroupOpsImpl) GetGroupFields ¶ added in v0.0.7
func (g *GroupOpsImpl) GetGroupFields() []string
func (*GroupOpsImpl) IncludePrefixColumns ¶
func (g *GroupOpsImpl) IncludePrefixColumns(prefix string, columns any) *GroupOpsImpl
func (*GroupOpsImpl) IncludePrefixObject ¶
func (g *GroupOpsImpl) IncludePrefixObject(prefix string, columns any) *GroupOpsImpl
func (*GroupOpsImpl) IncludePrefixSlice ¶
func (g *GroupOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *GroupOpsImpl
type JsonArrayAggOpsImpl ¶
type JsonArrayAggOpsImpl struct {
// contains filtered or unexported fields
}
func JsonArrayAggOps ¶
func JsonArrayAggOps() *JsonArrayAggOpsImpl
func (*JsonArrayAggOpsImpl) As ¶
func (j *JsonArrayAggOpsImpl) As(alias ...string) string
func (*JsonArrayAggOpsImpl) Include ¶
func (j *JsonArrayAggOpsImpl) Include(field string) *JsonArrayAggOpsImpl
func (*JsonArrayAggOpsImpl) Items ¶
func (j *JsonArrayAggOpsImpl) Items() string
type JsonArrayOpsImpl ¶
type JsonArrayOpsImpl struct {
// contains filtered or unexported fields
}
func JsonArrayOps ¶
func JsonArrayOps() *JsonArrayOpsImpl
func (*JsonArrayOpsImpl) As ¶
func (j *JsonArrayOpsImpl) As(alias ...string) string
func (*JsonArrayOpsImpl) Include ¶
func (j *JsonArrayOpsImpl) Include(data any) *JsonArrayOpsImpl
func (*JsonArrayOpsImpl) IncludeColumn ¶
func (j *JsonArrayOpsImpl) IncludeColumn(column string) *JsonArrayOpsImpl
func (*JsonArrayOpsImpl) Items ¶
func (j *JsonArrayOpsImpl) Items() string
type JsonObjectOpsImpl ¶
type JsonObjectOpsImpl struct {
// contains filtered or unexported fields
}
func JsonObjectOps ¶
func JsonObjectOps() *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) As ¶
func (j *JsonObjectOpsImpl) As(alias ...string) string
func (*JsonObjectOpsImpl) Exclude ¶
func (j *JsonObjectOpsImpl) Exclude(keys ...string) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludeItem ¶
func (j *JsonObjectOpsImpl) IncludeItem(key string, value string) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludeMap ¶
func (j *JsonObjectOpsImpl) IncludeMap(columns any) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludePrefixColumns ¶
func (j *JsonObjectOpsImpl) IncludePrefixColumns(prefixOrKey string, columns any) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludePrefixMap ¶
func (j *JsonObjectOpsImpl) IncludePrefixMap(prefixOrKey string, columns any) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludePrefixObject ¶
func (j *JsonObjectOpsImpl) IncludePrefixObject(prefixOrKey string, columns any) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) IncludePrefixSlice ¶
func (j *JsonObjectOpsImpl) IncludePrefixSlice(prefixOrKey string, columns any) *JsonObjectOpsImpl
func (*JsonObjectOpsImpl) Items ¶
func (j *JsonObjectOpsImpl) Items() []string
func (*JsonObjectOpsImpl) Omitempty ¶
func (j *JsonObjectOpsImpl) Omitempty() *JsonObjectOpsImpl
type PageEntityRes ¶ added in v0.0.8
type PageOpsImpl ¶ added in v0.0.8
func (*PageOpsImpl[T, V, Z]) Converter ¶ added in v0.0.13
func (paging *PageOpsImpl[T, V, Z]) Converter(f func(ctx context.Context, source *[]Z, target *[]T)) *PageOpsImpl[T, V, Z]
func (*PageOpsImpl[T, V, Z]) Ctx ¶ added in v0.0.13
func (paging *PageOpsImpl[T, V, Z]) Ctx(ctx context.Context) *PageOpsImpl[T, V, Z]
func (*PageOpsImpl[T, V, Z]) CurrentPage ¶ added in v0.0.8
func (paging *PageOpsImpl[T, V, Z]) CurrentPage(currentPage int) *PageOpsImpl[T, V, Z]
func (*PageOpsImpl[T, V, Z]) Fetch ¶ added in v0.0.10
func (paging *PageOpsImpl[T, V, Z]) Fetch() (*PageEntityRes[T], error)
func (*PageOpsImpl[T, V, Z]) Limit ¶ added in v0.0.13
func (paging *PageOpsImpl[T, V, Z]) Limit() int
func (*PageOpsImpl[T, V, Z]) Offset ¶ added in v0.0.13
func (paging *PageOpsImpl[T, V, Z]) Offset() int
func (*PageOpsImpl[T, V, Z]) Params ¶ added in v0.0.10
func (paging *PageOpsImpl[T, V, Z]) Params(params *V) *PageOpsImpl[T, V, Z]
func (*PageOpsImpl[T, V, Z]) PerPageItems ¶ added in v0.0.8
func (paging *PageOpsImpl[T, V, Z]) PerPageItems(perPageItems int) *PageOpsImpl[T, V, Z]
func (*PageOpsImpl[T, V, Z]) Query ¶ added in v0.0.10
func (paging *PageOpsImpl[T, V, Z]) Query(f func(ctx context.Context, offset int, limit int, params *V) (*[]Z, *int, error)) *PageOpsImpl[T, V, Z]
type SimplePageOpsImpl ¶ added in v0.0.14
type SimplePageOpsImpl[T any] struct { // contains filtered or unexported fields }
func SimplePaging ¶ added in v0.0.14
func SimplePaging[T any](currentPage int, perPageItems int) *SimplePageOpsImpl[T]
func (*SimplePageOpsImpl[T]) Fetch ¶ added in v0.0.14
func (paging *SimplePageOpsImpl[T]) Fetch() *PageEntityRes[T]
func (*SimplePageOpsImpl[T]) Limit ¶ added in v0.0.14
func (paging *SimplePageOpsImpl[T]) Limit() int
func (*SimplePageOpsImpl[T]) Offset ¶ added in v0.0.14
func (paging *SimplePageOpsImpl[T]) Offset() int
func (*SimplePageOpsImpl[T]) PageData ¶ added in v0.0.14
func (paging *SimplePageOpsImpl[T]) PageData(totalItems int, pageData *[]T) *SimplePageOpsImpl[T]
type StringOpsImpl ¶
type StringOpsImpl struct {
// contains filtered or unexported fields
}
func StringOps ¶
func StringOps() *StringOpsImpl
func (*StringOpsImpl) As ¶
func (s *StringOpsImpl) As(alias ...string) string
func (*StringOpsImpl) FromColumn ¶
func (s *StringOpsImpl) FromColumn(column string) *StringOpsImpl
func (*StringOpsImpl) FromStr ¶
func (s *StringOpsImpl) FromStr(str string) *StringOpsImpl
func (*StringOpsImpl) Instr ¶
func (s *StringOpsImpl) Instr(find string) *StringOpsImpl
func (*StringOpsImpl) Left ¶
func (s *StringOpsImpl) Left(length int) *StringOpsImpl
func (*StringOpsImpl) Length ¶
func (s *StringOpsImpl) Length() *StringOpsImpl
func (*StringOpsImpl) Locate ¶
func (s *StringOpsImpl) Locate(find string, start int) *StringOpsImpl
func (*StringOpsImpl) Lower ¶
func (s *StringOpsImpl) Lower() *StringOpsImpl
func (*StringOpsImpl) Replace ¶
func (s *StringOpsImpl) Replace(find string, replace string) *StringOpsImpl
func (*StringOpsImpl) Reverse ¶
func (s *StringOpsImpl) Reverse() *StringOpsImpl
func (*StringOpsImpl) Right ¶
func (s *StringOpsImpl) Right(length int) *StringOpsImpl
func (*StringOpsImpl) SubString ¶
func (s *StringOpsImpl) SubString(start int, length int) *StringOpsImpl
func (*StringOpsImpl) Trim ¶
func (s *StringOpsImpl) Trim() *StringOpsImpl
func (*StringOpsImpl) Upper ¶
func (s *StringOpsImpl) Upper() *StringOpsImpl
Source Files ¶
Click to show internal directories.
Click to hide internal directories.