depage-db v1.4.0
Loading...
Searching...
No Matches
Schema Class Reference

Detailed Description

Definition at line 14 of file Schema.php.

Public Member Functions

 __construct ($pdo)
 loadGlob ($path)
 loadFile ($fileName)
 dryRun ()
 update ()
 setReplace ($replaceFunction)

Data Fields

const TABLENAME_TAG = '@tablename'
const CONNECTION_TAG = '@connection'
const VERSION_TAG = '@version'

Protected Member Functions

 run ()
 execute ($number, $statements)
 tableExists ($tableName)
 currentTableVersion ($tableName)
 updateTableVersion ($tableName, $version)
 extractTag ($split=array())
 checkDictionary ($dictionary)
 replace ($tableName)
 replaceIdentifiers ($dictionary, $split=array())

Protected Attributes

 $replaceFunction = array()
 $updateData = array()
 $dryRun
 $pdo = null

Constructor & Destructor Documentation

◆ __construct()

__construct ( $pdo)

Definition at line 24 of file Schema.php.

Member Function Documentation

◆ checkDictionary()

checkDictionary ( $dictionary)
protected

Definition at line 267 of file Schema.php.

◆ currentTableVersion()

currentTableVersion ( $tableName)
protected

Definition at line 203 of file Schema.php.

◆ dryRun()

dryRun ( )

Definition at line 110 of file Schema.php.

◆ execute()

execute ( $number,
$statements )
protected

Definition at line 160 of file Schema.php.

◆ extractTag()

extractTag ( $split = array())
protected

Definition at line 237 of file Schema.php.

◆ loadFile()

loadFile ( $fileName)

Definition at line 43 of file Schema.php.

◆ loadGlob()

loadGlob ( $path)

Definition at line 29 of file Schema.php.

◆ replace()

replace ( $tableName)
protected

Definition at line 289 of file Schema.php.

◆ replaceIdentifiers()

replaceIdentifiers ( $dictionary,
$split = array() )
protected

Definition at line 297 of file Schema.php.

◆ run()

run ( )
protected

Definition at line 122 of file Schema.php.

◆ setReplace()

setReplace ( $replaceFunction)

Definition at line 283 of file Schema.php.

◆ tableExists()

tableExists ( $tableName)
protected

Definition at line 187 of file Schema.php.

◆ update()

update ( )

Definition at line 117 of file Schema.php.

◆ updateTableVersion()

updateTableVersion ( $tableName,
$version )
protected

Definition at line 231 of file Schema.php.

Field Documentation

◆ $dryRun

$dryRun
protected

Definition at line 21 of file Schema.php.

◆ $pdo

$pdo = null
protected

Definition at line 22 of file Schema.php.

◆ $replaceFunction

$replaceFunction = array()
protected

Definition at line 19 of file Schema.php.

◆ $updateData

$updateData = array()
protected

Definition at line 20 of file Schema.php.

◆ CONNECTION_TAG

const CONNECTION_TAG = '@connection'

Definition at line 17 of file Schema.php.

◆ TABLENAME_TAG

const TABLENAME_TAG = '@tablename'

Definition at line 16 of file Schema.php.

◆ VERSION_TAG

const VERSION_TAG = '@version'

Definition at line 18 of file Schema.php.


The documentation for this class was generated from the following file: