> For the complete documentation index, see [llms.txt](https://starozytny.gitbook.io/rankjoinmessages/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://starozytny.gitbook.io/rankjoinmessages/files/database.yml.md).

# database.yml

```yaml
# !-----------------------------------------------------------------------------------------------!
# Configuration to connect with database
# This file is not reloading so after change any value here you need restart server
# !-----------------------------------------------------------------------------------------------!


# !-----------------------------------------------------------------------------------------------!
# Available type: MYSQL, POSTGRESQL, MONGODB, SQLITE, H2
# Or if you don't want use any database set to `NONE`
# Can be provided in lowercase or uppercase
# !-----------------------------------------------------------------------------------------------!
DatabaseType: NONE

# Used for MySQL, PostgreSQL, MongoDB
Database:
  Username: username
  Host: localhost
  Port: 3306
  Database: database
  Password: password
  SQLite:
    # Used for SQLite and H2
    # You can also put here "Default"
    Patch: "database.db"

  PurgeData:
    Enabled: false
    # Available formats: SECONDS, MINUTES, HOURS, DAYS
    # IT'S IMPORTANT TO KEEP UPPERCASE.
    # WHEN YOU MAKE A TYPO, IT WILL RESULT IN AN ERROR IN THE CONSOLE
    Frame: "DAYS"
    Value: 30
```
