MCPcopy
hub / github.com/gogf/gf / ConvertValueForLocal

Method ConvertValueForLocal

database/gdb/gdb.go:332–332  ·  view source on GitHub ↗

ConvertValueForLocal converts a database value to the appropriate Go type. It handles type conversion from database-specific types to Go types.

(ctx context.Context, fieldType string, fieldValue any)

Source from the content-addressed store, hash-verified

330 // ConvertValueForLocal converts a database value to the appropriate Go type.
331 // It handles type conversion from database-specific types to Go types.
332 ConvertValueForLocal(ctx context.Context, fieldType string, fieldValue any) (any, error)
333
334 // GetFormattedDBTypeNameForField returns the formatted database type name and pattern for a field type.
335 GetFormattedDBTypeNameForField(fieldType string) (typeName, typePattern string)

Callers 4

ConvertValueForLocalMethod · 0.65
ConvertValueForLocalMethod · 0.65

Calls

no outgoing calls

Tested by 1