\Acms\Services\Update\DatabaseDatabaseInfo

Summary

Methods
Properties
Constants
__construct()
getTables()
getColumns()
getIndex()
rename()
changeEngine()
add()
change()
showIndex()
createTables()
No public properties found
No constants found
alterTable()
$dsn
N/A
No private methods found
No private properties found
N/A

Properties

$dsn

$dsn : array

DB接続情報

Type

array

Methods

__construct()

__construct(  $dsn) 

DatabaseInfo constructor.

Parameters

$dsn

array

getTables()

getTables() : array

テーブル一覧の取得

Returns

array

getColumns()

getColumns(  $table) : array

テーブルのカラム一覧の取得

Parameters

$table

string

Returns

array

getIndex()

getIndex(  $table) : array

テーブルのインデックスの取得

Parameters

$table

string

Returns

array

rename()

rename(string  $table, string  $left, array  $def, string  $right) 

カラムのリネーム

Parameters

string $table
string $left
array $def
string $right

changeEngine()

changeEngine(string  $table, string  $engine) 

テーブルのEngineを変更

Parameters

string $table
string $engine

add()

add(string  $table, string  $left, array  $def, string  $after) 

カラムの追加

Parameters

string $table
string $left
array $def
string $after

change()

change(string  $table, string  $left, array  $def) 

カラムの変更

Parameters

string $table
string $left
array $def

showIndex()

showIndex(string  $table) : array

現在のインデックスを取得

Parameters

string $table

Returns

array

createTables()

createTables(  $tables, null  $idx = null,   $define = array()) 

テーブルを作成する

Parameters

$tables
null $idx
$define

alterTable()

alterTable(string  $method, string  $tb, string  $left, array|null  $def = null, string  $right = null) : void

_alterTable カラム定義の変更を適用する

Parameters

string $method
string $tb
string $left
array|null $def

カラム定義

string $right