mysqliDbTable

Extends \mysqlDbTable

package

jelix

subpackage

db_driver

Methods

__construct

__construct(string $name, \jDbSchema $schema) 
inherited

Arguments

$name

string

the table name

$schema

\jDbSchema

_addColumn

_addColumn(\jDbColumn $new) 
inherited abstract

Arguments

$new

\jDbColumn

_alterColumn

_alterColumn(\jDbColumn $old, \jDbColumn $new) 
inherited abstract

Arguments

$old

\jDbColumn

$new

\jDbColumn

_createConstraint

_createConstraint(\jDbConstraint $constraint) 
inherited abstract

Arguments

$constraint

\jDbConstraint

_createIndex

_createIndex(\jDbIndex $index) 
inherited abstract

Arguments

$index

\jDbIndex

_createReference

_createReference(\jDbReference $ref) 
inherited

Arguments

_dropColumn

_dropColumn(\jDbColumn $col) 
inherited

Arguments

$col

\jDbColumn

_dropConstraint

_dropConstraint(\jDbConstraint $constraint) 
inherited abstract

Arguments

$constraint

\jDbConstraint

_dropIndex

_dropIndex(\jDbIndex $index) 
inherited abstract

Arguments

$index

\jDbIndex

_dropReference

_dropReference(\jDbReference $ref) 
inherited

Arguments

_loadColumns

_loadColumns() 
inherited abstract

_loadIndexesAndKeys

_loadIndexesAndKeys() 
inherited abstract

_loadReferences

_loadReferences() 
inherited abstract

_loadTableDefinition

_loadTableDefinition() 
inherited

_replaceConstraint

_replaceConstraint(\jDbConstraint $oldConstraint, \jDbConstraint $newConstraint) 
inherited

Arguments

$oldConstraint

\jDbConstraint

$newConstraint

\jDbConstraint

addColumn

addColumn(\jDbColumn $column) 
inherited

Arguments

$column

\jDbColumn

addIndex

addIndex(\jDbIndex $index) 
inherited

Arguments

$index

\jDbIndex

addReference

addReference(\jDbReference $reference) 
inherited

Arguments

$reference

\jDbReference

addUniqueKey

addUniqueKey(\jDbUniqueKey $key) 
inherited

Arguments

alterColumn

alterColumn(\jDbColumn $column,  $oldName = '') 
inherited

Arguments

$column

\jDbColumn

$oldName

alterIndex

alterIndex(\jDbIndex $index) 
inherited

Arguments

$index

\jDbIndex

alterReference

alterReference(\jDbReference $reference) 
inherited

Arguments

$reference

\jDbReference

alterUniqueKey

alterUniqueKey(\jDbUniqueKey $key) 
inherited

Arguments

dropColumn

dropColumn( $name) 
inherited

Arguments

$name

dropIndex

dropIndex( $indexName) 
inherited

Arguments

$indexName

dropPrimaryKey

dropPrimaryKey() 
inherited

dropReference

dropReference( $refName) 
inherited

Arguments

$refName

dropUniqueKey

dropUniqueKey( $indexName) 
inherited

Arguments

$indexName

getColumn

getColumn( $name,  $forChange = false) 
inherited

Arguments

$name

$forChange

getColumns

getColumns() : array<mixed,\jDbColumn>
inherited

Response

array<mixed,\jDbColumn>

getIndex

getIndex( $name) : \jDbIndex|null
inherited

Arguments

$name

Response

\jDbIndex|null

getIndexes

getIndexes() : array<mixed,\jDbIndex>
inherited

Response

array<mixed,\jDbIndex>

getName

getName() 
inherited

getPrimaryKey

getPrimaryKey() : \jDbPrimaryKey|false
inherited

Response

\jDbPrimaryKey|false

false if there is no primary key

getReference

getReference( $refName) : \jDbReference|null
inherited

Arguments

$refName

Response

\jDbReference|null

getReferences

getReferences() : array<mixed,\jDbReference>
inherited

Response

array<mixed,\jDbReference>

getUniqueKey

getUniqueKey( $name) : \jDbUniqueKey|null
inherited

Arguments

$name

Response

\jDbUniqueKey|null

getUniqueKeys

getUniqueKeys() : array<mixed,\jDbUniqueKey>
inherited

Response

array<mixed,\jDbUniqueKey>

setPrimaryKey

setPrimaryKey(\jDbPrimaryKey $key) 
inherited

Arguments

Properties

attributes

attributes : 
inherited

Type(s)

the name of the table

name : string
inherited
var

the name of the table

Type(s)

string

the schema which holds the table

schema : \jDbSchema
inherited
var

the schema which holds the table

Type(s)

\jDbSchema

null means "columns are not loaded"

columns : \jDbColumn[].
inherited
var

null means "columns are not loaded"

Type(s)

\jDbColumn[].

the primary key. null means "primary key is not loaded". false means : no primary key

primaryKey : \jDbPrimaryKey
inherited
var

the primary key. null means "primary key is not loaded". false means : no primary key

Type(s)

\jDbPrimaryKey

list unique keys. null means "unique key are not loaded"

uniqueKeys : array<mixed,\jDbUniqueKey>
inherited
var

list unique keys. null means "unique key are not loaded"

Type(s)

array<mixed,\jDbUniqueKey>

list of indexes. null means "indexes are not loaded"

indexes : array<mixed,\jDbIndex>
inherited
var

list of indexes. null means "indexes are not loaded"

Type(s)

array<mixed,\jDbIndex>

list of references. null means "references are not loaded"

references : array<mixed,\jDbReference>
inherited
var

list of references. null means "references are not loaded"

Type(s)

array<mixed,\jDbReference>