WireDatabaseDialect::columnExists()
Does the given column exist in given table?
Usage
// basic usage
$bool = $wireDatabaseDialect->columnExists(string $table);
// usage with all arguments
$bool = $wireDatabaseDialect->columnExists(string $table, string $column = '', bool $getInfo = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$table | string | |
$column (optional) | string | |
$getInfo (optional) | bool |
Return value
bool array
WireDatabaseDialect methods and properties
API reference based on ProcessWire core version 3.0.275