CrossPHP

DBFactory
in package

Tags
author

wonli wonli@live.com Class DBFactory

Table of Contents

make()  : RedisDriver|CouchDriver|MongoDriver|PDOSqlDriver|mixed
生成model实例
getDsn()  : string
生成DSN
getOracleTns()  : string
生成tns

Methods

getDsn()

生成DSN

private static getDsn(array<string|int, mixed> &$params[, string $type = 'mysql' ][, bool|true $useUnixSocket = true ]) : string
Parameters
$params : array<string|int, mixed>
$type : string = 'mysql'
$useUnixSocket : bool|true = true
Tags
throws
CoreException
Return values
string

getOracleTns()

生成tns

private static getOracleTns(array<string|int, mixed> &$params) : string
Parameters
$params : array<string|int, mixed>
Tags
throws
CoreException
Return values
string

Search results