Link Search Menu Expand Document

danog\MadelineProto\Db\SqlArray

Back to index

Author: Daniil Gentili daniil@daniil.it

Generic SQL database backend.

Method list:

  • 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>
  • initConnection()
  • initStartup()
  • 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:

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

initConnection()

Initialize connection.

initStartup()

Initialize on startup.

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