This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
OpenSQLManager/src/databases/sqlite.php
Timothy Warren 39b2688675 Per-db driver checks
Only show databases that are supported by PHP
2012-01-31 16:29:48 -05:00

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)
{
}
}