Link Search Menu Expand Document

danog\MadelineProto\Db\PostgresArray

Back to index

Author: Daniil Gentili daniil@daniil.it

Postgres database backend.

Method list:

  • initStartup()
  • initConnection(\danog\MadelineProto\Settings\Database\Postgres $settings)
  • getIterator()
  • unset(): \Amp\Promise<array>
  • count(): \Promise<int> The number of elements or public properties in the associated array or object, respectively.
  • clear(): \Amp\Promise<\Amp\Sql\CommandResult>
  • getTable()
  • isset(mixed $key): \Promise<bool> true if the offset exists, otherwise false
  • getInstance(\danog\MadelineProto\Db\DbArray|array|null $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings)

Methods:

initStartup()

Initialize on startup.

initConnection(\danog\MadelineProto\Settings\Database\Postgres $settings)

Initialize connection.

Parameters:

  • $settings: \danog\MadelineProto\Settings\Database\Postgres

See also:

getIterator()

unset(): \Amp\Promise<array>

Unset value for an offset.

See also:

  • \Amp\Promise

`count(): \Promise The number of elements or public properties in the associated

array or object, respectively.`

Count elements.

Return value: The number of elements or public properties in the associated array or object, respectively.

clear(): \Amp\Promise<\Amp\Sql\CommandResult>

Clear all elements.

See also:

  • \Amp\Sql\CommandResult
  • \Amp\Promise

getTable()

Get the value of table.

isset(mixed $key): \Promise<bool> true if the offset exists, otherwise false

Check if key isset.

Parameters:

  • $key: mixed

Return value: true if the offset exists, otherwise false

getInstance(\danog\MadelineProto\Db\DbArray|array|null $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings)

Parameters:

  • $previous: \danog\MadelineProto\Db\DbArray|array|null
  • $settings: \danog\MadelineProto\Settings\Database\DatabaseAbstract

Fully typed return value:

\Amp\Promise<static>

See also:


Generated by danog/phpdoc