[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ShardManager.php
<?php namespace Doctrine\DBAL\Sharding; /** * Sharding Manager gives access to APIs to implementing sharding on top of * Doctrine\DBAL\Connection instances. * * For simplicity and developer ease-of-use (and understanding) the sharding * API only covers single shard queries, no fan-out support. It is primarily * suited for multi-tenant applications. * * The assumption about sharding here * is that a distribution value can be found that gives access to all the * necessary data for all use-cases. Switching between shards should be done with * caution, especially if lazy loading is implemented. Any query is always * executed against the last shard that was selected. If a query is created for * a shard Y but then a shard X is selected when its actually executed you * will hit the wrong shard. * * @deprecated */ interface ShardManager { /** * Selects global database with global data. * * This is the default database that is connected when no shard is * selected. * * @return void */ public function selectGlobal(); /** * Selects the shard against which the queries after this statement will be issued. * * @param string $distributionValue * * @return void * * @throws ShardingException If no value is passed as shard identifier. */ public function selectShard($distributionValue); /** * Gets the distribution value currently used for sharding. * * @return string|null */ public function getCurrentDistributionValue(); /** * Gets information about the amount of shards and other details. * * Format is implementation specific, each shard is one element and has an * 'id' attribute at least. * * @return mixed[][] */ public function getShards(); /** * Queries all shards in undefined order and return the results appended to * each other. Restore the previous distribution value after execution. * * Using {@link Connection::fetchAll()} to retrieve rows internally. * * @param string $sql * @param mixed[] $params * @param int[]|string[] $types * * @return mixed[] */ public function queryAll($sql, array $params, array $types); }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.53 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002