Connector (Database\Connectors)

Connector

class Connector (View source)

Traits

DetectsLostConnections

Methods

array getOptions(array $config)

Get the PDO options based on the configuration.

PDO createConnection(string $dsn, array $config, array $options)

Create a new PDO connection.

array getDefaultOptions()

Get the default PDO connection options.

void setDefaultOptions(array $options)

Set the default PDO connection options.

Details

array getOptions(array $config)

Get the PDO options based on the configuration.

Parameters

array $config

Return Value

array

PDO createConnection(string $dsn, array $config, array $options)

Create a new PDO connection.

Parameters

string $dsn
array $config
array $options

Return Value

PDO

array getDefaultOptions()

Get the default PDO connection options.

Return Value

array

void setDefaultOptions(array $options)

Set the default PDO connection options.

Parameters

array $options

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Database/Connectors/Connector.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部