Browse Source

doc: fix the path to the sqlite database file

The sqlite database location has been changed in aab83e72.

Changelog-None
travis-debug
Vasil Dimov 5 years ago
committed by Christian Decker
parent
commit
bf1f768a82
  1. 8
      doc/HACKING.md

8
doc/HACKING.md

@ -109,15 +109,15 @@ Database
c-lightning state is persisted in `lightning-dir`. c-lightning state is persisted in `lightning-dir`.
It is a sqlite database stored in the `lightningd.sqlite3` file, typically It is a sqlite database stored in the `lightningd.sqlite3` file, typically
under `~/.lightning`. under `~/.lightning/<network>/`.
You can run queries against this file like so: You can run queries against this file like so:
$ sqlite3 ~/.lightning/lightningd.sqlite3 \ $ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3 \
"SELECT HEX(prev_out_tx), prev_out_index, status FROM outputs" "SELECT HEX(prev_out_tx), prev_out_index, status FROM outputs"
Or you can launch into the sqlite3 repl and check things out from there: Or you can launch into the sqlite3 repl and check things out from there:
$ sqlite3 ~/.lightning/lightningd.sqlite3 $ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3
SQLite version 3.21.0 2017-10-24 18:55:49 SQLite version 3.21.0 2017-10-24 18:55:49
Enter ".help" for usage hints. Enter ".help" for usage hints.
sqlite> .tables sqlite> .tables
@ -135,7 +135,7 @@ as some queries may lock the database and cause crashes.
#### Common variables #### Common variables
Table `vars` contains global variables used by lightning node. Table `vars` contains global variables used by lightning node.
$ sqlite3 ~/.lightning/lightningd.sqlite3 $ sqlite3 ~/.lightning/bitcoin/lightningd.sqlite3
SQLite version 3.21.0 2017-10-24 18:55:49 SQLite version 3.21.0 2017-10-24 18:55:49
Enter ".help" for usage hints. Enter ".help" for usage hints.
sqlite> .headers on sqlite> .headers on

Loading…
Cancel
Save