* @license http://opensource.org/licenses/GPL-2.0 GNU Public License */ class ReplaceStatement extends Statement { /** * Options for `REPLACE` statements and their slot ID. * * @var array */ public static $OPTIONS = array( 'LOW_PRIORITY' => 1, 'DELAYED' => 1, ); /** * The clauses of this statement, in order. * * @see Statement::$CLAUSES * * @var array */ public static $CLAUSES = array( 'REPLACE' => array('REPLACE', 2), // Used for options. '_OPTIONS' => array('_OPTIONS', 1), 'INTO' => array('FROM', 3), 'VALUES' => array('VALUES', 1), 'SET' => array('PARTITION', 3), ); /** * Tables used as target for this statement. * * @var IntoKeyword */ public $into; /** * Values to be replaced. * * @var Array2d */ public $values; /** * The replaced values. * * @var SetOperation[] */ public $set; }