\Imi\Db\Query\InterfacesITable

Summary

Methods
Constants
getDatabase()
setDatabase()
getAlias()
setAlias()
setValue()
isRaw()
useRaw()
setRawSQL()
__toString()
getBinds()
getTable()
setTable()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getDatabase()

getDatabase() : string

获取数据库名

Returns

string

setDatabase()

setDatabase(string  $database = null) : void

设置数据库名

Parameters

string $database

getAlias()

getAlias() : string

获取别名

Returns

string

setAlias()

setAlias(string  $alias = null) : void

设置别名

Parameters

string $alias

setValue()

setValue(string  $value) : void

设置值,可以根据传入的值自动处理 name——table parent.name——database.table name alias——table alias name as alias—— table as alias

Parameters

string $value

isRaw()

isRaw() : boolean

获取是否使用原生语句

Returns

boolean

useRaw()

useRaw(boolean  $isRaw = true) : void

设置是否使用原生语句

Parameters

boolean $isRaw

setRawSQL()

setRawSQL(string  $rawSQL) : void

设置原生语句

Parameters

string $rawSQL

__toString()

__toString() 

getBinds()

getBinds() : array

获取绑定的数据们

Returns

array

getTable()

getTable() : string

获取表名

Returns

string

setTable()

setTable(string  $table = null) : void

设置表名

Parameters

string $table