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

Class: MDB2_Driver_Reverse_mssql

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

Class Overview

MDB2_Driver_Reverse_Common
   |
   --MDB2_Driver_Reverse_mssql

MDB2 MSSQL driver for the schema reverse engineering module


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 57]
MDB2 MSSQL driver for the schema reverse engineering module


[ Top ]


Method Detail

tableInfo   [line 80]

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()

Overrides MDB2_Driver_Reverse_Common::tableInfo() (Returns information about a table or a result set)

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 ]

_add_flag   [line 249]

void _add_flag( array &$array, string $value)

Adds a string to the flags array if the flag is not yet in there
  • if there is no flag present the array is created


Parameters:

array   &$array   —  the reference to the flag-array
string   $value   —  the flag value

[ Top ]

_mssql_field_flags   [line 176]

string _mssql_field_flags( string $table, string $column)

Get a column's flags

Supports "not_null", "primary_key", "auto_increment" (mssql identity), "timestamp" (mssql timestamp), "unique_key" (mssql unique index, unique check or primary_key) and "multiple_key" (multikey index)

mssql timestamp is NOT similar to the mysql timestamp so this is maybe not useful at all - is the behaviour of mysql_field_flags that primary keys are alway unique? is the interpretation of multiple_key correct?


Parameters:

string   $table   —  the table name
string   $column   —  the field name

[ Top ]


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