Link Search Menu Expand Document

danog\MadelineProto\Db\DbArray

Back to index

Author: Daniil Gentili daniil@daniil.it

DB array interface.

Method list:

  • getArrayCopy()
  • isset()
  • unset()
  • set()
  • offsetGet(string|int $index)
  • offsetSet(string|int $index): void
  • count(): \Amp\Promise<int>
  • clear()
  • getIterator()
  • getInstance(null|\danog\MadelineProto\Db\DbType|array $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings): \Amp\Promise<self>

Methods:

getArrayCopy()

Get Array copy.

Fully typed return value:

\Amp\Promise<array<string|int, \T>>

See also:

  • \T
  • \Amp\Promise

isset()

Check if element is set.

Fully typed return value:

\Amp\Promise<bool>

See also:

  • \Amp\Promise

unset()

Unset element.

Fully typed return value:

\Amp\Promise<mixed>

See also:

  • \Amp\Promise

set()

Set element.

Parameters:

See also:

  • \T

offsetGet(string|int $index)

Get element.

Parameters:

  • $index: string|int

Fully typed return value:

\Amp\Promise<\T>

See also:

  • \T
  • \Amp\Promise

offsetSet(string|int $index): void

Set element.

Parameters:

  • $index: string|int

See also:

  • \T

count(): \Amp\Promise<int>

Count number of elements.

See also:

  • \Amp\Promise

clear()

Clear all elements.

getIterator()

Get iterator.

getInstance(null|\danog\MadelineProto\Db\DbType|array $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings): \Amp\Promise<self>

Parameters:

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

See also:


Generated by danog/phpdoc