HumHub Documentation (unofficial)

db

Table of Contents

Namespaces

conditions
cubrid
mssql
mysql
oci
pgsql
sqlite

Interfaces

ActiveQueryInterface
ActiveQueryInterface defines the common interface to be implemented by active record query classes.
ActiveRecordInterface
ActiveRecordInterface.
ConstraintFinderInterface
ConstraintFinderInterface defines methods for getting a table constraint information.
ExpressionBuilderInterface
Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression objects that implement [[ExpressionInterface]].
ExpressionInterface
Interface ExpressionInterface should be used to mark classes, that should be built in a special way.
MigrationInterface
The MigrationInterface defines the minimum set of methods to be implemented by a database migration.
QueryInterface
The QueryInterface defines the minimum set of methods to be implemented by a database query.

Classes

ActiveQuery
ActiveQuery represents a DB query associated with an Active Record class.
ActiveRecord
ActiveRecord is the base class for classes representing relational data in terms of objects.
AfterSaveEvent
AfterSaveEvent represents the information available in [[ActiveRecord::EVENT_AFTER_INSERT]] and [[ActiveRecord::EVENT_AFTER_UPDATE]].
ArrayExpression
Class ArrayExpression represents an array SQL expression.
BaseActiveRecord
ActiveRecord is the base class for classes representing relational data in terms of objects.
BatchQueryResult
BatchQueryResult represents a batch query from which you can retrieve data in batches.
CheckConstraint
CheckConstraint represents the metadata of a table `CHECK` constraint.
ColumnSchema
ColumnSchema class describes the metadata of a column in a database table.
ColumnSchemaBuilder
ColumnSchemaBuilder helps to define database schema types using a PHP interface.
Command
Command represents a SQL statement to be executed against a database.
Connection
Connection represents a connection to a database via [PDO](https://www.php.net/manual/en/book.pdo.php).
Constraint
Constraint represents the metadata of a table constraint.
DataReader
DataReader represents a forward-only stream of rows from a query result set.
DefaultValueConstraint
DefaultValueConstraint represents the metadata of a table `DEFAULT` constraint.
Exception
Exception represents an exception that is caused by some DB-related operations.
Expression
Expression represents a DB expression that does not need escaping or quoting.
ExpressionBuilder
Class ExpressionBuilder builds objects of [[yii\db\Expression]] class.
ForeignKeyConstraint
ForeignKeyConstraint represents the metadata of a table `FOREIGN KEY` constraint.
IndexConstraint
IndexConstraint represents the metadata of a table `INDEX` constraint.
IntegrityException
Exception represents an exception that is caused by violation of DB constraints.
JsonExpression
Class JsonExpression represents data that should be encoded to JSON.
Migration
Migration is the base class for representing a database migration.
PdoValue
Class PdoValue represents a $value that should be bound to PDO with exact $type.
PdoValueBuilder
Class PdoValueBuilder builds object of the [[PdoValue]] expression class.
Query
Query represents a SELECT SQL statement in a way that is independent of DBMS.
QueryBuilder
QueryBuilder builds a SELECT SQL statement based on the specification given as a [[Query]] object.
QueryExpressionBuilder
Class QueryExpressionBuilder is used internally to build [[Query]] object using unified [[QueryBuilder]] expression building interface.
Schema
Schema is the base class for concrete DBMS-specific schema classes.
SqlToken
SqlToken represents SQL tokens produced by [[SqlTokenizer]] or its child classes.
SqlTokenizer
SqlTokenizer splits an SQL query into individual SQL tokens.
StaleObjectException
Exception represents an exception that is caused by some DB-related operations.
TableSchema
TableSchema represents the metadata of a database table.
Transaction
Transaction represents a DB transaction.

Traits

ActiveQueryTrait
ActiveQueryTrait implements the common methods and properties for active record query classes.
ActiveRelationTrait
ActiveRelationTrait implements the common methods and properties for active record relational queries.
ConstraintFinderTrait
ConstraintFinderTrait provides methods for getting a table constraint information.
ExpressionBuilderTrait
Trait ExpressionBuilderTrait provides common constructor for classes that should implement [[ExpressionBuilderInterface]]
QueryTrait
The BaseQuery trait represents the minimum method set of a database Query.
SchemaBuilderTrait
SchemaBuilderTrait contains shortcut methods to create instances of [[ColumnSchemaBuilder]].
ViewFinderTrait
ViewFinderTrait implements the method getViewNames for finding views in a database.

        
On this page

Search results