Connection
└─Sqlsrv
public class Sqlsrv
extends Connection
Method Summary | |
---|---|
protected string | parseDsn(array config) 解析pdo连接的dsn信息 |
array | getFields(string tableName) 取得数据表的字段信息 |
array | getTables(string dbName) 取得数据表的字段信息 |
protected array | getExplain(string sql) SQL性能分析 |
Methods inherited from think\Connection | |
---|---|
__construct, batchQuery, bindValue, close, commit, connect, debug, execute, fieldCase, free, getConfig, getError, getExecuteTimes, getExplain, getFields, getLastInsID, getLastSql, getNumRows, getPdo, getQueryTimes, getRealSql, getResult, getTables, initConnect, listen, model, multiConnect, parseDsn, parseSavepoint, parseSavepointRollBack, procedure, query, quote, rollback, setConfig, startTrans, supportSavepoint, transaction, trigger |
protected string parseDsn(array config)
解析pdo连接的dsn信息
public array getFields(string tableName)
取得数据表的字段信息
public array getTables(string dbName)
取得数据表的字段信息
protected array getExplain(string sql)
SQL性能分析
Sqlsrv数据库驱动