v5:dictionary:metatables
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:dictionary:metatables [2016/01/13 02:06] – ↷ Page moved from dictionary:metatables to v5:dictionary:metatables mnewnham | v5:dictionary:metatables [2025/08/29 14:32] (current) – [metaTables] align parameters dregad | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| string[] metaTables( | string[] metaTables( | ||
| optional string $tableType=false, | optional string $tableType=false, | ||
| - | optional bool $showSchema=false | + | optional bool |
| optional string $mask=false, | optional string $mask=false, | ||
| optional string $schemaMask=false | optional string $schemaMask=false | ||
| Line 13: | Line 13: | ||
| ===== Description ===== | ===== Description ===== | ||
| The function '' | The function '' | ||
| + | ----------------------------- | ||
| + | ===== Casing ===== | ||
| + | The table name is returned in the **natural casing** of the database. Case-insensitive matches should be used when matching with table names. | ||
| + | |||
| ===== Parameters ===== | ===== Parameters ===== | ||
| ==== $tableType ===== | ==== $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 | + | There are 3 possibles values for this parameter: |
| + | |||
| + | ^Value^Description^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | false | Show both tables and views (default) | | ||
| + | |||
| + | * Many drivers also support | ||
| -------------------------------- | -------------------------------- | ||
| Line 33: | Line 41: | ||
| </ | </ | ||
| ==== $mask ==== | ==== $mask ==== | ||
| - | This option define a mask for matching tables . For example, setting $mask = ' | + | This option define a mask for matching tables . For example, setting $mask = ' |
| --------------------------------- | --------------------------------- | ||
| <WRAP right important 300px> | <WRAP right important 300px> | ||
| Line 40: | Line 48: | ||
| ==== $schemaMask ==== | ==== $schemaMask ==== | ||
| This option define a mask for matching schemas . For example, setting $mask = ' | This option define a mask for matching schemas . For example, setting $mask = ' | ||
| + | ---------------------------------------- | ||
| ===== Usage ===== | ===== Usage ===== | ||
| <code php> | <code php> | ||
v5/dictionary/metatables.1452647174.txt.gz · Last modified: (external edit)
