Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.06 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.06 KB

dxtionary-db

CLI interface to sqlite db for dxtionary

Build status codecov

Usage

Query a word

To get an entry of a word in database:

./dxtionary-db <DATABASE> <QUERY>

Ouput

col1 = value 1
col2 = value 2

col1 = value 1
col2 = value 2
...

To get easy-to-parse output, <QUERY> can use json_quote() function.

Import raw dictionary file to database

import-raw-dict <Database file> <Dictionary file>+

require exact one Database file and at least one dictionary file. <Dictionary file>+ have following structure:

header-1<separator>header-2<separator>header-3
cell-1-1<separator>cell-1-2<separator>cell-1-3
cell-2-1<separator>cell-2-2<separator>cell-2-3
....

for this version the delimiter must be exactly <separator>. This rule may be changed in next versions.