2012-03-15 09:25:18 -04:00
|
|
|
<?php
|
|
|
|
/**
|
2012-04-10 14:06:34 -04:00
|
|
|
* OpenSQLManager
|
2012-03-15 09:25:18 -04:00
|
|
|
*
|
2012-04-10 14:06:34 -04:00
|
|
|
* Free Database manager for Open Source Databases
|
2012-03-15 09:25:18 -04:00
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
2012-04-10 14:06:34 -04:00
|
|
|
* @link https://github.com/aviat4ion/OpenSQLManager
|
2012-11-08 14:28:49 -05:00
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
2012-03-15 09:25:18 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
2012-11-08 14:28:49 -05:00
|
|
|
* Class for testing Query Builder with SQLite
|
2012-03-15 09:25:18 -04:00
|
|
|
*/
|
2012-03-19 13:24:36 -04:00
|
|
|
class SQLiteQBTest extends QBTest {
|
2012-11-08 14:28:49 -05:00
|
|
|
|
2012-04-24 14:00:44 -04:00
|
|
|
public function __construct()
|
2012-03-15 09:25:18 -04:00
|
|
|
{
|
|
|
|
parent::__construct();
|
2012-11-08 14:28:49 -05:00
|
|
|
|
2012-04-30 16:06:06 -04:00
|
|
|
$path = QTEST_DIR.QDS.'db_files'.QDS.'test_sqlite.db';
|
2012-03-15 09:25:18 -04:00
|
|
|
$params = new Stdclass();
|
|
|
|
$params->type = 'sqlite';
|
|
|
|
$params->file = $path;
|
|
|
|
$params->host = 'localhost';
|
2012-11-07 08:42:34 -05:00
|
|
|
$params->prefix = 'create_';
|
2012-11-08 14:28:49 -05:00
|
|
|
$this->db = Query($params);
|
|
|
|
|
2012-03-19 13:58:14 -04:00
|
|
|
// echo '<hr /> SQLite Queries <hr />';
|
2012-03-15 09:25:18 -04:00
|
|
|
}
|
|
|
|
}
|