Merge pull request #19 from xtrime-ru/db

New line fix
This commit is contained in:
Daniil Gentili 2020-06-12 14:16:42 +02:00 committed by GitHub
commit 328031934a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 10 deletions

View File

@ -445,7 +445,7 @@ Description: Remove data from the internal database to clean up memory and reduc
Settings for database connection. Settings for database connection.
### `$settings['db']['type']` ### `$settings['db']['type']`
Default: 'memory' Default: `'memory'`
Description: By default madelineProto keeps all data and caches in memory: chats, file references, username cache, etc. Description: By default madelineProto keeps all data and caches in memory: chats, file references, username cache, etc.
This data can require up to 1Gb of ram and more on some accounts. This data can require up to 1Gb of ram and more on some accounts.
MadelineProto can keep part of this data in a database, such as mysql or mariadb. MadelineProto can keep part of this data in a database, such as mysql or mariadb.
@ -459,38 +459,38 @@ Database to memory migration/convertation also supported.
Database and tables will be created automatically. Database and tables will be created automatically.
### `$settings['db']['mysql']['host']` ### `$settings['db']['mysql']['host']`
Default: `'127.0.0.1'` Default: `'127.0.0.1'`
Description: Mysql host Description: Mysql host
### `$settings['db']['mysql']['port']` ### `$settings['db']['mysql']['port']`
Default: 3306 Default: 3306
Description: Mysql port Description: Mysql port
### `$settings['db']['mysql']['user']` ### `$settings['db']['mysql']['user']`
Default: `'root'` Default: `'root'`
Description: Mysql username Description: Mysql username
### `$settings['db']['mysql']['password']` ### `$settings['db']['mysql']['password']`
Default: `''` Default: `''`
Description: Mysql password Description: Mysql password
### `$settings['db']['mysql']['database']` ### `$settings['db']['mysql']['database']`
Default: `'MadelineProto'` Default: `'MadelineProto'`
Description: Name of database. It will be created on first start. Description: Name of database. It will be created on first start.
### `$settings['db']['mysql']['max_connections']` ### `$settings['db']['mysql']['max_connections']`
Default: 10 Default: 10
Description: Limit of concurrent connections. Description: Limit of concurrent connections.
This value must not exceed mysql 'max_user_connections' setting. This value must not exceed mysql 'max_user_connections' setting.
### `$settings['db']['mysql']['idle_timeout']` ### `$settings['db']['mysql']['idle_timeout']`
Default: 60 Default: 60
Description: Number of seconds until connection will be closed. Description: Number of seconds until connection will be closed.
### `$settings['db']['mysql']['cache_ttl']` ### `$settings['db']['mysql']['cache_ttl']`
Default: `'+5 minutes'` Default: `'+5 minutes'`
Description: Time offset to control how long data is cached in memory. Description: Time offset to control how long data will be stored in memory.
This value can be in any format supported by `strtotime` function. This value can be in any format supported by `strtotime` function.
When data retrieved from a database its stored in memory. When data retrieved from a database its stored in memory.