Remove some useless code, extract an exception into its own class
This commit is contained in:
parent
676f432d2d
commit
0a0548d754
@ -35,6 +35,7 @@ define('QDRIVER_PATH', QBASE_PATH.'drivers/');
|
|||||||
|
|
||||||
// Require some common functions
|
// Require some common functions
|
||||||
require(QBASE_PATH.'common.php');
|
require(QBASE_PATH.'common.php');
|
||||||
|
require(QBASE_PATH.'core/BadDBDriverException.php');
|
||||||
|
|
||||||
// Load Query Classes
|
// Load Query Classes
|
||||||
spl_autoload_register(function ($class)
|
spl_autoload_register(function ($class)
|
||||||
|
26
core/BadDBDriverException.php
Normal file
26
core/BadDBDriverException.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Query
|
||||||
|
*
|
||||||
|
* Free Query Builder / Database Abstraction Layer
|
||||||
|
*
|
||||||
|
* @package Query
|
||||||
|
* @author Timothy J. Warren
|
||||||
|
* @copyright Copyright (c) 2012 - 2014
|
||||||
|
* @link https://github.com/aviat4ion/Query
|
||||||
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Query;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generic exception for bad drivers
|
||||||
|
*
|
||||||
|
* @package Query
|
||||||
|
* @subpackage Core
|
||||||
|
*/
|
||||||
|
class BadDBDriverException extends \InvalidArgumentException {}
|
||||||
|
|
||||||
|
// End of BadDBDriverException.php
|
@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
namespace Query\Driver;
|
namespace Query\Driver;
|
||||||
|
|
||||||
use Query\Table\Table_Builder;
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,16 +15,6 @@
|
|||||||
|
|
||||||
namespace Query;
|
namespace Query;
|
||||||
|
|
||||||
/**
|
|
||||||
* Generic exception for bad drivers
|
|
||||||
*
|
|
||||||
* @package Query
|
|
||||||
* @subpackage Core
|
|
||||||
*/
|
|
||||||
class BadDBDriverException extends \InvalidArgumentException {}
|
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connection manager class to manage connections for the
|
* Connection manager class to manage connections for the
|
||||||
* Query method
|
* Query method
|
||||||
|
Loading…
Reference in New Issue
Block a user