public array $dsnElements
public string $lastQueryString
public array $selectGroups
protected bool $allowConstraints
protected array $reservedWords
protected string $quoteSpecial
protected Adapter $adapter
protected string $schemaName
public __construct({Array})
Parameter | Type | Description |
---|
$adapter | Adapter | |
$config | Map | |
public __toString({Array})
public setTimezone({Array})
Parameter | Type | Description |
---|
$tz | string | |
public execCount({Array})
Parameter | Type | Description |
---|
$config | Map | |
public getSchemaName({Array})
public setSchemaName({Array})
Parameter | Type | Description |
---|
$schemaName | string | |
public schemaExists({Array})
Parameter | Type | Description |
---|
$schemaName | string | |
public createSchema({Array})
Parameter | Type | Description |
---|
$schemaName | string | |
Parameter | Type | Description |
---|
$dsn | string | |
$username | string | |
$password | string | |
$driverOptions | array | |
Parameter | Type | Description |
---|
$tableName | string | |
public beginTransaction({Array})
public getAttribute({Array})
Parameter | Type | Description |
---|
$attribute | int | |
public setAttribute({Array})
Parameter | Type | Description |
---|
$attribute | int | |
$value | mixed | |
public inTransaction({Array})
public lastInsertId({Array})
Parameter | Type | Description |
---|
$string | mixed | |
$type | int | |
public quoteSpecial({Array})
Parameter | Type | Description |
---|
$value | mixed | |
public errorCode({Array})
public errorInfo({Array})
Parameter | Type | Description |
---|
$sql | string | |
Parameter | Type | Description |
---|
$sql | string | |
Parameter | Type | Description |
---|
$sql | string | |
public schemaName({Array})
Parameter | Type | Description |
---|
$tableName | string | |
public parseSchemaName({Array})
Parameter | Type | Description |
---|
$tableName | string | |
Parameter | Type | Description |
---|
$string | string | |
Parameter | Type | Description |
---|
$info | array | |
public prepareCriteria({Array})
Parameter | Type | Description |
---|
$criteria | string | |
$bindType | string | |
$tissue | string | |
$parentRef | string | |
$optionalKey | string | |
$setKey | bool | |
public prepareCriteriaAction({Array})
Parameter | Type | Description |
---|
$action | string | |
$value | mixed | |
$tissue | string | |
$key | string | |
$setKey | bool | |
public prepareFields({Array})
Parameter | Type | Description |
---|
$fields | mixed | |
$exclude | array | |
$tables | array | |
public prepareValues({Array})
Parameter | Type | Description |
---|
$values | mixed | |
public prepareValue({Array})
Parameter | Type | Description |
---|
$value | mixed | |
$key | string | |
Parameter | Type | Description |
---|
$tableName | string | |
$fields | mixed | |
$returning | string | |
$conflictTarget | string | |
$conflictUpdate | mixed | |
$table | Table | |
Parameter | Type | Description |
---|
$tableName | string | |
$fields | mixed | |
$criteria | array | |
$from | array | |
$returning | string | |
$tables | array | |
Parameter | Type | Description |
---|
$tableName | string | |
$criteria | mixed | |
$from | array | |
public deleteAll({Array})
Parameter | Type | Description |
---|
$tableName | string | |
public listTables({Array})
Parameter | Type | Description |
---|
$ | false | |
public tableExists({Array})
Parameter | Type | Description |
---|
$tableName | string | |
public createTable({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$columns | mixed | |
public describeTable({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$sort | string | |
public renameTable({Array})
Parameter | Type | Description |
---|
$fromName | string | |
$toName | string | |
public dropTable({Array})
Parameter | Type | Description |
---|
$name | string | |
$cascade | bool | |
$ifExists | bool | |
public addColumn({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$columnSpec | mixed | |
public alterColumn({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$column | string | |
$columnSpec | mixed | |
public dropColumn({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$column | string | |
$ifExists | bool | |
public listSequences({Array})
Parameter | Type | Description |
---|
$ | false | |
public describeSequence({Array})
Parameter | Type | Description |
---|
$name | string | |
$ | false | |
public listIndexes({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$ | false | |
public createIndex({Array})
Parameter | Type | Description |
---|
$indexName | string | |
$tableName | string | |
$idxInfo | mixed | |
public dropIndex({Array})
Parameter | Type | Description |
---|
$indexName | string | |
$ifExists | bool | |
public listConstraints({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$type | string | |
$invertType | bool | |
$ | false | |
public addConstraint({Array})
Parameter | Type | Description |
---|
$constraintName | string | |
$info | mixed | |
public dropConstraint({Array})
Parameter | Type | Description |
---|
$constraintName | string | |
$tableName | string | |
$cascade | bool | |
$ifExists | bool | |
public listViews({Array})
Parameter | Type | Description |
---|
$ | false | |
public describeView({Array})
Parameter | Type | Description |
---|
$name | string | |
$ | false | |
public createView({Array})
Parameter | Type | Description |
---|
$name | string | |
$content | mixed | |
public viewExists({Array})
Parameter | Type | Description |
---|
$viewName | string | |
Parameter | Type | Description |
---|
$name | string | |
$cascade | bool | |
$ifExists | bool | |
List defined functions.
public listFunctions({Array})
Parameter | Type | Description |
---|
$schemaName | string | |
$includeParameters | bool | |
$ | false | |
public describeFunction({Array})
Parameter | Type | Description |
---|
$name | string | |
$schemaName | string | |
$ | false | |
Create a new database function.
public createFunction({Array})
Parameter | Type | Description |
---|
$name | mixed | The name of the function to create |
$spec | mixed | A function specification. This is basically the array returned from describeFunction() |
Remove a function from the database.
public dropFunction({Array})
Parameter | Type | Description |
---|
$name | string | The name of the function to remove |
$argTypes | string | the argument list of the function to remove |
$cascade | bool | Whether to perform a DROP CASCADE |
$ifExists | bool | |
TRUNCATE empty a table or set of tables.
TRUNCATE quickly removes all rows from a set of tables. It has the same effect as an unqualified DELETE on each table, but since it does not actually scan the tables it is faster. Furthermore, it reclaims disk space immediately, rather than requiring a subsequent VACUUM operation. This is most useful on large tables.
Parameter | Type | Description |
---|
$tableName | string | The name of the table(s) to truncate. Multiple tables are supported. |
$only | bool | Only the named table is truncated. If FALSE, the table and all its descendant tables (if any) are truncated. |
$restartIdentity | bool | Automatically restart sequences owned by columns of the truncated table(s). The default is to no restart. |
$cascade | bool | If TRUE, automatically truncate all tables that have foreign-key references to any of the named tables, or |
to any tables added to the group due to CASCADE. If FALSE, Refuse to truncate if any of the tables have
foreign-key references from tables that are not listed in the command. FALSE is the default. |
List defined triggers.
public listTriggers({Array})
Parameter | Type | Description |
---|
$tableName | string | |
$schemaName | string | Optional: schema name. If not supplied the current schemaName is used. |
$ | false | |
Describe a database trigger.
public describeTrigger({Array})
This will return an array as there can be multiple triggers with the same name but with different attributes
Parameter | Type | Description |
---|
$triggerName | string | |
$schemaName | string | Optional: schemaName name. If not supplied the current schemaName is used. |
$ | false | |
Summary of createTrigger.
public createTrigger({Array})
Parameter | Type | Description |
---|
$triggerName | string | |
$tableName | string | The table on which the trigger is being created |
$spec | mixed | The spec of the trigger. Basically this is the array returned from describeTriggers() |
Drop a trigger from a table.
public dropTrigger({Array})
Parameter | Type | Description |
---|
$triggerName | string | |
$tableName | string | The name of the table to remove the trigger from |
$cascade | bool | Whether to drop CASCADE |
$ifExists | bool | |
public listUsers({Array})
Parameter | Type | Description |
---|
$ | false | |
public listGroups({Array})
Parameter | Type | Description |
---|
$ | false | |
public createRole({Array})
Parameter | Type | Description |
---|
$name | string | |
$password | string | |
$privileges | array | |
Parameter | Type | Description |
---|
$name | string | |
$ifExists | bool | |
public listExtensions({Array})
Parameter | Type | Description |
---|
$ | false | |
public createExtension({Array})
Parameter | Type | Description |
---|
$name | string | |
public dropExtension({Array})
Parameter | Type | Description |
---|
$name | string | |
$ifExists | bool | |
public createDatabase({Array})
Parameter | Type | Description |
---|
$name | string | |
Special internal function to fix the default column value.
protected fixValue({Array})
This function is normally overridden by the DBD class being used so that values can be "fixed".
Parameter | Type | Description |
---|
$value | mixed | |
private prepareArrayAliases({Array})
Parameter | Type | Description |
---|
$array | array | |
Generated by Hazaar API Doc Generator