1
0
Fork 0

Added basic structure of MySQL statement parsers.

Dieser Commit ist enthalten in:
D4rk4ng3l 2011-06-18 11:10:40 +00:00
Ursprung a211f7b334
Commit 55aa7889e5
8 geänderte Dateien mit 291 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev: 1227 $
* @author $Author: DSB $
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL CREATE statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Create implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL INSERT statement.
*
* @return void
*/
public function parse($statement)
{
echo "$statement\n";
}
}

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev: 1227 $
* @author $Author: DSB $
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL DROP statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Drop implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL INSERT statement.
*
* @return void
*/
public function parse($statement)
{
echo "$statement\n";
}
}

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev: 1227 $
* @author $Author: DSB $
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL INSERT statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Insert implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL INSERT statement.
*
* @return void
*/
public function parse($statement)
{
echo "$statement\n";
}
}

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev: 1227 $
* @author $Author: DSB $
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL LOCK statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Lock implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL INSERT statement.
*
* @return void
*/
public function parse($statement)
{
echo "$statement\n";
}
}

Datei anzeigen

@ -0,0 +1,33 @@
<?php
/**
* This file is part of MySQLDumper released under the GNU/GPL 2 license
* http://www.mysqldumper.net
*
* @package MySQLDumper
* @subpackage SQL-Browser
* @version SVN: $Rev: 1227 $
* @author $Author: DSB $
*/
require_once "Msd/Sql/Parser/Interface.php";
/**
* Class to parse MySQL UNLOCK statements.
* This enables you to analyze and modify MySQL queries, which the user has entered.
*
* @package MySQLDumper
* @subpackage SQL-Browser
*/
class Msd_Sql_Parser_Statement_Unlock implements Msd_Sql_Parser_Interface
{
/**
* Parse the statement.
*
* @param string $statement MySQL INSERT statement.
*
* @return void
*/
public function parse($statement)
{
echo "$statement\n";
}
}