1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 00:34:09 +02:00

add database section to book

This commit is contained in:
Robin Appelman 2026-09-27 17:57:58 +02:00
commit fb4e65eef4
2 changed files with 34 additions and 0 deletions

View file

@ -9,6 +9,7 @@
- [DNS](proxy/dns.md)
- [HTTPS](proxy/https.md)
- [Services](services.md)
- [Database](database.md)
- [Federation](federation.md)
- [Haze scripts](scripts.md)
- [Xdebug](xdebug.md)

33
book/src/database.md Normal file
View 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.