\Acms\Services\DatabaseReplication

Summary

Methods
Properties
Constants
__construct()
getTableList()
dropAllTables()
renameAllTable()
dropCashTable()
buildCreateTableSql()
buildInsertSql()
rewriteDomain()
authorityValidation()
No public properties found
No constants found
No protected methods found
$db
$dbName
$dsn
N/A
No private methods found
No private properties found
N/A

Properties

$db

$db : \Acms\Services\Database\Engine

Type

\Acms\Services\Database\Engine

$dbName

$dbName : string

Type

string

$dsn

$dsn : array

Type

array

Methods

__construct()

__construct(  $dsn = null) 

Parameters

$dsn

getTableList()

getTableList() : array

全テーブルの取得

Returns

array

dropAllTables()

dropAllTables() : void

全テーブルの削除

renameAllTable()

renameAllTable() : void

全テーブルのリネーム

dropCashTable()

dropCashTable() : void

一時テーブルの削除

buildCreateTableSql()

buildCreateTableSql() : string

テーブル作成クエリの組み立て

Returns

string

buildInsertSql()

buildInsertSql(string  $table, resource  $handle) : void

データ投入sqlの組み立て

Parameters

string $table
resource $handle

rewriteDomain()

rewriteDomain(string  $new_domain, string  $name) : void

ドメインの書き換え

Parameters

string $new_domain
string $name

authorityValidation()

authorityValidation() 

Throws

\RuntimeException