pike.hubbe.net

[Top]
Sql
Sql.postgres
previousSql.postgres()->list_dbs() Sql.postgres()->list_tables()next

Method Sql.postgres()->list_fields()


Method list_fields

array(mapping(string:mixed)) Sql.postgres()->list_fields(string table, void|string wild)

Description

Returns a mapping, indexed on the column name, of mappings describing the attributes of a table of the current database. If a glob is specified, will return descriptions only of the columns matching it.

The current fields are:

"has_rules" : int 
"is_shared" : int 
"expires" : string

A string representing an internal date.

"owner" : string

It's the textual representation of a Postgres uid.

"length" : string 
"text" : string

A textual description of the internal (to the server) type-name

"default" : mixed 


Extracted from Pike v7.3 release 11 at 2001-11-03.