readme: tweaks

This commit is contained in:
0x1eef 2022-07-12 14:57:37 -03:00
parent da4e8413ed
commit f8c33d9e7c

View file

@ -4,8 +4,8 @@ This repository contains the holy book, The Qur'an, in its original Arabic and a
in English, Farsi, and Portuguese. The contents are made available in JSON, and SQL files. in English, Farsi, and Portuguese. The contents are made available in JSON, and SQL files.
**Navigation** **Navigation**
1. [`src/json`directory](#srcjson-directory) 1. [`src/json/`directory](#srcjson-directory)
2. [`src/sql` directory](#srcsql-directory) 2. [`src/sql/` directory](#srcsql-directory)
3. [`bin/` directory](#bin-directory) 3. [`bin/` directory](#bin-directory)
### <a id='srcjson-directory'>`src/json/` directory</a> ### <a id='srcjson-directory'>`src/json/` directory</a>
@ -240,12 +240,12 @@ phrase in the English translation of The Qur'an, using the LIKE operator:
```sql ```sql
SELECT qurans.locale, SELECT qurans.locale,
chapters.number as chapter, chapters.number AS chapter,
verses.number as verse, verses.number AS verse,
verses.content from verses verses.content from verses
INNER JOIN qurans ON qurans.id = verses.quran_id INNER JOIN qurans ON qurans.id = verses.quran_id
INNER JOIN chapters ON chapters.id = verses.chapter_id INNER JOIN chapters ON chapters.id = verses.chapter_id
WHERE qurans.locale = "en" AND WHERE qurans.locale = 'en' AND
verses.content LIKE '%reflected light%'; verses.content LIKE '%reflected light%';
``` ```
@ -253,12 +253,12 @@ The output should look like this:
``` ```
sqlite> SELECT qurans.locale, sqlite> SELECT qurans.locale,
...> chapters.number as chapter, ...> chapters.number AS chapter,
...> verses.number as verse, ...> verses.number AS verse,
...> verses.content from verses ...> verses.content FROM verses
...> INNER JOIN qurans ON qurans.id = verses.quran_id ...> INNER JOIN qurans ON qurans.id = verses.quran_id
...> INNER JOIN chapters ON chapters.id = verses.chapter_id ...> INNER JOIN chapters ON chapters.id = verses.chapter_id
...> WHERE qurans.locale = "en" AND ...> WHERE qurans.locale = 'en' AND
...> verses.content LIKE '%reflected light%'; ...> verses.content LIKE '%reflected light%';
locale chapter verse content locale chapter verse content
------ ------- ----- ------------------------------------------------------------ ------ ------- ----- ------------------------------------------------------------