Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tp 数据库操作 #168

Open
can-as opened this issue Jul 9, 2022 · 0 comments
Open

tp 数据库操作 #168

can-as opened this issue Jul 9, 2022 · 0 comments

Comments

@can-as
Copy link

can-as commented Jul 9, 2022

function static frameInitialize()
{
// 获得数据库配置
$dbConf = Config::getInstance()->getConf('database');
// 全局初始化
Db::setConfig($dbConf);
}

为啥这样使用tp 数据库操作不会有协程问题?,没看见代码在哪处理了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant