Skip to content

Commit e7b5677

Browse files
smolaajnavarro
authored andcommitted
README: add description of tables and clarify syntax. (#47)
1 parent 666b64e commit e7b5677

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,20 @@ SELECT hash, author_email, author_name FROM commits LIMIT 2;
4141

4242
## Tables
4343

44-
*TODO*
44+
gitql exposes the following tables:
45+
46+
* commits (hash, author_name, author_email, author_time, comitter_name, comitter_email, comitter_time, message)
47+
* blobs (hash, size)
48+
* references (hash, name, is_branch, is_note, is_remote, is_tag, target)
49+
* tags (hash, name, tagger_email, tagger_name, tagger_when, message, target)
50+
* tree_entries (tree_hash, entry_hash, mode, name)
4551

4652
## SQL syntax
4753

4854
gitql supports a subset of the SQL standard, currently including:
4955

50-
* `SELECT`
51-
* `WHERE`
56+
* `SELECT` (`*` not supported yet)
57+
* `WHERE` (`=` only)
5258
* `ORDER BY` (with `ASC` and `DESC`)
5359
* `LIMIT`
5460

0 commit comments

Comments
 (0)