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

Method TableFields

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

TableFields returns detailed information about all fields in the specified table. The returned map keys are field names and values contain field metadata.

(ctx context.Context, table string, schema ...string)

Source from the content-addressed store, hash-verified

322 // TableFields returns detailed information about all fields in the specified table.
323 // The returned map keys are field names and values contain field metadata.
324 TableFields(ctx context.Context, table string, schema ...string) (map[string]*TableField, error)
325
326 // ConvertValueForField converts a value to the appropriate type for a database field.
327 // It handles type conversion from Go types to database-specific types.

Callers 15

Test_TableFieldsFunction · 0.65
TestTableFieldsFunction · 0.65
Test_TableFieldsFunction · 0.65
Test_TableFields_TypesFunction · 0.65
Test_DB_TableFieldsFunction · 0.65

Calls

no outgoing calls

Tested by 15

Test_TableFieldsFunction · 0.52
TestTableFieldsFunction · 0.52
Test_TableFieldsFunction · 0.52
Test_TableFields_TypesFunction · 0.52
Test_DB_TableFieldsFunction · 0.52