reference:metatables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
reference:metatables [2015/07/24 22:25] – mnewnham | reference:metatables [2015/08/12 02:07] (current) – removed mnewnham | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== metaTables ===== | ||
- | ~~NOTOC~~ | ||
- | <WRAP right box> | ||
- | == Syntax == | ||
- | string[] metaTables( | ||
- | optional string $tableType=false, | ||
- | optional bool $showSchema=false | ||
- | optional string $mask=false, | ||
- | optional string $schemaMask=false | ||
- | ) | ||
- | | ||
- | </ | ||
- | ===== Description ===== | ||
- | The function '' | ||
- | ===== Parameters ===== | ||
- | ==== $tableType ===== | ||
- | There are 2 available options to this parameter: | ||
- | ^Option^Description^ | ||
- | |TABLES|Only show tables in current schema| | ||
- | |VIEWS|Only show views in current schema| | ||
- | ** Many databases support ' | ||
- | -------------------------------- | ||
- | |||
- | <WRAP right important 300px> | ||
- | Support for this option is limited to the IBM DB2 driver | ||
- | </ | ||
- | ==== $showSchema ==== | ||
- | This parameter attaches the schema name to the table | ||
- | --------------------------------- | ||
- | <WRAP right important 300px> | ||
- | Support for this option is limited. Check the database driver documentation. | ||
- | </ | ||
- | ==== $mask ==== | ||
- | This option define a mask for matching tables . For example, setting $mask = ' | ||
- | --------------------------------- | ||
- | <WRAP right important 300px> | ||
- | Support for this option is limited to the deprecated ODBC driver for IBM and may be removed in future releases . Check the database driver documentation. | ||
- | </ | ||
- | ==== $schemaMask ==== | ||
- | This option define a mask for matching schemas . For example, setting $mask = ' | ||
- | ===== Usage ===== | ||
- | <code php> | ||
- | /* | ||
- | * Assume connection to DB2 database ' | ||
- | */ | ||
- | |||
- | $ar = $db-> | ||
- | /* | ||
- | * $ar returns: | ||
- | [0] => DEPT | ||
- | [1] => EMP | ||
- | [2] => EMPACT | ||
- | [3] => EMP_ACT | ||
- | [4] => PROJ | ||
- | [5] => ADEFUSR | ||
- | ...... | ||
- | </ |
reference/metatables.1437769538.txt.gz · Last modified: (external edit)