From 25b7d2aab61ae6421398d3abae5da6ffe590333d Mon Sep 17 00:00:00 2001 From: s1n Date: Sat, 28 Mar 2020 10:36:41 -0700 Subject: 3/28/2020, 10:36 --- .../vendor/aura/sql/src/ExtendedPdoInterface.php | 267 +++++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 includes/vendor/aura/sql/src/ExtendedPdoInterface.php (limited to 'includes/vendor/aura/sql/src/ExtendedPdoInterface.php') diff --git a/includes/vendor/aura/sql/src/ExtendedPdoInterface.php b/includes/vendor/aura/sql/src/ExtendedPdoInterface.php new file mode 100644 index 0000000..77e49b1 --- /dev/null +++ b/includes/vendor/aura/sql/src/ExtendedPdoInterface.php @@ -0,0 +1,267 @@ + + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @param string $class_name The name of the class to create. + * + * @param array $ctor_args Arguments to pass to the object constructor. + * + * @return object|false + * + */ + public function fetchObject( + $statement, + array $values = array(), + $class_name = 'StdClass', + array $ctor_args = array() + ); + + /** + * + * Fetches a sequential array of rows from the database; the rows + * are represented as objects, where the column values are mapped to + * object properties. + * + * Warning: PDO "injects property-values BEFORE invoking the constructor - + * in other words, if your class initializes property-values to defaults + * in the constructor, you will be overwriting the values injected by + * fetchObject() !" + * + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @param string $class_name The name of the class to create from each + * row. + * + * @param array $ctor_args Arguments to pass to each object constructor. + * + * @return array + * + */ + public function fetchObjects( + $statement, + array $values = array(), + $class_name = 'StdClass', + array $ctor_args = array() + ); + + /** + * + * Fetches one row from the database as an associative array. + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @return array|false + * + */ + public function fetchOne($statement, array $values = array()); + + /** + * + * Fetches an associative array of rows as key-value pairs (first + * column is the key, second column is the value). + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @param callable $callable A callable to be applied to each of the rows + * to be returned. + * + * @return array + * + */ + public function fetchPairs($statement, array $values = array(), $callable = null); + + /** + * + * Fetches the very first value (i.e., first column of the first row). + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @return mixed + * + */ + public function fetchValue($statement, array $values = array()); + + /** + * + * Returns the DSN for a lazy connection; if the underlying PDO instance + * was injected at construction time, this will be null. + * + * @return string|null + * + */ + public function getDsn(); + + /** + * + * Returns the underlying PDO connection object. + * + * @return PDO or Null if connection was manually disconnected + * + */ + public function getPdo(); + + /** + * + * Returns the profiler object. + * + * @return ProfilerInterface + * + */ + public function getProfiler(); + + /** + * + * Is the instance connected to a database? + * + * @return bool + * + */ + public function isConnected(); + + /** + * + * Performs a query after preparing the statement with bound values, then + * returns the result as a PDOStatement. + * + * @param string $statement The SQL statement to prepare and execute. + * + * @param array $values Values to bind to the query. + * + * @return \PDOStatement + * + */ + public function perform($statement, array $values = array()); + + /** + * + * Sets the profiler object. + * + * @param ProfilerInterface $profiler + * + * @return null + * + */ + public function setProfiler(ProfilerInterface $profiler); +} -- cgit v1.2.3