# README
= Database configuration
== Environments
|=== |Env name |Required|Default value
|DB_DIALECT
|no
|pgx
|DB_HOST
|yes
|
|DB_PORT
|no
|5432
|DB_NAME
|yes
|
|DB_SSL_MODE
|no
|disable
|DB_MAX_IDLE_CONNECTIONS
|no
|5
|DB_MAX_OPEN_CONNECTIONS
|no
|15
|DB_MAX_LIFETIME_IN_MINUTES
|no
|15
|DB_USER
|yes
|
|DB_PASSWORD
|yes
|
|SCHEMA_DB_USER
|no
|env value DB_USER
|SCHEMA_DB_PASSWORD
|no
|env value DB_PASSWORD
|GOOSE_MIGRATION_DIR
|no
|/db/migrations
|===
== Конвенция работы с БД из сервисов . For entities, it is recommended to use the method link:https://gorm.io/docs/conventions.html#TableName[`TableName`] and extend from link:base-entity.go[BaseEntity] + [sourse,go]
type MyEntity struct { BaseEntity }
func (MyEntity) TableName() string { return "db-table-name" }
include::naming-policy.adoc[]
include::TODO.adoc[]
# Functions
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author