X7ROOT File Manager
Current Path:
/home/hamdjcne/app.hamdalillahitravel.com/system/Database
home
/
hamdjcne
/
app.hamdalillahitravel.com
/
system
/
Database
/
ðŸ“
..
📄
BaseBuilder.php
(73.83 KB)
📄
BaseConnection.php
(42.04 KB)
📄
BasePreparedQuery.php
(4.42 KB)
📄
BaseResult.php
(12.2 KB)
📄
BaseUtils.php
(8.06 KB)
📄
Config.php
(3.55 KB)
📄
ConnectionInterface.php
(3.79 KB)
📄
Database.php
(3.76 KB)
ðŸ“
Exceptions
📄
Forge.php
(29.91 KB)
📄
Migration.php
(1.3 KB)
📄
MigrationRunner.php
(21.86 KB)
📄
ModelFactory.php
(1.15 KB)
ðŸ“
MySQLi
ðŸ“
Postgre
📄
PreparedQueryInterface.php
(1.24 KB)
📄
Query.php
(10.09 KB)
📄
QueryInterface.php
(2.21 KB)
📄
ResultInterface.php
(3.91 KB)
ðŸ“
SQLSRV
ðŸ“
SQLite3
📄
Seeder.php
(4.13 KB)
Editing: ConnectionInterface.php
<?php /** * 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; /** * Interface ConnectionInterface */ interface ConnectionInterface { /** * Initializes the database connection/settings. * * @return mixed */ public function initialize(); /** * Connect to the database. * * @return mixed */ public function connect(bool $persistent = false); /** * Create a persistent database connection. * * @return mixed */ public function persistentConnect(); /** * Keep or establish the connection if no queries have been sent for * a length of time exceeding the server's idle timeout. * * @return mixed */ public function reconnect(); /** * Returns the actual connection object. If both a 'read' and 'write' * connection has been specified, you can pass either term in to * get that connection. If you pass either alias in and only a single * connection is present, it must return the sole connection. * * @return mixed */ public function getConnection(?string $alias = null); /** * Select a specific database table to use. * * @return mixed */ public function setDatabase(string $databaseName); /** * Returns the name of the current database being used. */ public function getDatabase(): string; /** * Returns the last error encountered by this connection. * Must return this format: ['code' => string|int, 'message' => string] * intval(code) === 0 means "no error". * * @return array<string, int|string> */ public function error(): array; /** * The name of the platform in use (MySQLi, mssql, etc) */ public function getPlatform(): string; /** * Returns a string containing the version of the database being used. */ public function getVersion(): string; /** * Orchestrates a query against the database. Queries must use * Database\Statement objects to store the query and build it. * This method works with the cache. * * Should automatically handle different connections for read/write * queries if needed. * * @param mixed ...$binds * * @return BaseResult|bool|Query */ public function query(string $sql, $binds = null); /** * Performs a basic query against the database. No binding or caching * is performed, nor are transactions handled. Simply takes a raw * query string and returns the database-specific result id. * * @return mixed */ public function simpleQuery(string $sql); /** * Returns an instance of the query builder for this connection. * * @param array|string $tableName Table name. * * @return BaseBuilder Builder. */ public function table($tableName); /** * Returns the last query's statement object. * * @return mixed */ public function getLastQuery(); /** * "Smart" Escaping * * Escapes data based on type. * Sets boolean and null types. * * @param mixed $str * * @return mixed */ public function escape($str); /** * Allows for custom calls to the database engine that are not * supported through our database layer. * * @param array ...$params * * @return mixed */ public function callFunction(string $functionName, ...$params); /** * Determines if the statement is a write-type query or not. * * @param string $sql */ public function isWriteType($sql): bool; }
Upload File
Create Folder