128 lines
2.6 KiB
YAML
128 lines
2.6 KiB
YAML
name: PostgresConnector
|
|
class_comment: null
|
|
dependencies:
|
|
- name: ParsesSearchPath
|
|
type: class
|
|
source: Illuminate\Database\Concerns\ParsesSearchPath
|
|
- name: PDO
|
|
type: class
|
|
source: PDO
|
|
- name: ParsesSearchPath
|
|
type: class
|
|
source: ParsesSearchPath
|
|
properties:
|
|
- name: options
|
|
visibility: protected
|
|
comment: '# * The default PDO connection options.
|
|
|
|
# *
|
|
|
|
# * @var array'
|
|
methods:
|
|
- name: connect
|
|
visibility: public
|
|
parameters:
|
|
- name: config
|
|
comment: "# * The default PDO connection options.\n# *\n# * @var array\n# */\n#\
|
|
\ protected $options = [\n# PDO::ATTR_CASE => PDO::CASE_NATURAL,\n# PDO::ATTR_ERRMODE\
|
|
\ => PDO::ERRMODE_EXCEPTION,\n# PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,\n\
|
|
# PDO::ATTR_STRINGIFY_FETCHES => false,\n# ];\n# \n# /**\n# * Establish a database\
|
|
\ connection.\n# *\n# * @param array $config\n# * @return \\PDO"
|
|
- name: configureIsolationLevel
|
|
visibility: protected
|
|
parameters:
|
|
- name: connection
|
|
- name: config
|
|
comment: '# * Set the connection transaction isolation level.
|
|
|
|
# *
|
|
|
|
# * @param \PDO $connection
|
|
|
|
# * @param array $config
|
|
|
|
# * @return void'
|
|
- name: configureTimezone
|
|
visibility: protected
|
|
parameters:
|
|
- name: connection
|
|
- name: config
|
|
comment: '# * Set the timezone on the connection.
|
|
|
|
# *
|
|
|
|
# * @param \PDO $connection
|
|
|
|
# * @param array $config
|
|
|
|
# * @return void'
|
|
- name: configureSearchPath
|
|
visibility: protected
|
|
parameters:
|
|
- name: connection
|
|
- name: config
|
|
comment: '# * Set the "search_path" on the database connection.
|
|
|
|
# *
|
|
|
|
# * @param \PDO $connection
|
|
|
|
# * @param array $config
|
|
|
|
# * @return void'
|
|
- name: quoteSearchPath
|
|
visibility: protected
|
|
parameters:
|
|
- name: searchPath
|
|
comment: '# * Format the search path for the DSN.
|
|
|
|
# *
|
|
|
|
# * @param array $searchPath
|
|
|
|
# * @return string'
|
|
- name: getDsn
|
|
visibility: protected
|
|
parameters:
|
|
- name: config
|
|
comment: '# * Create a DSN string from a configuration.
|
|
|
|
# *
|
|
|
|
# * @param array $config
|
|
|
|
# * @return string'
|
|
- name: addSslOptions
|
|
visibility: protected
|
|
parameters:
|
|
- name: dsn
|
|
- name: config
|
|
comment: '# * Add the SSL options to the DSN.
|
|
|
|
# *
|
|
|
|
# * @param string $dsn
|
|
|
|
# * @param array $config
|
|
|
|
# * @return string'
|
|
- name: configureSynchronousCommit
|
|
visibility: protected
|
|
parameters:
|
|
- name: connection
|
|
- name: config
|
|
comment: '# * Configure the synchronous_commit setting.
|
|
|
|
# *
|
|
|
|
# * @param \PDO $connection
|
|
|
|
# * @param array $config
|
|
|
|
# * @return void'
|
|
traits:
|
|
- Illuminate\Database\Concerns\ParsesSearchPath
|
|
- PDO
|
|
- ParsesSearchPath
|
|
interfaces:
|
|
- ConnectorInterface
|