Pular para o conteúdo
PHP Ecosystem
Explore

yii\db

Este conteúdo não está disponível em sua língua ainda.

API reference › yii › db

NamespaceTypes
yii\db\conditions21
yii\db\mssql13
yii\db\mysql5
yii\db\oci9
yii\db\pgsql7
yii\db\sqlite8
ClassSummary
ActiveQueryActiveQuery represents a DB query associated with an Active Record class.
ActiveRecordActiveRecord is the base class for classes representing relational data in terms of objects.
AfterSaveEventAfterSaveEvent represents the information available in ActiveRecord::EVENT_AFTER_INSERT and ActiveRecord::EVENT_AFTER_UPDATE.
ArrayExpressionClass ArrayExpression represents an array SQL expression.
BaseActiveRecord abstractActiveRecord is the base class for classes representing relational data in terms of objects.
BatchQueryResultBatchQueryResult represents a batch query from which you can retrieve data in batches.
CheckConstraintCheckConstraint represents the metadata of a table CHECK constraint.
ColumnSchemaColumnSchema class describes the metadata of a column in a database table.
ColumnSchemaBuilderColumnSchemaBuilder helps to define database schema types using a PHP interface.
CommandCommand represents a SQL statement to be executed against a database.
ConnectionConnection represents a connection to a database via PDO.
ConstraintConstraint represents the metadata of a table constraint.
DataReaderDataReader represents a forward-only stream of rows from a query result set.
DefaultValueConstraintDefaultValueConstraint represents the metadata of a table DEFAULT constraint.
ExceptionException represents an exception that is caused by some DB-related operations.
ExpressionExpression represents a DB expression that does not need escaping or quoting.
ExpressionBuilderClass ExpressionBuilder builds objects of Expression class.
ForeignKeyConstraintForeignKeyConstraint represents the metadata of a table FOREIGN KEY constraint.
IndexConstraintIndexConstraint represents the metadata of a table INDEX constraint.
IntegrityExceptionException represents an exception that is caused by violation of DB constraints.
JsonExpressionClass JsonExpression represents data that should be encoded to JSON.
MigrationMigration is the base class for representing a database migration.
PdoValue finalClass PdoValue represents a $value that should be bound to PDO with exact $type.
PdoValueBuilderClass PdoValueBuilder builds object of the PdoValue expression class.
QueryQuery represents a SELECT SQL statement in a way that is independent of DBMS.
QueryBuilderQueryBuilder builds a SELECT SQL statement based on the specification given as a Query object.
QueryExpressionBuilderClass QueryExpressionBuilder is used internally to build Query object using unified QueryBuilder expression building interface.
Schema abstractSchema is the base class for concrete DBMS-specific schema classes.
SqlTokenSqlToken represents SQL tokens produced by SqlTokenizer or its child classes.
SqlTokenizer abstractSqlTokenizer splits an SQL query into individual SQL tokens.
StaleObjectException
TableSchemaTableSchema represents the metadata of a database table.
TransactionTransaction represents a DB transaction.
InterfaceSummary
ActiveQueryInterfaceActiveQueryInterface defines the common interface to be implemented by active record query classes.
ActiveRecordInterfaceActiveRecordInterface.
ConstraintFinderInterfaceConstraintFinderInterface defines methods for getting a table constraint information.
ExpressionBuilderInterfaceInterface ExpressionBuilderInterface is designed to build raw SQL from specific expression objects that implement ExpressionInterface.
ExpressionInterfaceInterface ExpressionInterface should be used to mark classes, that should be built in a special way.
MigrationInterfaceThe MigrationInterface defines the minimum set of methods to be implemented by a database migration.
QueryInterfaceThe QueryInterface defines the minimum set of methods to be implemented by a database query.
TraitSummary
ActiveQueryTraitActiveQueryTrait implements the common methods and properties for active record query classes.
ActiveRelationTraitActiveRelationTrait implements the common methods and properties for active record relational queries.
ConstraintFinderTraitConstraintFinderTrait provides methods for getting a table constraint information.
ExpressionBuilderTraitTrait ExpressionBuilderTrait provides common constructor for classes that should implement ExpressionBuilderInterface
QueryTraitThe BaseQuery trait represents the minimum method set of a database Query.
SchemaBuilderTraitSchemaBuilderTrait contains shortcut methods to create instances of ColumnSchemaBuilder.
ViewFinderTraitViewFinderTrait implements the method getViewNames for finding views in a database.