Files
web-site/Internal/package-database/SQLite/DBTool.php
T
2026-07-01 16:44:17 +03:00

67 lines
1.2 KiB
PHP

<?php namespace ZN\Database\SQLite;
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
use ZN\Database\DriverTool, Config;
class DBTool extends DriverTool
{
/**
* List Databases
*
* @return array
*/
public function listDatabases($query = "")
{
return [Config::get('Database', 'database')['database']];
}
/**
* List Tables
*
* @return array
*/
public function listTables($query = "SELECT name FROM sqlite_master WHERE type = 'table'")
{
return $this->runListQuery($query);
}
/**
* Unsupported
*/
public function statusTables($table)
{
return false;
}
/**
* Unsupported
*/
public function optimizeTables($table)
{
return false;
}
/**
* Unsupported
*/
public function repairTables($table, $query = '', $message = '')
{
return false;
}
/**
* Unsupported
*/
public function backup($tables, $fileName, $path)
{
return false;
}
}