WireDatabaseDialect::connectionConfig()

Get PDO connection configuration from given $config

Returns array with 'dsn', 'user', 'pass', 'options' and optionally 'reader' (see WireDatabasePDO constructor).

Usage

$array = WireDatabaseDialect::connectionConfig(Config $config, array $options);

Arguments

NameType(s)Description
$configConfig
$optionsarray

PDO driver options already determined by WireDatabasePDO

Return value

array

Exceptions

Method can throw exceptions on error:

  • WireException


WireDatabaseDialect methods and properties

API reference based on ProcessWire core version 3.0.275