Documentation
¶
Overview ¶
Code generated by ormgen; DO NOT EDIT.
Index ¶
- func LoggerFromContext(ctx context.Context) *slog.Loggerdeprecated
- func LoggerWithContext(ctx context.Context, logger *slog.Logger) context.Contextdeprecated
- type Condition
- func And(conditions ...Condition) Condition
- func Between(column string, value1, value2 interface{}) Condition
- func Equal(column string, value interface{}) Condition
- func GreaterThan(column string, value interface{}) Condition
- func GreaterThanOrEqual(column string, value interface{}) Condition
- func In(column string, values ...interface{}) Condition
- func IsNotNull(column string) Condition
- func IsNull(column string) Condition
- func LessThan(column string, value interface{}) Condition
- func LessThanOrEqual(column string, value interface{}) Condition
- func Like(column string, value interface{}) Condition
- func NotBetween(column string, value1, value2 interface{}) Condition
- func NotEqual(column string, value interface{}) Condition
- func NotIn(column string, values ...interface{}) Condition
- func NotLike(column string, value interface{}) Condition
- func Or(conditions ...Condition) Condition
- type PlaceholderGenerator
- type QueryConfig
- type QueryOption
- type QueryerContextdeprecated
- type ResultOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerFromContext
deprecated
Types ¶
type Condition ¶
type Condition interface {
// contains filtered or unexported methods
}
func GreaterThan ¶
func GreaterThanOrEqual ¶
func LessThanOrEqual ¶
func NotBetween ¶
type PlaceholderGenerator ¶
type QueryConfig ¶
type QueryConfig struct {
// contains filtered or unexported fields
}
type QueryOption ¶
type QueryOption interface {
ApplyQueryOption(c *QueryConfig)
}
func Where ¶
func Where(condition Condition) QueryOption
type QueryerContext
deprecated
type QueryerContext interface { ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row }
Deprecated: Use ormcommon.QueryerContext instead.
type ResultOption ¶
type ResultOption interface { ApplyResultOption(c *QueryConfig) QueryOption }
func Limit ¶
func Limit(limit int) ResultOption
func OrderBy ¶
func OrderBy(orderBy ...string) ResultOption
func OrderByDesc ¶
func OrderByDesc(orderBy ...string) ResultOption
func QueryPrefix ¶
func QueryPrefix(prefix string) ResultOption
func WithPlaceholderGenerator ¶
func WithPlaceholderGenerator(f PlaceholderGenerator) ResultOption
Click to show internal directories.
Click to hide internal directories.