WIP on docs and added basic enums supports

This commit is contained in:
mcndave committed 2023-01-14 02:19:42 +00:00
1 parent 497fe5547b
commit b6752f4364
22 files changed
+367 -35

No files matched your search

+33
View File
@@ -314,6 +314,39 @@ class QueryBuilder implements Query\QueryBuilderInterface
return $join;
}
public function showDatabases() : self
{
$show = new Query\Show();
$this->push($show);
$show->set(Query\Show::SQL_SHOW_DATABASES);
return $this;
}
public function showTables(? string $database = null) : self
{
$show = new Query\Show();
$this->push($show);
$show->set(Query\Show::SQL_SHOW_TABLES, $database);
return $this;
}
public function showColumns(string $table) : self
{
$show = new Query\Show();
$this->push($show);
$show->set(Query\Show::SQL_SHOW_COLUMNS, $table);
return $this;
}
public function truncate(string $table, ? string $alias = null, ? string $database = null, ? string $schema = null) : self
{
if ( $schema ) {