Documentation
¶
Index ¶
- Constants
- func SkipHooks(ctx context.Context) context.Context
- type Columns
- func (c Columns) Except(cols ...string) Columns
- func (c Columns) Names() []string
- func (c Columns) Only(cols ...string) Columns
- func (c Columns) WithAggFunc(a, b string) Columns
- func (c Columns) WithParent(p ...string) Columns
- func (c Columns) WithPrefix(prefix string) Columns
- func (c Columns) WriteSQL(w io.Writer, d bob.Dialect, start int) ([]any, error)
- type ExtraLoader
- type Hook
- type Hooks
- type RelSide
- type Relationship
Constants ¶
View Source
const ( // The prefix of an eager loaded relationship CtxLoadPrefix ctxKey = iota // The alias of an eager loader's parent CtxLoadParentAlias )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Columns ¶
type Columns struct {
// contains filtered or unexported fields
}
func NewColumns ¶
func (Columns) WithAggFunc ¶
func (Columns) WithParent ¶
func (Columns) WithPrefix ¶
type ExtraLoader ¶
type ExtraLoader struct {
Fs []bob.LoadFunc
OneType reflect.Type
SliceType reflect.Type
// contains filtered or unexported fields
}
func (*ExtraLoader) AppendLoader ¶
func (a *ExtraLoader) AppendLoader(fs ...bob.LoadFunc)
func (*ExtraLoader) Collect ¶
func (a *ExtraLoader) Collect(v any) error
type Relationship ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
drivers
Package drivers talks to various database backends and retrieves table, column, type, and foreign key information
|
Package drivers talks to various database backends and retrieves table, column, type, and foreign key information |
|
importers
Package importers helps with dynamic imports for templating
|
Package importers helps with dynamic imports for templating |
Click to show internal directories.
Click to hide internal directories.