mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
TextQL instructions
This commit is contained in:
parent
d77d18c98a
commit
7973d55371
19
README.md
19
README.md
|
@ -126,3 +126,22 @@ $ cmake -DMYSQL=ON ..
|
|||
$ make
|
||||
$ ./DDNet-Server -f mine.cfg
|
||||
```
|
||||
|
||||
Importing the official DDNet Database into SQLite using TextQL
|
||||
--------------------------------------------------------------
|
||||
|
||||
```bash
|
||||
$ wget https://ddnet.tw/stats/ddnet-stats.zip
|
||||
$ unzip ddnet-stats
|
||||
$ cd ddnet-stats
|
||||
$ go get -u github.com/dinedal/textql/...
|
||||
$ textql -console -header maps.csv race.csv teamrace.csv
|
||||
sqlite> select sum(Points) from race join maps on race.Map = maps.Map where race.Name = "nameless tee";
|
||||
48849
|
||||
sqlite> .save ddnet.sqlite
|
||||
sqlite> ^D
|
||||
$ ls -lha ddnet.sqlite
|
||||
-rw-r--r-- 1 deen deen 200M Apr 12 23:26 ddnet.sqlite
|
||||
$ sqlite3 ddnet.sqlite
|
||||
sqlite>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue