interface VirtualConnectionInterface implements ConnectionInterface

VirtualConnectionInterface

ConnectionInterface 를 따르며 DynamicField 처리를 위해 dynamic 메소드 추가

Methods

dynamic(string $table, array $options = array(), bool $proxy = true)

Begin a fluent query against a database table.

Connection
getDefaultConnection()

get default connection

Builder
getSchemaBuilder()

Get a schema builder instance for the connection.

array
getSchema(string $table)

return database table schema

bool
setSchemaCache(string $table, bool $force = false)

set database table schema

string
getTablePrefix()

Get table prefix name.

ConnectionInterface
getConnection(string $type)

get connection by $queryType.

getProxyManager()

get ProxyManager.

Details

at line 41
DynamicQuery dynamic(string $table, array $options = array(), bool $proxy = true)

Begin a fluent query against a database table.

Parameters

string $table table name
array $options use by proxy fire id
bool $proxy use proxy

Return Value

DynamicQuery

at line 48
Connection getDefaultConnection()

get default connection

Return Value

Connection

at line 55
Builder getSchemaBuilder()

Get a schema builder instance for the connection.

Return Value

Builder

at line 63
array getSchema(string $table)

return database table schema

Parameters

string $table table name

Return Value

array

at line 72
bool setSchemaCache(string $table, bool $force = false)

set database table schema

Parameters

string $table table name
bool $force force

Return Value

bool

at line 79
string getTablePrefix()

Get table prefix name.

Return Value

string

at line 89
ConnectionInterface getConnection(string $type)

get connection by $queryType.

'select' 쿼리일 경우 $slaveConnection 을 넘겨주고 그렇지 않을 경우 $masterConnection 을 반환. database 를 쿼리 실행 시 연결.

Parameters

string $type query type

Return Value

ConnectionInterface

at line 97
ProxyManager getProxyManager()

get ProxyManager.

DynamicQuery 에서 VirtualConnection 를 주입 받아 사용.

Return Value

ProxyManager