first commit

This commit is contained in:
2026-01-15 22:38:46 +03:00
commit a70e9b7a79
58 changed files with 3980 additions and 0 deletions

40
docs/ru/config.md Normal file
View File

@@ -0,0 +1,40 @@
# Конфигурация
Файл `config.yml`:
```yaml
driver: "mysql"
host: "localhost"
port: 3306
database: "primalix"
username: "root"
password: ""
adminDatabase: "postgres"
autoTransactions: true
pool:
maxPoolSize: 10
minIdle: 2
connectionTimeoutMs: 30000
idleTimeoutMs: 600000
maxLifetimeMs: 1800000
```
## Поля
- `driver`: `mysql` или `postgres`.
- `host`: адрес БД.
- `port`: порт БД.
- `database`: основная база.
- `username`: логин.
- `password`: пароль.
- `adminDatabase`: PostgreSQL админ‑база для create/drop database.
- `autoTransactions`: оборачивать schema операции в транзакцию.
## Pool
- `maxPoolSize`: максимум соединений.
- `minIdle`: минимум idle.
- `connectionTimeoutMs`: таймаут подключения.
- `idleTimeoutMs`: таймаут простоя.
- `maxLifetimeMs`: максимальная жизнь соединения.