Schema
class Schema
Traits
Properties
| static | $debug |
Methods
Check if column exists or not
Same as column, but this method will give you more raw information about column in some table
No description
Use singleton pattern
Create and table schema with Blueprint as designer based on rdbms grammar
Drop table just type table name and drop it.
Drop column table just type table and column name then drop it.
Emptying table
Magic method to call data via scoped property or structure method
No description
Details
in
Utils at line 18
static
setMigrationFilePath(string $filePath)
No description
in
Utils at line 23
static
getMigrationFilePath()
No description
in
Utils at line 28
static
isDetailExists(string $hash)
No description
in
Utils at line 36
static
createMigrationDetail(string $filePath)
No description
in
Utils at line 49
static
getLastVersion()
No description
in
Utils at line 56
debug()
No description
in
Utils at line 61
static
checkTable(string $tableName)
No description
in
Utils at line 69
static
repairTable(string $tableName)
No description
in
Detail at line 59
PDOStatement
getTableDetail(string $tableName)
No description
in
Detail at line 77
PDOStatement
getColumnDetail(string $tableName, string $columnName)
No description
in
Detail at line 95
array
getTableColumn(string $tableName, bool $fetchAll = false)
No description
in
Detail at line 119
static bool
hasTable(string $tableName)
CHeck if table is exists or not
in
Detail at line 131
static bool
hasColumn(string $tableName, string $columnName)
Check if column exists or not
in
Detail at line 156
array
columns(bool $fetchAll = false)
Same as column, but this method will give you more raw information about column in some table
in
Detail at line 166
static array
tables()
Get all table data from current database
in
Detail at line 189
bool
isAutoIncrement()
Get boolean result about table and column Auto Increment status
in
Detail at line 198
bool
isTemporary()
No description
in
Detail at line 206
bool
isEmpty()
No description
in
Detail at line 214
bool
isNull()
No description
in
Detail at line 222
bool
isUnique()
No description
in
Detail at line 230
bool
isPrimary()
No description
in
Detail at line 238
bool
isFullText()
No description
in
Detail at line 246
bool
isExists()
No description
at line 45
static
connection(string $connectionName = 'SLiMS')
No description
at line 57
static void
getInstance()
Use singleton pattern
at line 73
void
structureCreate(string $tableName, Closure $callBack)
Create and table schema with Blueprint as designer based on rdbms grammar
at line 99
Schema|string
structureTable(string $tableName, Closure $callBack = '')
Modify existing table
at line 128
void
structureDrop(string $tableName)
Drop table just type table name and drop it.
at line 140
void
structureDropColumn(string $tableName, string $columnName)
Drop column table just type table and column name then drop it.
at line 151
void
structureTruncate(string $tableName)
Emptying table
at line 163
string
__call($method, $arguments)
Magic method to call data via scoped property or structure method
at line 185
static
__callStatic($method, $arguments)
No description