QueryInterface (#9892)
<?phpdeclare(strict_types=1);/*** This file is part of CodeIgniter 4 framework.** (c) CodeIgniter Foundation <admin@codeigniter.com>** For the full copyright and license information, please view* the LICENSE file that was distributed with this source code.*/namespace CodeIgniter\Database;/*** 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.*/public function setQuery(string $sql, mixed $binds = null, bool $setEscape = true): self;/*** Returns the final, processed query string after binding, etal* has been performed.*/public function getQuery(): string;/*** 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.*/public function setDuration(float $start, ?float $end = null): self;/*** Returns the duration of this query during execution, or null if* the query has not been executed yet.** @param int $decimals The accuracy of the returned time.*/public function getDuration(int $decimals = 6): string;/*** Stores the error description that happened for this query.*/public function setError(int $code, string $error): self;/*** Reports whether this statement created an error not.*/public function hasError(): bool;/*** Returns the error code created while executing this statement.*/public function getErrorCode(): int;/*** Returns the error message created while executing this statement.*/public function getErrorMessage(): string;/*** Determines if the statement is a write-type query or not.*/public function isWriteType(): bool;/*** Swaps out one table prefix for a new one.*/public function swapPrefix(string $orig, string $swap): self;/*** Returns the original SQL that was passed into the system.*/public function getOriginalQuery(): string;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。