# danog\MadelineProto\Settings\DatabaseAbstract: Base class for storage backends.

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

Base class for storage backends.  




## Method list:
* [`getEnableFileReferenceDb(): bool`](#getEnableFileReferenceDb)
* [`setEnableFileReferenceDb(bool $enableFileReferenceDb): static`](#setEnableFileReferenceDb)
* [`getEnableMinDb(): bool`](#getEnableMinDb)
* [`setEnableMinDb(bool $enableMinDb): static`](#setEnableMinDb)
* [`getEnableUsernameDb(): bool`](#getEnableUsernameDb)
* [`setEnableUsernameDb(bool $enableUsernameDb): static`](#setEnableUsernameDb)
* [`getEnableFullPeerDb(): bool`](#getEnableFullPeerDb)
* [`setEnableFullPeerDb(bool $enableFullPeerDb): static`](#setEnableFullPeerDb)
* [`getEnablePeerInfoDb(): bool`](#getEnablePeerInfoDb)
* [`setEnablePeerInfoDb(bool $enablePeerInfoDb): static`](#setEnablePeerInfoDb)
* [`getOrmSettings(): \danog\AsyncOrm\Settings`](#getOrmSettings)

## Methods:
### <a name="getEnableFileReferenceDb"></a> `getEnableFileReferenceDb(): bool`

Get whether to enable the file reference database. If disabled, will break file downloads.



### <a name="setEnableFileReferenceDb"></a> `setEnableFileReferenceDb(bool $enableFileReferenceDb): static`

Set whether to enable the file reference database. If disabled, will break file downloads.


Parameters:

* `$enableFileReferenceDb`: `bool` Whether to enable the file reference database. If disabled, will break file downloads.  



### <a name="getEnableMinDb"></a> `getEnableMinDb(): bool`

Get whether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.



### <a name="setEnableMinDb"></a> `setEnableMinDb(bool $enableMinDb): static`

Set whether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.


Parameters:

* `$enableMinDb`: `bool` Whether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.  



### <a name="getEnableUsernameDb"></a> `getEnableUsernameDb(): bool`

Get whether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.



### <a name="setEnableUsernameDb"></a> `setEnableUsernameDb(bool $enableUsernameDb): static`

Set whether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.


Parameters:

* `$enableUsernameDb`: `bool` Whether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.  



### <a name="getEnableFullPeerDb"></a> `getEnableFullPeerDb(): bool`

Get whether to enable the full peer info database. If disabled, will break getFullInfo.



### <a name="setEnableFullPeerDb"></a> `setEnableFullPeerDb(bool $enableFullPeerDb): static`

Set whether to enable the full peer info database. If disabled, will break getFullInfo.


Parameters:

* `$enableFullPeerDb`: `bool` Whether to enable the full peer info database. If disabled, will break getFullInfo.  



### <a name="getEnablePeerInfoDb"></a> `getEnablePeerInfoDb(): bool`

Get whether to enable the peer info database. If disabled, will break getInfo.



### <a name="setEnablePeerInfoDb"></a> `setEnablePeerInfoDb(bool $enablePeerInfoDb): static`

Set whether to enable the peer info database. If disabled, will break getInfo.


Parameters:

* `$enablePeerInfoDb`: `bool` Whether to enable the peer info database. If disabled, will break getInfo.  



### <a name="getOrmSettings"></a> `getOrmSettings(): \danog\AsyncOrm\Settings`




#### See also: 
* `\danog\AsyncOrm\Settings`




---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
