diff --git a/src/Engines/WithSQLite.php b/src/Engines/WithSQLite.php new file mode 100644 --- /dev/null +++ b/src/Engines/WithSQLite.php @@ -0,0 +1,29 @@ +escape($table); + $sql = "SHOW TABLE STATUS + FROM `$database` + WHERE Name = '$escapedTable'"; + + return $this->queryScalar($sql) === $table; + } + + public function isView (string $database, string $view) : bool { + $escapedView = $this->escape($view); + $escapedDatabase = $this->escape($database); + + $sql = <<queryScalar($sql) === "VIEW"; + } + +}