[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/aura/sql/src/ -> ExtendedPdo.php (summary)

This file is part of Aura for PHP.

License: https://opensource.org/licenses/MIT MIT
File Size: 163 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ExtendedPdo:: (5 methods):
  __construct()
  connect()
  disconnect()
  __debugInfo()
  getPdo()


Class: ExtendedPdo  - X-Ref

A lazy-connecting PDO with extended methods.

__construct($dsn,$username = null,$password = null,array $options = [],array $queries = [],ProfilerInterface $profiler = null)   X-Ref
Constructor.

This overrides the parent so that it can take connection attributes as a
constructor parameter, and set them after connection.

param: string $dsn The data source name for the connection.
param: string $username The username for the connection.
param: string $password The password for the connection.
param: array $options Driver-specific options for the connection.
param: array $queries Queries to execute after the connection.
param: ProfilerInterface $profiler Tracks and logs query profiles.

connect()   X-Ref
Connects to the database.

return: null

disconnect()   X-Ref
Disconnects from the database.

return: null

__debugInfo()   X-Ref
The purpose of this method is to hide sensitive data from stack traces.

return: array

getPdo()   X-Ref
Return the inner PDO (if any)

return: \PDO



Generated: Thu Sep 19 05:10:04 2024 Cross-referenced by PHPXref 0.7.1