From 91b786b2b373486d67aaf73f7ef4fa6b0d6f53a0 Mon Sep 17 00:00:00 2001 From: standash Date: Sat, 16 Sep 2017 16:27:32 +0200 Subject: [PATCH] Updated README.md --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index b7dd420..33f4dd4 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ The database has following collections and relationships between them: 2. "vulns" -> the collection that lists all CVEs for which the analysis was performed ("vulns" has one-to-gazillion relationship with "entries") ``` - db.vulns.findOne();
+ db.vulns.findOne(); { _id : "", -> the id of a CVE (bson id) cve : "", -> the name of a CVE @@ -112,16 +112,16 @@ The database has following collections and relationships between them: 3. "entries" -> the collection that lists vulnerability evidence entries - ``` - db.entries.findOne(); - { - _id : "", -> the id of an evicence entry (bson id) - owner_id : "", -> the id of a corresponding CVE - revision : "", -> the current commit/revision to which the entry belongs - revision_distance : "", -> this number indincates how far the current revision is from fix - file_path : "", -> the path of a file to which the entry belongs - container : "", -> the method/constructor to which the entry belongs - line_number : "", -> the number of the line of code - line_contents : "" -> the contents of the line of code - } - ``` +``` +db.entries.findOne(); +{ + _id : "", -> the id of an evicence entry (bson id) + owner_id : "", -> the id of a corresponding CVE + revision : "", -> the current commit/revision to which the entry belongs + revision_distance : "", -> this number indincates how far the current revision is from fix + file_path : "", -> the path of a file to which the entry belongs + container : "", -> the method/constructor to which the entry belongs + line_number : "", -> the number of the line of code + line_contents : "" -> the contents of the line of code +} +```