Jelix 1.8.8

mssqlDbTable extends jDbTable
in package

Tags
subpackage

db_driver

deprecated

Table of Contents

$attributes  : array<string|int, mixed>
$columns  : array<string|int, jDbColumn>
$indexes  : array<string|int, jDbIndex>
$name  : string
$primaryKey  : jDbPrimaryKey
$references  : array<string|int, jDbReference>
$schema  : jDbSchema
$uniqueKeys  : array<string|int, jDbUniqueKey>
__construct()  : mixed
addColumn()  : bool
add a column.
addIndex()  : mixed
addReference()  : mixed
addUniqueKey()  : mixed
alterColumn()  : bool
change a column definition. If the column does not exist, it is created.
alterIndex()  : mixed
alterReference()  : mixed
alterUniqueKey()  : mixed
dropColumn()  : mixed
dropIndex()  : mixed
dropPrimaryKey()  : mixed
dropReference()  : mixed
dropUniqueKey()  : mixed
getColumn()  : null|jDbColumn
getColumns()  : array<string|int, jDbColumn>
getIndex()  : null|jDbIndex
getIndexes()  : array<string|int, jDbIndex>
getName()  : mixed
getPrimaryKey()  : false|jDbPrimaryKey
getReference()  : null|jDbReference
getReferences()  : array<string|int, jDbReference>
getUniqueKey()  : null|jDbUniqueKey
getUniqueKeys()  : array<string|int, jDbUniqueKey>
setPrimaryKey()  : mixed
_addColumn()  : mixed
_alterColumn()  : mixed
_createConstraint()  : mixed
_createIndex()  : mixed
_dropColumn()  : mixed
_dropConstraint()  : mixed
_dropIndex()  : mixed
_loadColumns()  : mixed
_loadIndexesAndKeys()  : mixed
_loadReferences()  : mixed
_loadTableDefinition()  : mixed
_replaceConstraint()  : mixed

Properties

$attributes

public array<string|int, mixed> $attributes = array()
Tags

$indexes

protected array<string|int, jDbIndex> $indexes

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

Tags

$primaryKey

protected jDbPrimaryKey $primaryKey

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

Tags

$references

protected array<string|int, jDbReference> $references

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

Tags

$uniqueKeys

protected array<string|int, jDbUniqueKey> $uniqueKeys

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

Tags

Methods

__construct()

public __construct(string $name, jDbSchema $schema) : mixed
Parameters
$name : string

the table name

$schema : jDbSchema
Tags
Return values
mixed

addColumn()

add a column.

public addColumn(jDbColumn $column) : bool
Parameters
$column : jDbColumn
Tags
Return values
bool

true if the column is added, false if not (already there)

alterColumn()

change a column definition. If the column does not exist, it is created.

public alterColumn(jDbColumn $column[, string $oldName = '' ][, bool $doNotCreate = false ]) : bool
Parameters
$column : jDbColumn

the colum with its new properties

$oldName : string = ''

the name of the column to change (if the name is changed)

$doNotCreate : bool = false

true if the column shoul dnot be created when it does not exist

Tags
Return values
bool

true if changed/created

dropColumn()

public dropColumn(mixed $name) : mixed
Parameters
$name : mixed
Tags
Return values
mixed

dropIndex()

public dropIndex(mixed $indexName) : mixed
Parameters
$indexName : mixed
Tags
Return values
mixed

dropPrimaryKey()

public dropPrimaryKey() : mixed
Tags
Return values
mixed

dropReference()

public dropReference(mixed $refName) : mixed
Parameters
$refName : mixed
Tags
Return values
mixed

dropUniqueKey()

public dropUniqueKey(mixed $indexName) : mixed
Parameters
$indexName : mixed
Tags
Return values
mixed

getColumn()

public getColumn(string $name[, bool $forChange = false ]) : null|jDbColumn
Parameters
$name : string
$forChange : bool = false
Tags
Return values
null|jDbColumn

_loadColumns()

protected _loadColumns() : mixed
Tags
Return values
mixed

_loadIndexesAndKeys()

protected _loadIndexesAndKeys() : mixed
Tags
Return values
mixed

_loadReferences()

protected _loadReferences() : mixed
Tags
Return values
mixed

_loadTableDefinition()

protected _loadTableDefinition() : mixed
Tags
Return values
mixed

Search results