Skip to content

Commit

Permalink
sq
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Aug 27, 2024
1 parent 2854262 commit a872e96
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,7 @@ in Excel or OpenOffice Calc) or MySQL/MariaDB database.

You can select one of following query log types:

- `mysql`: log each query in the external MySQL/MariaDB database
`target` format docs: [Data Source Name](https://github.com/go-sql-driver/mysql?tab=readme-ov-file#dsn-data-source-name).
- `mysql`: log each query in the external MySQL/MariaDB database
- `postgresql`: log each query in the external PostgreSQL database
- `timescale`: log each query in the external Timescale database
- `csv`: log into CSV file (one per day)
Expand Down Expand Up @@ -688,6 +687,15 @@ Configuration parameters:
Please ensure, that the log directory is writable or database exists. If you use docker, please ensure, that the directory is properly
mounted (e.g. volume)

### Database URLs

To connect to a database, you must provide a URL like value for `target`.
The exact format depends on the DB type, and parsing is handled not by Blocky but third-party libraries:

- `mysql`: See Go MySQL driver [Data Source Name](https://github.com/go-sql-driver/mysql?tab=readme-ov-file#dsn-data-source-name)
- `postgresql`: See [pgx.ParseConfig](https://pkg.go.dev/github.com/jackc/pgx/v5/pgconn#ParseConfig)
- `timescale`: Same as `postgresql`

example for CSV format with limited logging information
!!! example

Expand Down

0 comments on commit a872e96

Please sign in to comment.