43 lines
673 B
PHP
43 lines
673 B
PHP
<?php
|
|
/**
|
|
* OpenSQLManager
|
|
*
|
|
* Free Database manager for Open Source Databases
|
|
*
|
|
* @author Timothy J. Warren
|
|
* @copyright Copyright (c) 2012
|
|
* @link https://github.com/aviat4ion/OpenSQLManager
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
*/
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// Test for support
|
|
if( ! in_array('sqlite', pdo_drivers()))
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
/**
|
|
* SQLite specific class
|
|
*
|
|
* @extends DB_PDO
|
|
*/
|
|
class SQLite extends DB_PDO {
|
|
|
|
function __construct($dsn)
|
|
{
|
|
parent::__construct($dsn);
|
|
}
|
|
|
|
/**
|
|
* Empty a table
|
|
*
|
|
* @param string $table
|
|
*/
|
|
function truncate($table)
|
|
{
|
|
|
|
}
|
|
|
|
} |