Query\Drivers\Firebird\Result
Firebird result class to emulate PDOStatement Class - only implements data-fetching methods
Synopsis
- // members
- private $statement;
- private $row;
- private array $result = ;
- private Driver $db;
- // methods
- public void __construct()
- public NULL bindColumn()
- public NULL bindParam()
- public NULL bindValue()
- public Result execute()
- public mixed fetch()
- public mixed fetchAll()
- public mixed fetchColumn()
- public stdClass fetchObject()
- public int rowCount()
- public string errorCode()
- public array errorInfo()
- // Inherited methods from PDOStatement
- public bool bindColumn()
- public bool bindParam()
- public bool bindValue()
- public bool closeCursor()
- public int columnCount()
- public void debugDumpParams()
- public string errorCode()
- public array errorInfo()
- public bool execute()
- public mixed fetch()
- public array fetchAll()
- public string fetchColumn()
- public mixed fetchObject()
- public mixed getAttribute()
- public array getColumnMeta()
- public bool nextRowset()
- public int rowCount()
- public bool setAttribute()
- public bool setFetchMode()
Hierarchy
Extends
Members
private
- $db
—
\Query\Drivers\Firebird\Driver
Reference to the db drive to de-duplicate error functions -
$result
Data pulled from query - $row
—
int
Current row in result array - $statement
—
resource
Reference to fbird resource
Methods
public
- __construct() — Create the object by passing the resource for the query
- bindColumn() — Invalidate method for data consistency
- bindParam() — Invalidate method for data consistency
- bindValue() — Invalidate method for data consistency
- errorCode() — Method to emulate PDOStatement->errorCode
- errorInfo() — Method to emulate PDO->errorInfo / PDOStatement->errorInfo
- execute() — Run a prepared statement query
- fetch() — Emulate PDO fetch public function
- fetchAll() — Emulate PDO fetchAll public function
- fetchColumn() — Emulate PDOStatement::fetchColumn
- fetchObject() — Emulate PDOStatement::fetchObject, but only for the default use
- rowCount() — Return the number of rows affected by the previous query
Inherited from PDOStatement
public
- bindColumn() — Bind a column to a PHP variable
- bindParam() — Binds a parameter to the specified variable name
- bindValue() — Binds a value to a parameter
- closeCursor() — Closes the cursor, enabling the statement to be executed again.
- columnCount() — Returns the number of columns in the result set
- debugDumpParams() — Dump an SQL prepared command
- errorCode() — Fetch the SQLSTATE associated with the last operation on the statement handle
- errorInfo() — Fetch extended error information associated with the last operation on the statement handle
- execute() — Executes a prepared statement
- fetch() — Fetches the next row from a result set
- fetchAll() — Returns an array containing all of the result set rows
- fetchColumn() — Returns a single column from the next row of a result set
- fetchObject() — Fetches the next row and returns it as an object.
- getAttribute() — Retrieve a statement attribute
- getColumnMeta() — Returns metadata for a column in a result set
- nextRowset() — Advances to the next rowset in a multi-rowset statement handle
- rowCount() — Returns the number of rows affected by the last SQL statement
- setAttribute() — Set a statement attribute
- setFetchMode() — Set the default fetch mode for this statement
History
-
2015-07-30T16:40:30-04:00 (commit #225017a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Lots of refactoring -- accessors/mutators instead of direct access, reduce query builder test database connections, and simplify some logic
-
2015-07-30T13:13:12-04:00 (commit #8669fcc)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Some scrutinizer fixes
-
2015-07-29T16:59:27-04:00 (commit #f3769ba)
Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / Commiter: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com)
Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
-
2015-07-29T16:51:17-04:00 (commit #8511c6a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Move library into src folder, fix simpletest test runner
-
2015-07-17T16:01:41-04:00 (commit #b4118ce)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Update docs
-
2015-07-17T15:38:06-04:00 (commit #28f5cb2)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix Firebird tests and speed up tests by using one database connection for each query builder datbase test
-
2015-07-16T16:56:13-04:00 (commit #bfc3ea3)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Reorganize drivers into a more modern layout
-
2014-04-23T16:27:43-04:00 (commit #fddd92a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix some more docblocks
-
2014-04-23T15:53:16-04:00 (commit #aa5aa8e)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Docblock fixes and more dependency injection
-
2014-04-09T13:20:30-04:00 (commit #3cc260b)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Deduplicate error methods in Firebird_Result class
-
2014-04-08T14:43:07-04:00 (commit #85b804a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Update drivers with missing method
-
2014-04-02T17:08:50-04:00 (commit #e3fdad5)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Namespaces!
-
2014-03-31T12:58:43-04:00 (commit #23c1cf0)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Improvements for scrutinizer
-
2014-03-17T19:35:25-04:00 (commit #2b4154a)
Author: Scrutinizer Auto-Fixer (auto-fixer@scrutinizer-ci.com) / Commiter: Scrutinizer (auto-fixer@scrutinizer-ci.com)
Scrutinizer Auto-Fixes This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/timw4mail/Query/inspections/89ed2aa4-7aae-45bb-9289-ebb27a60ef13 Enabled analysis tools: - PHP Analyzer
-
2014-02-25T13:47:35-05:00 (commit #620441a)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Better test coverage
-
2014-02-18T15:18:01-05:00 (commit #1095e85)
Author: Timothy J. Warren (tim@timshomepage.net) / Commiter: Timothy J. Warren (tim@timshomepage.net)
Fix some docblocks, and update test files to 2014