Documentation
¶
Index ¶
- Constants
- func EntityName(tableName string) string
- func ErrCtx(ctx context.Context) error
- func Module() interface{}
- func SetErrCtx(ctx context.Context, err error) context.Context
- func SetTxCtx(ctx context.Context, tx sq.BaseRunner) context.Context
- func TxCtx(ctx context.Context, t sq.BaseRunner) sq.BaseRunner
- type Entity
- type Fetcher
- type Field
- type InfoSchema
Constants ¶
View Source
const ( // TxCtxKey is key for tx TxCtxKey key = iota // ErrCtxKey is key for error of database ErrCtxKey )
Variables ¶
This section is empty.
Functions ¶
func TxCtx ¶ added in v0.8.12
func TxCtx(ctx context.Context, t sq.BaseRunner) sq.BaseRunner
TxCtx return transaction from context if any or return t params
Types ¶
type Entity ¶
type Entity struct {
Name string
Type string
Table string
Cache string
ProjectPackage string
Fields []Field
Forms []Field
}
Entity of database
type InfoSchema ¶
InfoSchema is infomation schema from database
Source Files
¶
Click to show internal directories.
Click to hide internal directories.