mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-01 09:30:28 +01:00
86 lines
1.6 KiB
PHP
86 lines
1.6 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
* This file is part of Aura for PHP.
|
||
|
*
|
||
|
* @license http://opensource.org/licenses/bsd-license.php BSD
|
||
|
*
|
||
|
*/
|
||
|
namespace Aura\SqlQuery;
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Interface for query objects.
|
||
|
*
|
||
|
* @package Aura.SqlQuery
|
||
|
*
|
||
|
* @method string getStatement() Returns the query statement as a string;
|
||
|
* missing from the interface but present in the implementations.
|
||
|
*
|
||
|
* @todo Add getStatement() to the interface in 3.x, since adding it in 2.x
|
||
|
* would be a BC break.
|
||
|
*
|
||
|
*/
|
||
|
interface QueryInterface
|
||
|
{
|
||
|
/**
|
||
|
*
|
||
|
* Builds this query object into a string.
|
||
|
*
|
||
|
* @return string
|
||
|
*
|
||
|
*/
|
||
|
public function __toString();
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Returns the prefix to use when quoting identifier names.
|
||
|
*
|
||
|
* @return string
|
||
|
*
|
||
|
*/
|
||
|
public function getQuoteNamePrefix();
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Returns the suffix to use when quoting identifier names.
|
||
|
*
|
||
|
* @return string
|
||
|
*
|
||
|
*/
|
||
|
public function getQuoteNameSuffix();
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Adds values to bind into the query; merges with existing values.
|
||
|
*
|
||
|
* @param array $bind_values Values to bind to the query.
|
||
|
*
|
||
|
* @return $this
|
||
|
*
|
||
|
*/
|
||
|
public function bindValues(array $bind_values);
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Binds a single value to the query.
|
||
|
*
|
||
|
* @param string $name The placeholder name or number.
|
||
|
*
|
||
|
* @param mixed $value The value to bind to the placeholder.
|
||
|
*
|
||
|
* @return $this
|
||
|
*
|
||
|
*/
|
||
|
public function bindValue($name, $value);
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Gets the values to bind into the query.
|
||
|
*
|
||
|
* @return array
|
||
|
*
|
||
|
*/
|
||
|
public function getBindValues();
|
||
|
}
|