mysql-error-parser:将MySQL错误消息解析为结构化格式

时间:2021-04-26 15:21:33
【文件属性】:
文件名称:mysql-error-parser:将MySQL错误消息解析为结构化格式
文件大小:77KB
文件格式:ZIP
更新时间:2021-04-26 15:21:33
HTML MySQL错误解析器 这个库为5.5版至8.0版中的所有mysql服务器错误提供了正则表达式模式。 它可用于从mysql错误和将来的analisys中提取详细信息。 用法示例 $ connect = new \mysqli( 'localhost' , 'root' , '' ); $ result = $ connect -> query ( 'select * from db.unknown_table' ); if (! $ result ) { $ parser = new \ Solodkiy \ MysqlErrorsParser \ PatternMatcher (); $ structuredError = $ parser -> matchError ( $ connect -> errno , $ connect -> error ); var
【文件预览】:
mysql-error-parser-master
----.gitattributes(39B)
----src()
--------ParameterizedMessage.php(731B)
--------Generator()
--------PatternMatcher.php(3KB)
----phpunit.xml.dist(707B)
----patterns()
--------client_5.6.php(438B)
--------server_5.5.php(128KB)
--------client_8.0.php(897B)
--------client_5.7.php(650B)
--------client_5.5.php(10KB)
--------server_8.0.php(92KB)
--------server_5.6.php(35KB)
--------server_5.7.php(51KB)
----LICENSE(1KB)
----tests()
--------PatternMatcherTest.php(6KB)
----.gitignore(40B)
----readme.md(917B)
----bin()
--------console(421B)
----ecs.yaml(614B)
----composer.json(693B)

网友评论