Closed ajnavarro closed 5 years ago
Example:
mysql> select commit_file_stats(repository_id,commit_hash) from commits limit 1; +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | commit_stats(commits.repository_id, commits.commit_hash) | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | {"Files":1,"Code":{"Additions":0,"Deletions":0},"Comment":{"Additions":0,"Deletions":0},"Blank":{"Additions":0,"Deletions":0},"Other":{"Additions":25,"Deletions":0},"Total":{"Additions":25,"Deletions":0}} | +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.03 sec)
Example: