| Server IP : 172.67.179.166 / Your IP : 172.71.24.28 Web Server : nginx/1.20.2 System : Linux 172-104-110-161.ip.linodeusercontent.com 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : www ( 1000) PHP Version : 8.1.9 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/data.driver-hp.download/framework-4.1.3/system/Database/ |
Upload File : |
<?php
/**
* This file is part of the CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CodeIgniter\Database;
/**
* Interface QueryInterface
*
* Represents a single statement that can be executed against the database.
* Statements are platform-specific and can handle binding of binds.
*/
interface QueryInterface
{
/**
* Sets the raw query string to use for this statement.
*
* @param string $sql
* @param mixed $binds
* @param boolean $setEscape
*
* @return mixed
*/
public function setQuery(string $sql, $binds = null, bool $setEscape = true);
//--------------------------------------------------------------------
/**
* Returns the final, processed query string after binding, etal
* has been performed.
*
* @return mixed
*/
public function getQuery();
//--------------------------------------------------------------------
/**
* Records the execution time of the statement using microtime(true)
* for it's start and end values. If no end value is present, will
* use the current time to determine total duration.
*
* @param float $start
* @param float $end
*
* @return mixed
*/
public function setDuration(float $start, float $end = null);
//--------------------------------------------------------------------
/**
* Returns the duration of this query during execution, or null if
* the query has not been executed yet.
*
* @param integer $decimals The accuracy of the returned time.
*
* @return string
*/
public function getDuration(int $decimals = 6): string;
//--------------------------------------------------------------------
/**
* Stores the error description that happened for this query.
*
* @param integer $code
* @param string $error
*/
public function setError(int $code, string $error);
//--------------------------------------------------------------------
/**
* Reports whether this statement created an error not.
*
* @return boolean
*/
public function hasError(): bool;
//--------------------------------------------------------------------
/**
* Returns the error code created while executing this statement.
*
* @return integer
*/
public function getErrorCode(): int;
//--------------------------------------------------------------------
/**
* Returns the error message created while executing this statement.
*
* @return string
*/
public function getErrorMessage(): string;
//--------------------------------------------------------------------
/**
* Determines if the statement is a write-type query or not.
*
* @return boolean
*/
public function isWriteType(): bool;
//--------------------------------------------------------------------
/**
* Swaps out one table prefix for a new one.
*
* @param string $orig
* @param string $swap
*
* @return mixed
*/
public function swapPrefix(string $orig, string $swap);
//--------------------------------------------------------------------
}