* @copyright 2012 - 2022 Timothy J. Warren * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link https://git.timshomepage.net/aviat/Query * @version 4.0.0 */ namespace Query\Drivers\Sqlite; use Query\Drivers\AbstractSQL; use Query\Exception\NotImplementedException; /** * SQLite Specific SQL */ class SQL extends AbstractSQL { /** * Get the query plan for the sql query */ public function explain(string $sql): string { return "EXPLAIN QUERY PLAN {$sql}"; } /** * Random ordering keyword */ public function random(): string { return ' RANDOM()'; } /** * Returns sql to list other databases. Meaningless for SQLite, as this * just returns the database(s) that we are currently connected to. */ public function dbList(): string { return ''; } /** * Returns sql to list tables */ public function tableList(): string { return <<