Class TInlineParameterMapParser
TInlineParameterMapParser class.
The inline parameter map syntax lets you embed the property name, the property type, the column type, and a null value replacement into a parametrized SQL statement.
Method Summary |
array
|
parse
( string $sqlText, array $scope)
Parse the sql text for inline parameters.
|
protected
void
|
Parse inline parameter with syntax as
|
Method Details |
parse
public array parse |
(string $sqlText , array $scope ) |
Parse the sql text for inline parameters.
Input |
string | $sqlText | sql text |
array | $scope | file and node details for exception message. |
Output |
array
| 'sql' and 'parameters' name value pairs. |
Exception |
|
parseMapping
protected void parseMapping |
(string $token , array $scope ) |
Parse inline parameter with syntax as
#propertyName,type=string,dbype=Varchar,nullValue=N/A,handler=string#
Input |
string | $token | parameter token |
array | $scope | file and node details for exception message. |
Output |
Exception |
|
Constant Details |
PARAMETER_TOKEN_REGEXP
Regular expression for parsing inline parameter maps.
Type:
string
Value:
'/#([^#]+)#/'
|
|