Method __builtin.Sql.Connection()->low_list_fields()


Method low_list_fields

protected array(mapping(string:mixed))|zero low_list_fields(string table)

Description

List fields available in the specified table

Parameter table

Table to list the fields of.

Returns

Returns an array of mappings with at least the fields:

"name" : string

The name of the field.

"table" : string

The name of the table.

Typically there are also entries for the field types, field widths and nullability.

This function is intended for overriding by drivers not supporting wildcard filtering of field names.

Note

The default implementation attempts the query "SHOW FIELDS FROM 'table'", and then performs some normalization of the result.

See also

list_fields()