选择语言 :

 Driver_Database_Driver_SQLite::_get_connection_hash

获取链接唯一hash

string Driver_Database_Driver_SQLite::_get_connection_hash( string $file )

参数列表

参数 类型 描述 默认值
$file string $file
返回值
  • string
File: ./drivers/database/sqlite/sqlite.class.php
protected function _get_connection_hash($file)
{
    $hash = sha1(get_class($this).$file);
    Database_Driver::$_hash_to_hostname[$hash] = Core::debug_path($file);

    return $hash;
}