October\Rain\Database\Connectors\ConnectionFactory

Overview

Extends
  • Illuminate\Database\Connectors\ConnectionFactory

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $container - The IoC container instance. (defined in Illuminate\Database\Connectors\ConnectionFactory)

Public Methods

Show inherited public methods

Inherited Public Methods

  • __construct() - Create a new connection factory instance. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • createConnector() - Create a connector instance based on the configuration. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • make() - Establish a PDO connection based on the configuration. (defined in Illuminate\Database\Connectors\ConnectionFactory)

Protected Methods

protected createConnection()

protected createConnection(
    string $driver,
    PDO $connection,
    string $database,
    string $prefix = '',
    array $config = []
): Illuminate\Database\Connection 

Create a new connection instance.

protected createPdoResolverWithHosts()

protected createPdoResolverWithHosts(array $config): Closure 

Carbon copy of parent. Except Laravel creates an "uncatchable" exception, this is resolved as part of the override below.

Show inherited protected methods

Inherited Protected Methods

  • createPdoResolver() - Create a new Closure that resolves to a PDO instance. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • createPdoResolverWithoutHosts() - Create a new Closure that resolves to a PDO instance where there is no configured host. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • createReadPdo() - Create a new PDO instance for reading. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • createReadWriteConnection() - Create a read / write database connection instance. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • createSingleConnection() - Create a single database connection instance. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • getReadConfig() - Get the read configuration for a read / write connection. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • getReadWriteConfig() - Get a read / write level configuration. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • getWriteConfig() - Get the write configuration for a read / write connection. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • mergeReadWriteConfig() - Merge a configuration for a read / write connection. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • parseConfig() - Parse and prepare the database configuration. (defined in Illuminate\Database\Connectors\ConnectionFactory)
  • parseHosts() - Parse the hosts configuration item into an array. (defined in Illuminate\Database\Connectors\ConnectionFactory)