Method Sql.pgsql()->list_fields()
- Method
list_fields
finalarray(mapping(string:mixed)) list_fields(void|stringtable,void|stringglob)- Returns
A mapping, indexed on the column name, of mappings describing the attributes of a table of the current database. The currently defined fields are:
"schema":stringSchema the table belongs to
"table":stringName of the table
"kind":stringType of table
"owner":stringTableowner
"rowcount":intEstimated rowcount of the table
"datasize":intEstimated total datasize of the table in bytes
"indexsize":intEstimated total indexsize of the table in bytes
"name":stringName of the column
"type":stringA textual description of the internal (to the server) column type-name
"typeoid":intThe OID of the internal (to the server) column type
"length":stringSize of the columndatatype
"default":mixedDefault value for the column
"is_shared":intIf the table has any indices
"has_index":int"has_primarykey":intIf the table has a primary key
- Parameter
glob If specified, list only the tables with matching names. Setting it to
*will include system columns in the list.