mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 08:44:09 +02:00
add database section to book
This commit is contained in:
parent
6c440952dc
commit
fb4e65eef4
2 changed files with 34 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
- [DNS](proxy/dns.md)
|
- [DNS](proxy/dns.md)
|
||||||
- [HTTPS](proxy/https.md)
|
- [HTTPS](proxy/https.md)
|
||||||
- [Services](services.md)
|
- [Services](services.md)
|
||||||
|
- [Database](database.md)
|
||||||
- [Federation](federation.md)
|
- [Federation](federation.md)
|
||||||
- [Haze scripts](scripts.md)
|
- [Haze scripts](scripts.md)
|
||||||
- [Xdebug](xdebug.md)
|
- [Xdebug](xdebug.md)
|
||||||
|
|
|
||||||
33
book/src/database.md
Normal file
33
book/src/database.md
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Database
|
||||||
|
|
||||||
|
There are 3 ways of accessing the database of a haze instance.
|
||||||
|
|
||||||
|
## CLI
|
||||||
|
|
||||||
|
```bash
|
||||||
|
haze [filter] db [query]
|
||||||
|
```
|
||||||
|
|
||||||
|
Opens the command line client for the database. If a query is specified, it will
|
||||||
|
be executed. If no query is specified, an interactive shell will be started.
|
||||||
|
|
||||||
|
Example
|
||||||
|
|
||||||
|
```
|
||||||
|
haze db 'select fileid, storage, path from oc_filecache'
|
||||||
|
```
|
||||||
|
|
||||||
|
## WebUI
|
||||||
|
|
||||||
|
A web UI (based on [DbGate](https://www.dbgate.io/)) is available with every
|
||||||
|
instance.
|
||||||
|
|
||||||
|
It can be accessed by using `haze open db`, or, if the proxy is setup at
|
||||||
|
`db.haze.example.com`.
|
||||||
|
|
||||||
|
## External tools
|
||||||
|
|
||||||
|
For usage with external tools, the database connection URL is printed when the
|
||||||
|
instance is created.
|
||||||
|
|
||||||
|
Details on how to use the connection URL is dependent on the external tool.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue