feat(database): support postgres (#43)

Co-authored-by: Li4n0 <[email protected]>
This commit is contained in:
becivells
2021-12-24 22:05:12 +08:00
committed by GitHub
co-authored by Li4n0
parent 3242a49b27
commit 8b30f83075
18 changed files with 224 additions and 51 deletions
+22
View File
@@ -126,6 +126,28 @@ dns:
## Advance Usage
### Database Configuration
#### mysql
```yaml
database: "mysql://root:password@tcp(127.0.0.1:3306)/revsuit?charset=utf8mb4&parseTime=True&loc=Local"
```
#### PostgresSQL
```yaml
database: "postgres://host=127.0.0.1 user=postgres password=postgres dbname=postgres port=5432 sslmode=disable TimeZone=Asia/Shanghai"
```
#### sqlite3
```yaml
database: revsuit.db
```
### Use with Scanner
RevSuit was split from my scanner project, so its native support works with scanners.