mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
parent
7973d55371
commit
7a3aebced9
19
README.md
19
README.md
|
@ -126,22 +126,3 @@ $ cmake -DMYSQL=ON ..
|
||||||
$ make
|
$ make
|
||||||
$ ./DDNet-Server -f mine.cfg
|
$ ./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