Class AfMysqlDbHelper
A generic database helper for MySQL.
- CComponent
-
AfBaseDbHelper
-
AfMysqlDbHelper
Package: advancedfilters\dbhelpers
Author: Keith Burton kburton@kappasoft.net
Located at dbhelpers/AfMysqlDbHelper.php
Author: Keith Burton kburton@kappasoft.net
Located at dbhelpers/AfMysqlDbHelper.php
Methods summary
public
string
|
#
convertExpressionToDecimal( string $dbExpression, integer $numDigits, integer $decimalPlaces, integer $nonNumericResultValue )
Alters a database expression so that strings are converted to decimals. |
public
boolean
|
#
checkRegex( CDbConnection $dbConnection, string $regex )
Checks regular expression syntax using the REGEXP keyword. Documentation for this syntax can be found on the MySQL website. |
public
|
#
addRegexCondition( CDbCriteria $criteria, string $columnExpression, string $regex, boolean $invertLogic )
Adds a regex condition using the REGEXP keyword. Documentation for this syntax can be found on the MySQL website. |
Methods inherited from AfBaseDbHelper
convertEmptyStringToNull(),
convertNullToEmptyString()