BUILD_INFO
BUILD_INFO
表提供了系统的构建信息:
USE INFORMATION_SCHEMA;
SELECT * FROM BUILD_INFO;
结果如下:
+------------+------------------------------------------+------------------+-----------+-------------+
| git_branch | git_commit | git_commit_short | git_clean | pkg_version |
+------------+------------------------------------------+------------------+-----------+-------------+
| | c595a56ac89bef78b19a76aa60d8c6bcac7354a5 | c595a56a | true | 0.9.0 |
+------------+------------------------------------------+------------------+-----------+-------------+
结果中的列:
branch
:构建的 git 分支名称。git_commit
:提交构建的commit