diff options
Diffstat (limited to 'src/Statements/OptimizeStatement.php')
-rw-r--r-- | src/Statements/OptimizeStatement.php | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/Statements/OptimizeStatement.php b/src/Statements/OptimizeStatement.php new file mode 100644 index 0000000..cb90f08 --- /dev/null +++ b/src/Statements/OptimizeStatement.php @@ -0,0 +1,50 @@ +<?php + +namespace SqlParser\Statements; + +use SqlParser\Statement; + +/** + * `OPTIMIZE` statement. + * + * OPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE + * tbl_name [, tbl_name] ... + * + * @category Statements + * @package SqlParser + * @subpackage Statements + * @author Dan Ungureanu <udan1107@gmail.com> + * @license http://opensource.org/licenses/GPL-2.0 GNU Public License + */ +class OptimizeStatement extends Statement +{ + + /** + * Options of this statement. + * + * @var array + */ + public static $OPTIONS = array( + + 'TABLE' => 1, + + 'NO_WRITE_TO_BINLOG' => 2, + 'LOCAL' => 3, + ); + + /** + * The options of this query. + * + * @var OptionsFragment + * + * @see static::$OPTIONS + */ + public $options; + + /** + * Optimized tables. + * + * @var FieldFragment[] + */ + public $tables; +} |