Documentation
¶
Index ¶
- func BoolToInt(v bool) int
- func Float64ToTypesNullDecimal(v float64) types.NullDecimal
- func GetInputFromContext(ctx context.Context, key string) map[string]interface{}
- func GetNestedPreloads(ctx *graphql.RequestContext, fields []graphql.CollectedField, prefix string) (preloads []string)
- func GetPreloadMods(ctx context.Context, preloadColumnMap map[string]ColumnSetting) (queryMods []qm.QueryMod)
- func GetPreloadModsWithLevel(ctx context.Context, preloadColumnMap map[string]ColumnSetting, level string) (queryMods []qm.QueryMod)
- func GetPreloadString(prefix, name string) string
- func GetPreloadsFromContext(ctx context.Context, level string) []string
- func IDToBoiler(ID string) uint
- func IDToGraphQL(id uint, tableName string) string
- func IDToNullBoiler(ID string) null.Uint
- func IDsToBoiler(ids []string) []uint
- func IDsToBoilerInterfaces(ids []string) []interface{}
- func IDsToGraphQL(ids []uint, tableName string) []string
- func Int8ToInt(v int8) int
- func IntIsFilled(v int) bool
- func IntToBool(v int) bool
- func IntToInt8(v int) int8
- func IntToTimeTime(v int) time.Time
- func IntToUint(v int) uint
- func IntsToInterfaces(ints []int) []interface{}
- func NullDotBoolToPointerBool(v null.Bool) *bool
- func NullDotBoolToPointerInt(v null.Bool) *int
- func NullDotFloat64ToPointerFloat64(v null.Float64) *float64
- func NullDotIntIsFilled(v null.Int) bool
- func NullDotIntToPointerInt(v null.Int) *int
- func NullDotIntToUint(v null.Int) uint
- func NullDotStringToPointerString(v null.String) *string
- func NullDotStringToString(v null.String) string
- func NullDotTimeToPointerInt(v null.Time) *int
- func NullDotUintIsFilled(v null.Uint) bool
- func NullDotUintToPointerInt(v null.Uint) *int
- func NullDotUintToUint(v null.Uint) uint
- func PointerBoolToNullDotBool(v *bool) null.Bool
- func PointerFloat64ToNullDotFloat64(v *float64) null.Float64
- func PointerIntToInt(v *int) int
- func PointerIntToNullDotBool(v *int) null.Bool
- func PointerIntToNullDotInt(v *int) null.Int
- func PointerIntToNullDotTime(v *int) null.Time
- func PointerIntToNullDotUint(v *int) null.Uint
- func PointerStringToNullDotString(v *string) null.String
- func PointerStringToString(v *string) string
- func PointerStringToTypesNullDecimal(v *string) types.NullDecimal
- func PreloadsContain(a []string, v string) bool
- func PreloadsContainMoreThanId(a []string, v string) bool
- func RemovedIDsToUint(removedIds []RemovedID) []uint
- func StringToNullDotString(v string) null.String
- func StripPreloads(preloads []string, prefix string) []string
- func TimeTimeToInt(v time.Time) int
- func TypesNullDecimalToFloat64(v types.NullDecimal) float64
- func TypesNullDecimalToPointerString(v types.NullDecimal) *string
- func UintIsFilled(v uint) bool
- func UintToInt(v uint) int
- type ColumnSetting
- type RemovedID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64ToTypesNullDecimal ¶
func Float64ToTypesNullDecimal(v float64) types.NullDecimal
func GetInputFromContext ¶
func GetNestedPreloads ¶
func GetNestedPreloads(ctx *graphql.RequestContext, fields []graphql.CollectedField, prefix string) (preloads []string)
func GetPreloadMods ¶
func GetPreloadModsWithLevel ¶
func GetPreloadString ¶
func GetPreloadsFromContext ¶
func IDToBoiler ¶
func IDToGraphQL ¶
func IDToNullBoiler ¶
func IDsToBoiler ¶
func IDsToBoilerInterfaces ¶
func IDsToBoilerInterfaces(ids []string) []interface{}
func IDsToGraphQL ¶
func IntIsFilled ¶
func IntToTimeTime ¶
func IntsToInterfaces ¶
func IntsToInterfaces(ints []int) []interface{}
func NullDotBoolToPointerInt ¶
func NullDotIntIsFilled ¶
func NullDotIntToPointerInt ¶
func NullDotIntToUint ¶
func NullDotStringToString ¶
func NullDotTimeToPointerInt ¶
func NullDotUintIsFilled ¶
func NullDotUintToPointerInt ¶
func NullDotUintToUint ¶
func PointerIntToInt ¶
func PointerIntToNullDotBool ¶
func PointerIntToNullDotInt ¶
func PointerIntToNullDotTime ¶
func PointerIntToNullDotUint ¶
func PointerStringToString ¶
func PointerStringToTypesNullDecimal ¶
func PointerStringToTypesNullDecimal(v *string) types.NullDecimal
func PreloadsContain ¶
func RemovedIDsToUint ¶
func StringToNullDotString ¶
func StripPreloads ¶
e.g. sometimes input is deeper and we want createdFlowBlock.block.blockChoice => when we fetch block in database we want to strip flowBlock
func TimeTimeToInt ¶
func TypesNullDecimalToFloat64 ¶
func TypesNullDecimalToFloat64(v types.NullDecimal) float64
func TypesNullDecimalToPointerString ¶
func TypesNullDecimalToPointerString(v types.NullDecimal) *string
func UintIsFilled ¶
Types ¶
type ColumnSetting ¶
Click to show internal directories.
Click to hide internal directories.