danog\MadelineProto\Settings\Database\Sqlite: SQLite backend settings.
Author: Daniil Gentili daniil@daniil.it
SQLite backend settings.
Stores the session’s data in an SQLite database file (requires the pdo_sqlite extension): no database server is needed, and lookups are much faster than with a server.
Method list:
getOrmSettings(): \danog\AsyncOrm\SettingsgetPath(): stringsetPath(string $path): \danog\MadelineProto\Settings\Database\SqlitegetCacheTtl(): intsetCacheTtl((int|string) $cacheTtl): \danog\MadelineProto\Settings\Database\SqlitegetSerializer(): ?\danog\MadelineProto\Settings\Database\SerializerTypesetSerializer(?\danog\MadelineProto\Settings\Database\SerializerType $serializer): \danog\MadelineProto\Settings\Database\SqlitegetEnableFileReferenceDb(): boolsetEnableFileReferenceDb(bool $enableFileReferenceDb): staticgetEnableMinDb(): boolsetEnableMinDb(bool $enableMinDb): staticgetEnableUsernameDb(): boolsetEnableUsernameDb(bool $enableUsernameDb): staticgetEnableFullPeerDb(): boolsetEnableFullPeerDb(bool $enableFullPeerDb): staticgetEnablePeerInfoDb(): boolsetEnablePeerInfoDb(bool $enablePeerInfoDb): static
Methods:
getOrmSettings(): \danog\AsyncOrm\Settings
See also:
\danog\AsyncOrm\Settings
getPath(): string
Get the absolute path of the database file.
setPath(string $path): \danog\MadelineProto\Settings\Database\Sqlite
Set the absolute path of the database file (created if it doesn’t exist).
Parameters:
$path:stringAbsolute path of the database file.
getCacheTtl(): int
Get for how long to keep records in memory after last read, for cached backends.
setCacheTtl((int|string) $cacheTtl): \danog\MadelineProto\Settings\Database\Sqlite
Set for how long to keep records in memory after last read, for cached backends.
The cache TTL identifier can be a string like ‘+5 minutes’.
Parameters:
$cacheTtl:(int|string)For how long to keep records in memory after last read, for cached backends.
getSerializer(): ?\danog\MadelineProto\Settings\Database\SerializerType
Get the serializer to use by default.
See also:
setSerializer(?\danog\MadelineProto\Settings\Database\SerializerType $serializer): \danog\MadelineProto\Settings\Database\Sqlite
Set the serializer to use by default.
Parameters:
$serializer:?\danog\MadelineProto\Settings\Database\SerializerTypeThe serializer to use by default; if null, the best one is chosen.
See also:
getEnableFileReferenceDb(): bool
Get whether to enable the file reference database. If disabled, will break file downloads.
setEnableFileReferenceDb(bool $enableFileReferenceDb): static
Set whether to enable the file reference database. If disabled, will break file downloads.
Parameters:
$enableFileReferenceDb:boolWhether to enable the file reference database. If disabled, will break file downloads.
getEnableMinDb(): bool
Get whether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.
setEnableMinDb(bool $enableMinDb): static
Set whether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.
Parameters:
$enableMinDb:boolWhether to enable the min database. If disabled, will break sendMessage (and other methods) in certain conditions.
getEnableUsernameDb(): bool
Get whether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.
setEnableUsernameDb(bool $enableUsernameDb): static
Set whether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.
Parameters:
$enableUsernameDb:boolWhether to enable the username database. If disabled, will break sendMessage (and other methods) with usernames.
getEnableFullPeerDb(): bool
Get whether to enable the full peer info database. If disabled, will break getFullInfo.
setEnableFullPeerDb(bool $enableFullPeerDb): static
Set whether to enable the full peer info database. If disabled, will break getFullInfo.
Parameters:
$enableFullPeerDb:boolWhether to enable the full peer info database. If disabled, will break getFullInfo.
getEnablePeerInfoDb(): bool
Get whether to enable the peer info database. If disabled, will break getInfo.
setEnablePeerInfoDb(bool $enablePeerInfoDb): static
Set whether to enable the peer info database. If disabled, will break getInfo.
Parameters:
$enablePeerInfoDb:boolWhether to enable the peer info database. If disabled, will break getInfo.
Generated by danog/phpdoc