MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_Reverse_pgsql

Source Location: /MDB2-2.0.0beta4/MDB2/Driver/Reverse/pgsql.php

Class Overview

MDB2_Driver_Reverse_common
   |
   --MDB2_Driver_Reverse_pgsql

MDB2 PostGreSQL driver for the schema reverse engineering module


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
MDB2 PostGreSQL driver for the schema reverse engineering module


[ Top ]


Method Detail

getTableFieldDefinition   [line 68]

mixed getTableFieldDefinition( string $table, string $field_name)

get the stucture of a field into an array
  • Return: data array on success, a MDB2 error on failure
  • Access: public

Parameters:

string   $table   —  name of table that should be used in method
string   $field_name   —  name of field that should be used in method

[ Top ]

getTableIndexDefinition   [line 164]

mixed getTableIndexDefinition( string $table, string $index_name)

get the stucture of an index into an array
  • Return: data array on success, a MDB2 error on failure
  • Access: public

Parameters:

string   $table   —  name of table that should be used in method
string   $index_name   —  name of index that should be used in method

[ Top ]

tableInfo   [line 215]

array tableInfo( object|string $result, [int $mode = null])

Returns information about a table or a result set

NOTE: only supports 'table' and 'flags' if $result is a table name.

  • Return: an associative array with the information requested. A MDB2_Error object on failure.
  • See: MDB2_common::tableInfo()

Parameters:

object|string   $result   —  MDB2_result object from a query or a string containing the name of a table. While this also accepts a query result resource identifier, this behavior is deprecated.
int   $mode   —  a valid tableInfo mode

[ Top ]

_pgFieldFlags   [line 304]

string _pgFieldFlags( int $resource, int $num_field, $table_name)

Get a column's flags

Supports "not_null", "default_value", "primary_key", "unique_key" and "multiple_key". The default value is passed through rawurlencode() in case there are spaces in it.

  • Return: the flags
  • Access: protected

Parameters:

int   $resource   —  the PostgreSQL result identifier
int   $num_field   —  the field number
   $table_name   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:20:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.