final class DbTableExists (View source)

Methods

__construct(DatabaseInterface $dbi)

No description

bool
selectDatabase(DatabaseName $databaseName)

No description

bool
hasTable(DatabaseName $database, TableName $table)

Check if a table exists in the given database.

Details

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

bool selectDatabase(DatabaseName $databaseName)

No description

Parameters

DatabaseName $databaseName

Return Value

bool

bool hasTable(DatabaseName $database, TableName $table)

Check if a table exists in the given database.

It will return true if the table exists, regardless if it's temporary or permanent.

Parameters

DatabaseName $database
TableName $table

Return Value

bool