repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/DummyCommandHandler.php | tests/CommandBus/DummyCommandHandler.php | <?php
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\CommandBus\Contracts\CommandHandler;
class DummyCommandHandler implements CommandHandler
{
/**
* @param callable $command
*/
public function __invoke($command)
{
}
}
| php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/DummyCommand.php | tests/CommandBus/DummyCommand.php | <?php
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\CommandBus\Contracts\Command;
class DummyCommand implements Command
{
public function __invoke()
{
}
}
| php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/CommandBusTest.php | tests/CommandBus/CommandBusTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 24/03/16
* Time: 0:07.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\C... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/LoggerCommandBusMiddlewareTest.php | tests/CommandBus/LoggerCommandBusMiddlewareTest.php | <?php
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\CommandBus\Contracts\CommandHandlerResolver;
use NilPortugues\MessageBus\CommandBus\Contracts\CommandTranslator;
use NilPortugues\MessageBus\CommandBus\LoggerCommandBusMiddleware;
use NilPortugues\MessageBus\CommandBus\Resolver\Simp... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/TransactionalCommandBusMiddlewareTest.php | tests/CommandBus/TransactionalCommandBusMiddlewareTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 29/03/16
* Time: 21:56.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/SqliteCommand.php | tests/CommandBus/SqliteCommand.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 29/03/16
* Time: 21:56.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/CommandBusMiddlewareTest.php | tests/CommandBus/CommandBusMiddlewareTest.php | <?php
namespace NilPortugues\Tests\MessageBus\CommandBus;
use NilPortugues\MessageBus\CommandBus\CommandBusMiddleware;
use NilPortugues\MessageBus\CommandBus\Resolver\SimpleArrayResolver;
use NilPortugues\MessageBus\CommandBus\Translator\AppendStrategy;
class CommandBusMiddlewareTest extends \PHPUnit_Framework_TestC... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/Translator/AppendStrategyTest.php | tests/CommandBus/Translator/AppendStrategyTest.php | <?php
namespace NilPortugues\Tests\MessageBus\CommandBus\Translator;
use InvalidArgumentException;
use NilPortugues\MessageBus\CommandBus\Translator\AppendStrategy;
use NilPortugues\Tests\MessageBus\CommandBus\DummyCommand;
class AppendStrategyTest extends \PHPUnit_Framework_TestCase
{
public function testItCanA... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/Resolver/SimpleArrayResolverTest.php | tests/CommandBus/Resolver/SimpleArrayResolverTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 23/03/16
* Time: 22:28.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\MessageBus\CommandBus\Resolver;
use InvalidArgumentExcept... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/Resolver/PsrContainerResolverTest.php | tests/CommandBus/Resolver/PsrContainerResolverTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 23/03/16
* Time: 22:43.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus\Resolver;
use InvalidArgument... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/Resolver/InteropContainerResolverTest.php | tests/CommandBus/Resolver/InteropContainerResolverTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 23/03/16
* Time: 22:43.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus\Resolver;
use InvalidArgument... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
PHPMessageBus/messagebus | https://github.com/PHPMessageBus/messagebus/blob/b95346c93b07c2e1967ea3ff8254082fb04ce5b9/tests/CommandBus/Resolver/SymfonyContainerResolverTest.php | tests/CommandBus/Resolver/SymfonyContainerResolverTest.php | <?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 23/03/16
* Time: 22:43.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Tests\MessageBus\CommandBus\Resolver;
use InvalidArgument... | php | MIT | b95346c93b07c2e1967ea3ff8254082fb04ce5b9 | 2026-01-05T03:01:13.833961Z | false |
imaxwen/yii2-easy-wechat | https://github.com/imaxwen/yii2-easy-wechat/blob/8d25c3af6cf050b7831ee5dc2e265c9be9440381/src/Wechat.php | src/Wechat.php | <?php
/**
* Project: yii2-easyWeChat.
* Author: Max.wen
* Date: <2016/05/10 - 14:31>
*/
namespace maxwen\easywechat;
use yii;
use EasyWeChat\Foundation\Application;
use yii\base\Component;
/**
* Class Wechat
* @package common\components
*
* @property Application $app
* @property WechatUser $user
* @proper... | php | MIT | 8d25c3af6cf050b7831ee5dc2e265c9be9440381 | 2026-01-05T03:01:20.879295Z | false |
imaxwen/yii2-easy-wechat | https://github.com/imaxwen/yii2-easy-wechat/blob/8d25c3af6cf050b7831ee5dc2e265c9be9440381/src/WechatUser.php | src/WechatUser.php | <?php
/**
* Project: yii2-easyWeChat.
* Author: Max.wen
* Date: <2016/05/10 - 17:17>
*/
namespace maxwen\easywechat;
use yii\base\Component;
/**
* Class WechatUser
* @package common\components
*
* @property string $openId
*/
class WechatUser extends Component
{
/**
* @var string
*/
public $id;
/**
... | php | MIT | 8d25c3af6cf050b7831ee5dc2e265c9be9440381 | 2026-01-05T03:01:20.879295Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php8... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = (new Finder())->in([
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
]);
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/PseudoType.php | src/Constant/PseudoType.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* Defines the available column pseudo-types.
* Used to define column primary key types when creating or updating a table schema.
*/
final class PseudoType
{
/**
* Define the column pseudo-type a primary key.
*/
public const PK = '... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/GettypeResult.php | src/Constant/GettypeResult.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* The following constants are returned by {@see gettype()} function.
*
* @link https://www.php.net/manual/en/function.gettype.php
*/
final class GettypeResult
{
/**
* Define the php type as `array`.
*/
public const ARRAY = 'arra... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/ColumnType.php | src/Constant/ColumnType.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* Defines the available abstract column types.
*/
final class ColumnType
{
/**
* Define the abstract column type as `boolean`.
*/
public const BOOLEAN = 'boolean';
/**
* Define the abstract column type as `bit`.
*/
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/ReferentialAction.php | src/Constant/ReferentialAction.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* `ReferentialAction` represents the possible foreign key actions that can be performed on the referenced table.
*
* The constants are used to specify `ON DELETE` and `ON UPDATE` actions by {@see ForeignKey::onDelete()},
* {@see ForeignKey::onUpda... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/IndexType.php | src/Constant/IndexType.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* Defines the available index types for {@see DDLQueryBuilderInterface::createIndex()} method.
* Use driver specific implementations for other supported types if any.
*/
final class IndexType
{
/**
* Define the type of the index as `UNIQUE... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/ColumnInfoSource.php | src/Constant/ColumnInfoSource.php | <?php
namespace Yiisoft\Db\Constant;
use Yiisoft\Db\Schema\Column\ColumnFactoryInterface;
/**
* Defines the possible sources of column information.
*
* It can be used in `ColumnFactoryInterface` instances when creating column objects.
*
* @see ColumnFactoryInterface
*/
final class ColumnInfoSource
{
/**
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Constant/DataType.php | src/Constant/DataType.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Constant;
/**
* Types of data.
* Usually used when binding parameters.
*/
final class DataType
{
/**
* SQL `NULL` data type.
*/
public const NULL = 0;
/**
* SQL `INTEGER` data type.
*/
public const INTEGER = 1;
/**
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/TableSchema.php | src/Schema/TableSchema.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use Yiisoft\Db\Constraint\Check;
use Yiisoft\Db\Constraint\DefaultValue;
use Yiisoft\Db\Constraint\ForeignKey;
use Yiisoft\Db\Constraint\Index;
use Yiisoft\Db\Schema\Column\ColumnInterface;
use function array_filter;
use function array_keys;
/**
* Repres... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/QuoterInterface.php | src/Schema/QuoterInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use InvalidArgumentException;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* This interface provides a set of methods to quote table and column names, values, and other SQL
* expressions independently of the database.
*/
interface QuoterInterface
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Quoter.php | src/Schema/Quoter.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use InvalidArgumentException;
use Yiisoft\Db\Expression\ExpressionInterface;
use function addcslashes;
use function array_map;
use function array_slice;
use function explode;
use function implode;
use function is_string;
use function preg_match;
use functi... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/AbstractSchema.php | src/Schema/AbstractSchema.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use Yiisoft\Db\Cache\SchemaCache;
use Yiisoft\Db\Constant\DataType;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Constraint\Check;
use Yiisoft\Db\Constraint\DefaultValue;
use Yiisoft\Db\Constraint\ForeignKey;
use Yiisoft\Db\Constraint\Index... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/TableSchemaInterface.php | src/Schema/TableSchemaInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use Yiisoft\Db\Constraint\Check;
use Yiisoft\Db\Constraint\DefaultValue;
use Yiisoft\Db\Constraint\ForeignKey;
use Yiisoft\Db\Constraint\Index;
use Yiisoft\Db\Schema\Column\ColumnInterface;
/**
* Represents the metadata of a database table.
*
* It defin... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/SchemaInterface.php | src/Schema/SchemaInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema;
use Yiisoft\Db\Constant\DataType;
use Yiisoft\Db\Constraint\ConstraintSchemaInterface;
use Yiisoft\Db\Schema\Column\ColumnInterface;
/**
* Represents the schema for a database table.
*
* It provides a set of methods for working with the schema of a data... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/BitColumn.php | src/Schema/Column/BitColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* Represents the metadata for a bit column.
*/
class BitColumn extends AbstractColumn
{
protected const DEFAULT_TYPE = ColumnType::BIT;
public function... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/AbstractColumnFactory.php | src/Schema/Column/AbstractColumnFactory.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Closure;
use Yiisoft\Db\Constant\ColumnInfoSource;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constant\PseudoType;
use Yiisoft\Db\Expression\Expression;
use Yiisoft\Db\Syntax\ColumnDefinitionParser;
use function array_diff_key;
use funct... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/ArrayLazyColumn.php | src/Schema/Column/ArrayLazyColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Schema\Data\LazyArray;
use function is_string;
/**
* Represents an array column with lazy parsing values retrieved from the database.
*
* @see ArrayColumn for an array column with eager parsing values retrieved from the database.
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/AbstractStructuredColumn.php | src/Schema/Column/AbstractStructuredColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Expression\Value\StructuredValue;
/**
* Represents an abstract structured column.
*
* @see StructuredColumn for a structured column with eager parsi... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/BooleanColumn.php | src/Schema/Column/BooleanColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* Represents the metadata for a boolean column.
*/
class BooleanColumn extends AbstractColumn
{
protected const DEFAULT_TYPE = ColumnType::BOOLEAN;
pub... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/StructuredLazyColumn.php | src/Schema/Column/StructuredLazyColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Schema\Data\StructuredLazyArray;
use function is_string;
/**
* Represents a structured column with lazy parsing values retrieved from the database.
*
* @see StructuredColumn for a structured column with eager parsing values retrie... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/AbstractJsonColumn.php | src/Schema/Column/AbstractJsonColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Expression\Value\JsonValue;
/**
* Represents an abstract JSON column.
*
* @see JsonColumn for a JSON column with eager parsing values retrieved from... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/AbstractColumn.php | src/Schema/Column/AbstractColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use InvalidArgumentException;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constraint\ForeignKey;
use function array_key_exists;
use function property_exists;
/**
* Represents the metadata of a column in a database table.
*
* It provides i... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/DateTimeColumn.php | src/Schema/Column/DateTimeColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use DateTimeImmutable;
use DateTimeInterface;
use DateTimeZone;
use Stringable;
use UnexpectedValueException;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constant\GettypeResult;
use Yiisoft\Db\Expression\ExpressionInterface;
use function date... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/BigIntColumn.php | src/Schema/Column/BigIntColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use BackedEnum;
use DateTimeInterface;
use Stringable;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Constant\GettypeResult;
use function gettype;
use function is_int;
use const PHP_INT_MAX;
use c... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/StringColumn.php | src/Schema/Column/StringColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use BackedEnum;
use Stringable;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Constant\GettypeResult;
use function gettype;
/**
* Represents the metadata for a string column.
*/
class StringColu... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/ArrayColumn.php | src/Schema/Column/ArrayColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Schema\Data\LazyArray;
use function is_string;
/**
* Represents an array column with eager parsing values retrieved from the database.
*
* @see ArrayLazyColumn for an array column with lazy parsing values retrieved from the databa... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/ColumnInterface.php | src/Schema/Column/ColumnInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constraint\ForeignKey;
use Yiisoft\Db\Exception\NotSupportedException;
/**
* This interface defines a set of methods that must be implemented by a class that represents a database table column.
*/... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/JsonLazyColumn.php | src/Schema/Column/JsonLazyColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Schema\Data\JsonLazyArray;
use function is_string;
use function json_decode;
use const JSON_THROW_ON_ERROR;
/**
* Represents a JSON column with lazy parsing values retrieved from the database.
*
* @see JsonColumn for a JSON colum... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/AbstractArrayColumn.php | src/Schema/Column/AbstractArrayColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\Value\ArrayValue;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Query\QueryInterface;
use Yiisoft\Db\Schema\Data\LazyArrayInterface;
/**
* Represents an abstract array co... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/EnumColumn.php | src/Schema/Column/EnumColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use LogicException;
use Yiisoft\Db\Constant\ColumnType;
final class EnumColumn extends StringColumn
{
protected const DEFAULT_TYPE = ColumnType::ENUM;
/**
* @var string[]|null $values The list of possible values for an ENUM column.
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/ColumnBuilder.php | src/Schema/Column/ColumnBuilder.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnType;
/**
* Column builder for database {@see ColumnInterface} instances.
*
* @psalm-import-type ColumnInfo from ColumnFactoryInterface
*/
class ColumnBuilder
{
// Pseudo-type column builders
/**
* Buil... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/IntegerColumn.php | src/Schema/Column/IntegerColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use BackedEnum;
use DateTimeInterface;
use Stringable;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constant\GettypeResult;
use Yiisoft\Db\Expression\ExpressionInterface;
use function gettype;
/**
* Represents the schema for an integer colum... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/StructuredColumn.php | src/Schema/Column/StructuredColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Schema\Data\StructuredLazyArray;
use function is_string;
/**
* Represents a structured column with eager parsing values retrieved from the database.
*
* @see StructuredLazyColumn for a structured column with lazy parsing values re... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/DoubleColumn.php | src/Schema/Column/DoubleColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use BackedEnum;
use DateTimeInterface;
use Stringable;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constant\GettypeResult;
use Yiisoft\Db\Expression\ExpressionInterface;
use function gettype;
use function is_int;
/**
* Represents the metada... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/ColumnFactoryInterface.php | src/Schema/Column/ColumnFactoryInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use Yiisoft\Db\Constant\ColumnInfoSource;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Constant\PseudoType;
use Yiisoft\Db\Constraint\ForeignKey;
/**
* The interface must be implemented by a column factory class. It should create an instance ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/BinaryColumn.php | src/Schema/Column/BinaryColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use BackedEnum;
use PDO;
use Stringable;
use Yiisoft\Db\Expression\Value\Param;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Constant\GettypeResult;
use Yiisoft\Db\Schema\Data\StringableStream;
us... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/JsonColumn.php | src/Schema/Column/JsonColumn.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
use function is_string;
use function json_decode;
use const JSON_THROW_ON_ERROR;
/**
* Represents a JSON column with eager parsing values retrieved from the database.
*
* @see JsonLazyColumn for a JSON column with lazy parsing values retrieved f... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Column/CollatableColumnInterface.php | src/Schema/Column/CollatableColumnInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Column;
/**
* Represents a column with collation.
*
* Provides methods to set and get a collation value for the column.
*/
interface CollatableColumnInterface
{
/**
* Sets the collation for the column.
*/
public function collation(?stri... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/AbstractLazyArray.php | src/Schema/Data/AbstractLazyArray.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use ArrayAccess;
use Countable;
use InvalidArgumentException;
use JsonSerializable;
use IteratorAggregate;
use Yiisoft\Db\Constant\ColumnType;
use Yiisoft\Db\Schema\Column\ColumnInterface;
use function array_map;
use function array_walk_recursive;
use... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/LazyArrayInterface.php | src/Schema/Data/LazyArrayInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
/**
* The interface for classes that represent an array with lazy parsing of data retrieved from the database.
*/
interface LazyArrayInterface
{
/**
* The raw value that can be represented as:
* - a string retrieved value from the datab... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/StringableStream.php | src/Schema/Data/StringableStream.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use LogicException;
use Stringable;
use Yiisoft\Db\Constant\GettypeResult;
use function fclose;
use function gettype;
use function is_resource;
use function stream_get_contents;
/**
* Represents a resource stream to be used as a {@see Stringable} va... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/JsonLazyArray.php | src/Schema/Data/JsonLazyArray.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use ArrayAccess;
use Countable;
use InvalidArgumentException;
use IteratorAggregate;
use JsonSerializable;
use function is_array;
use function is_string;
use function json_decode;
use const JSON_THROW_ON_ERROR;
/**
* Represents a JSON array value r... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/StructuredLazyArray.php | src/Schema/Data/StructuredLazyArray.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use function json_decode;
use const JSON_THROW_ON_ERROR;
/**
* Represents a structured JSON array value retrieved from the database.
* Initially, the value is a string that parsed into an array when it's accessed as an array or iterated over.
*/
f... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/AbstractStructuredLazyArray.php | src/Schema/Data/AbstractStructuredLazyArray.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use ArrayAccess;
use Countable;
use InvalidArgumentException;
use JsonSerializable;
use IteratorAggregate;
use Yiisoft\Db\Schema\Column\ColumnInterface;
use function is_string;
/**
* Represents an array value of a structured type retrieved from the ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/LazyArrayTrait.php | src/Schema/Data/LazyArrayTrait.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use ArrayIterator;
use function count;
/**
* Provides a common implementation for {@see AbstractLazyArray}, {@see AbstractStructuredLazyArray}
* and {@see JsonLazyArray}.
*
* @method void prepareValue() Prepares the value to be used as an array o... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Schema/Data/LazyArray.php | src/Schema/Data/LazyArray.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Schema\Data;
use function json_decode;
use const JSON_THROW_ON_ERROR;
/**
* Represents a JSON array value retrieved from the database.
* Initially, the value is a string that parsed into an array when it's accessed as an array or iterated over.
*/
final class ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Debug/CommandInterfaceProxy.php | src/Debug/CommandInterfaceProxy.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Debug;
use Closure;
use Throwable;
use Yiisoft\Db\Command\CommandInterface;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Query\DataReaderInterface;
use Yiisoft\Db\Query\QueryInterface;
use Yiisoft\Db\Schema\Column\ColumnInterface;
final class Comm... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Debug/TransactionInterfaceDecorator.php | src/Debug/TransactionInterfaceDecorator.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Debug;
use Yiisoft\Db\Transaction\TransactionInterface;
final class TransactionInterfaceDecorator implements TransactionInterface
{
public function __construct(
private TransactionInterface $decorated,
private DatabaseCollector $collector,
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Debug/DatabaseCollector.php | src/Debug/DatabaseCollector.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Debug;
use Throwable;
use Yiisoft\Yii\Debug\Collector\CollectorTrait;
use Yiisoft\Yii\Debug\Collector\SummaryCollectorInterface;
final class DatabaseCollector implements SummaryCollectorInterface
{
use CollectorTrait;
private const ACTION_QUERY_START = 'q... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Debug/ConnectionInterfaceProxy.php | src/Debug/ConnectionInterfaceProxy.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Debug;
use Closure;
use Yiisoft\Db\Command\CommandInterface;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Connection\ServerInfoInterface;
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Db\Query\BatchQueryResultInterface;
use Yiisoft\Db\... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/DriverInterface.php | src/Driver/DriverInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver;
/**
* Represents a database driver.
*
* A specific implementation of a database connectivity layer, such as `PDO` or `MySQLi`.
*/
interface DriverInterface {}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/PdoDriverInterface.php | src/Driver/Pdo/PdoDriverInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDO;
use Yiisoft\Db\Driver\DriverInterface;
/**
* This interface provides a set of methods to implement by {@see PDO} (PHP Data Objects) driver classes.
*
* @link https://www.php.net/manual/en/book.pdo.php
*/
interface PdoDriverInterface extend... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/AbstractPdoSchema.php | src/Driver/Pdo/AbstractPdoSchema.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Schema\AbstractSchema;
use function md5;
use function serialize;
/**
* Represents a schema for a PDO (PHP Data Object) connection.
*/
abstract class AbstractPdoSchema extends AbstractSch... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/AbstractPdoCommand.php | src/Driver/Pdo/AbstractPdoCommand.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use InvalidArgumentException;
use PDO;
use PDOException;
use PDOStatement;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LogLevel;
use Throwable;
use Yiisoft\Db\Command\AbstractCommand;
use Yiisoft\Db\Expression\Value\Param... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/AbstractPdoConnection.php | src/Driver/Pdo/AbstractPdoConnection.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDO;
use PDOException;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LogLevel;
use Throwable;
use Yiisoft\Db\Cache\SchemaCache;
use Yiisoft\Db\Connection\AbstractConnection;
use Yiisoft\Db\Connection\ServerInfoInterface... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/PdoCommandInterface.php | src/Driver/Pdo/PdoCommandInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDOStatement;
use Yiisoft\Db\Command\CommandInterface;
/**
* This interface defines the method {@see getPdoStatement()} that must be implemented by {@see \PDO}.
*
* @see CommandInterface
*/
interface PdoCommandInterface extends CommandInterface... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/AbstractPdoTransaction.php | src/Driver/Pdo/AbstractPdoTransaction.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LogLevel;
use Throwable;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Tran... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/AbstractPdoDriver.php | src/Driver/Pdo/AbstractPdoDriver.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDO;
use SensitiveParameter;
use Stringable;
/**
* Serves as the base class for creating PDO (PHP Data Objects) drivers.
*
* It provides a set of common methods and properties that are implemented by the specific PDO driver classes, such as
* M... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/PdoServerInfo.php | src/Driver/Pdo/PdoServerInfo.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDO;
use Yiisoft\Db\Connection\ServerInfoInterface;
use Yiisoft\Db\Exception\NotSupportedException;
class PdoServerInfo implements ServerInfoInterface
{
protected ?string $version = null;
public function __construct(protected PdoConnection... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/PdoDataReader.php | src/Driver/Pdo/PdoDataReader.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use Closure;
use Countable;
use Iterator;
use PDO;
use PDOStatement;
use Yiisoft\Db\Exception\InvalidCallException;
use Yiisoft\Db\Query\DataReaderInterface;
use Yiisoft\Db\Query\QueryInterface;
use Yiisoft\Db\Schema\Column\ColumnInterface;
use functio... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/LogType.php | src/Driver/Pdo/LogType.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
final class LogType
{
public const CONNECTION = 'connection';
public const QUERY = 'query';
public const TRANSACTION = 'transaction';
}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Driver/Pdo/PdoConnectionInterface.php | src/Driver/Pdo/PdoConnectionInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Driver\Pdo;
use PDO;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
/**
* This interface defines a set of methods to implement in a class that allows to connect to a database
* ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/ProfilerAwareInterface.php | src/Profiler/ProfilerAwareInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler;
interface ProfilerAwareInterface
{
/**
* Sets the profiler instance.
*
* @param ProfilerInterface|null $profiler The profiler instance.
*/
public function setProfiler(?ProfilerInterface $profiler): void;
}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/ProfilerAwareTrait.php | src/Profiler/ProfilerAwareTrait.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler;
/**
* Provides access to the database profiler, a tool for collecting and analyzing
* database queries.
*
* This can be useful for debugging and optimizing database performance.
*/
trait ProfilerAwareTrait
{
protected ?ProfilerInterface $profiler... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/ProfilerInterface.php | src/Profiler/ProfilerInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler;
/**
* Interface-decorator to work with `yiisoft\profiler` or another profiler.
*
* @see \Yiisoft\Db\Profiler\ProfilerAwareInterface::setProfiler()
*/
interface ProfilerInterface
{
/**
* Marks the beginning of a code block for profiling.
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/ContextInterface.php | src/Profiler/ContextInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler;
/**
* Profiling context.
*/
interface ContextInterface
{
/**
* @return string Type of the context.
*/
public function getType(): string;
public function asArray(): array;
}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/Context/CommandContext.php | src/Profiler/Context/CommandContext.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler\Context;
final class CommandContext extends AbstractContext
{
private const LOG_CONTEXT = 'logContext';
private const SQL = 'sql';
private const PARAMS = 'params';
public function __construct(
private string $method,
privat... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/Context/AbstractContext.php | src/Profiler/Context/AbstractContext.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler\Context;
use Throwable;
use Yiisoft\Db\Profiler\ContextInterface;
abstract class AbstractContext implements ContextInterface
{
protected const METHOD = 'method';
protected const EXCEPTION = 'exception';
private ?Throwable $exception = null;
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Profiler/Context/ConnectionContext.php | src/Profiler/Context/ConnectionContext.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Profiler\Context;
final class ConnectionContext extends AbstractContext
{
public function getType(): string
{
return 'connection';
}
}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Transaction/TransactionInterface.php | src/Transaction/TransactionInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Transaction;
use Throwable;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Exception\NotSupportedException;
/**
* Defines the interface for a database transaction.
*
* A transaction is a set of operations tha... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/QueryExpressionBuilder.php | src/Query/QueryExpressionBuilder.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Yiisoft\Db\Exception\Exception;
use InvalidArgumentException;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Expression\ExpressionBuilderInterface;
use Yiisoft\Db\Expression\ExpressionInter... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/WithQuery.php | src/Query/WithQuery.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* Represents a common table expression (CTE) for SQL WITH queries.
*
* A data structure holds the information for a single "WITH" query clause.
*
* @see QueryPartsInterface::addWithQuery()
* @see Quer... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/QueryFunctionsInterface.php | src/Query/QueryFunctionsInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Throwable;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
/**
* A query function is a function that's called in a query to perform operation on the data selected or
* updated.
*
* Examples of query functions mig... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/DataReaderInterface.php | src/Query/DataReaderInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
use Countable;
use Iterator;
use Yiisoft\Db\Schema\Column\ColumnInterface;
/**
* This interface represents a forward-only stream of rows from a query result set.
*
* To read the current row of data just iterate on it.
*
* For example,
*
... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/Query.php | src/Query/Query.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
use LogicException;
use Throwable;
use Yiisoft\Db\Command\CommandInterface;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Exception\Exception;
use InvalidArgumentException;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yii... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/QueryPartsInterface.php | src/Query/QueryPartsInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
use LogicException;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Exception\NotSupportedException;
use Yiisoft\Db\Expression\ExpressionInterface;
/**
* This interface defines a set of methods to create and manipulate the differ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | true |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/BatchQueryResult.php | src/Query/BatchQueryResult.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
/**
* Represents the result of a batch query execution.
*
* A batch query is a group of many SQL statements that are executed together as a single unit.
*
* @psalm-import-type IndexBy from QueryInterface
* @psalm-import-type ResultCallbac... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/BatchQueryResultInterface.php | src/Query/BatchQueryResultInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
use Iterator;
use Throwable;
use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
/**
* This interface represents a batch query from which you can retrieve data in batches.
*
* You usually don't instantiate Ba... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Query/QueryInterface.php | src/Query/QueryInterface.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Query;
use Closure;
use Throwable;
use Yiisoft\Db\Command\CommandInterface;
use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Exception\Exception;
use InvalidArgumentException;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Exception\No... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Cache/SchemaCache.php | src/Cache/SchemaCache.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Cache;
use DateInterval;
use Psr\SimpleCache\CacheInterface;
use Psr\SimpleCache\InvalidArgumentException;
use RuntimeException;
use Yiisoft\Db\Exception\PsrInvalidArgumentException;
use function in_array;
use function is_int;
use function is_string;
use function ... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Exception/InvalidCallException.php | src/Exception/InvalidCallException.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Exception;
/**
* Represents an exception caused by calling a method in the wrong way.
*/
final class InvalidCallException extends Exception {}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Exception/NotSupportedException.php | src/Exception/NotSupportedException.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Exception;
/**
* Represents an exception caused by accessing features that aren't supported by the underlying DBMS.
*/
final class NotSupportedException extends Exception {}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Exception/InvalidConfigException.php | src/Exception/InvalidConfigException.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Exception;
/**
* Represents an exception caused by the wrong object configuration.
*/
final class InvalidConfigException extends Exception {}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Exception/Exception.php | src/Exception/Exception.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Exception;
use Stringable;
/**
* Represents an exception that's caused by some DB-related operations.
*
* It provides more information about the error that's caused by the exception.
*/
class Exception extends \Exception implements Stringable
{
public func... | php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
yiisoft/db | https://github.com/yiisoft/db/blob/25c86c3c4077e2705ede19f55e7b7050eeda6b41/src/Exception/PsrInvalidArgumentException.php | src/Exception/PsrInvalidArgumentException.php | <?php
declare(strict_types=1);
namespace Yiisoft\Db\Exception;
/**
* Represents an exception that's caused by invalid operations of cache.
*/
final class PsrInvalidArgumentException extends Exception implements \Psr\SimpleCache\InvalidArgumentException {}
| php | BSD-3-Clause | 25c86c3c4077e2705ede19f55e7b7050eeda6b41 | 2026-01-05T03:01:31.998427Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.