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

DatabasePool在实例database时存在不足 #32

Closed
fengzhi opened this issue May 11, 2017 · 4 comments
Closed

DatabasePool在实例database时存在不足 #32

fengzhi opened this issue May 11, 2017 · 4 comments

Comments

@fengzhi
Copy link

fengzhi commented May 11, 2017

database继承Medoo,Medoo在实例PDO时有option、cammand等参数,比如option用于PDO::setAttribute()来设定PDO的一些预常量,常见的如$this->pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION),在$db->exec($query)时如果$query错误才会抛出异常。建议在pool实例database时加入
'option' => isset($config['option']) ? $config['option'] : ''等Medoo配置

@JanHuang
Copy link
Member

感谢反馈,会尽快实现🙏

@JanHuang
Copy link
Member

@fengzhi 您好,已支持。

@fengzhi
Copy link
Author

fengzhi commented May 11, 2017

👍效率

@JanHuang
Copy link
Member

@fengzhi 欢迎建议

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

No branches or pull requests

2 participants