/
var
/
www
/
vhosts
/
ihelp.ro
/
_OLD
/
vendor
/
cakephp
/
cakephp
/
src
/
Database
/
/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Database
mkdir
upload
Name
Size
Mode
Actions
Driver/
-
0755
rm
Exception/
-
0755
rm
Expression/
-
0755
rm
Log/
-
0755
rm
Retry/
-
0755
rm
Schema/
-
0755
rm
Statement/
-
0755
rm
Type/
-
0755
rm
composer.json
1096
0644
edit
dl
rm
Connection.php
27819
0644
edit
dl
rm
ConstraintsInterface.php
1810
0644
edit
dl
rm
Driver.php
11802
0644
edit
dl
rm
DriverInterface.php
8058
0644
edit
dl
rm
Exception.php
786
0644
edit
dl
rm
ExpressionInterface.php
1382
0644
edit
dl
rm
FieldTypeConverter.php
4366
0644
edit
dl
rm
FunctionsBuilder.php
14659
0644
edit
dl
rm
IdentifierQuoter.php
7811
0644
edit
dl
rm
LICENSE.txt
1204
0644
edit
dl
rm
PostgresCompiler.php
2812
0644
edit
dl
rm
Query.php
78113
0644
edit
dl
rm
QueryCompiler.php
16655
0644
edit
dl
rm
README.md
10719
0644
edit
dl
rm
SchemaCache.php
3386
0644
edit
dl
rm
SqlDialectTrait.php
171
0644
edit
dl
rm
SqliteCompiler.php
937
0644
edit
dl
rm
SqlserverCompiler.php
5167
0644
edit
dl
rm
StatementInterface.php
6777
0644
edit
dl
rm
Type.php
165
0644
edit
dl
rm
TypeConverterTrait.php
2197
0644
edit
dl
rm
TypedResultInterface.php
1093
0644
edit
dl
rm
TypedResultTrait.php
1356
0644
edit
dl
rm
TypeFactory.php
5382
0644
edit
dl
rm
TypeInterface.php
3334
0644
edit
dl
rm
TypeMap.php
4606
0644
edit
dl
rm
TypeMapTrait.php
2344
0644
edit
dl
rm
ValueBinder.php
4533
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Database/DriverInterface.php
(8058B)
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * @link https://cakephp.org CakePHP(tm) Project * @since 3.6.0 * @license https://opensource.org/licenses/mit-license.php MIT License */ namespace Cake\Database; use Cake\Database\Schema\SchemaDialect; use Cake\Database\Schema\TableSchema; use Closure; /** * Interface for database driver. * * @method int|null getMaxAliasLength() Returns the maximum alias length allowed. */ interface DriverInterface { /** * Establishes a connection to the database server. * * @throws \Cake\Database\Exception\MissingConnectionException If database connection could not be established. * @return bool True on success, false on failure. */ public function connect(): bool; /** * Disconnects from database server. * * @return void */ public function disconnect(): void; /** * Returns correct connection resource or object that is internally used. * * @return object Connection object used internally. */ public function getConnection(); /** * Set the internal connection object. * * @param object $connection The connection instance. * @return $this */ public function setConnection($connection); /** * Returns whether php is able to use this driver for connecting to database. * * @return bool True if it is valid to use this driver. */ public function enabled(): bool; /** * Prepares a sql statement to be executed. * * @param string|\Cake\Database\Query $query The query to turn into a prepared statement. * @return \Cake\Database\StatementInterface */ public function prepare($query): StatementInterface; /** * Starts a transaction. * * @return bool True on success, false otherwise. */ public function beginTransaction(): bool; /** * Commits a transaction. * * @return bool True on success, false otherwise. */ public function commitTransaction(): bool; /** * Rollbacks a transaction. * * @return bool True on success, false otherwise. */ public function rollbackTransaction(): bool; /** * Get the SQL for releasing a save point. * * @param string|int $name The table name. * @return string */ public function releaseSavePointSQL($name): string; /** * Get the SQL for creating a save point. * * @param string|int $name The table name. * @return string */ public function savePointSQL($name): string; /** * Get the SQL for rollingback a save point. * * @param string|int $name The table name. * @return string */ public function rollbackSavePointSQL($name): string; /** * Get the SQL for disabling foreign keys. * * @return string */ public function disableForeignKeySQL(): string; /** * Get the SQL for enabling foreign keys. * * @return string */ public function enableForeignKeySQL(): string; /** * Returns whether the driver supports adding or dropping constraints * to already created tables. * * @return bool True if driver supports dynamic constraints. */ public function supportsDynamicConstraints(): bool; /** * Returns whether this driver supports save points for nested transactions. * * @return bool True if save points are supported, false otherwise. */ public function supportsSavePoints(): bool; /** * Returns a value in a safe representation to be used in a query string * * @param mixed $value The value to quote. * @param int $type Type to be used for determining kind of quoting to perform. * @return string */ public function quote($value, $type): string; /** * Checks if the driver supports quoting. * * @return bool */ public function supportsQuoting(): bool; /** * Returns a callable function that will be used to transform a passed Query object. * This function, in turn, will return an instance of a Query object that has been * transformed to accommodate any specificities of the SQL dialect in use. * * @param string $type The type of query to be transformed * (select, insert, update, delete). * @return \Closure */ public function queryTranslator(string $type): Closure; /** * Get the schema dialect. * * Used by Cake\Database\Schema package to reflect schema and * generate schema. * * If all the tables that use this Driver specify their * own schemas, then this may return null. * * @return \Cake\Database\Schema\SchemaDialect */ public function schemaDialect(): SchemaDialect; /** * Quotes a database identifier (a column name, table name, etc..) to * be used safely in queries without the risk of using reserved words. * * @param string $identifier The identifier expression to quote. * @return string */ public function quoteIdentifier(string $identifier): string; /** * Escapes values for use in schema definitions. * * @param mixed $value The value to escape. * @return string String for use in schema definitions. */ public function schemaValue($value): string; /** * Returns the schema name that's being used. * * @return string */ public function schema(): string; /** * Returns last id generated for a table or sequence in database. * * @param string|null $table table name or sequence to get last insert value from. * @param string|null $column the name of the column representing the primary key. * @return string|int */ public function lastInsertId(?string $table = null, ?string $column = null); /** * Checks whether or not the driver is connected. * * @return bool */ public function isConnected(): bool; /** * Sets whether or not this driver should automatically quote identifiers * in queries. * * @param bool $enable Whether to enable auto quoting * @return $this */ public function enableAutoQuoting(bool $enable = true); /** * Disable auto quoting of identifiers in queries. * * @return $this */ public function disableAutoQuoting(); /** * Returns whether or not this driver should automatically quote identifiers * in queries. * * @return bool */ public function isAutoQuotingEnabled(): bool; /** * Transforms the passed query to this Driver's dialect and returns an instance * of the transformed query and the full compiled SQL string. * * @param \Cake\Database\Query $query The query to compile. * @param \Cake\Database\ValueBinder $generator The value binder to use. * @return array containing 2 entries. The first entity is the transformed query * and the second one the compiled SQL. */ public function compileQuery(Query $query, ValueBinder $generator): array; /** * Returns an instance of a QueryCompiler. * * @return \Cake\Database\QueryCompiler */ public function newCompiler(): QueryCompiler; /** * Constructs new TableSchema. * * @param string $table The table name. * @param array $columns The list of columns for the schema. * @return \Cake\Database\Schema\TableSchema */ public function newTableSchema(string $table, array $columns = []): TableSchema; }
Save
cmd:
run