hashtablebot.persistence package

Submodules

hashtablebot.persistence.bot_user_dao module

class hashtablebot.persistence.bot_user_dao.BotUserDao

Bases: Dao[BotUser]

static delete(*objs: BotUser)
static get_all() list[hashtablebot.entity.bot_user.BotUser]

Return a list of all objects of type BotUser

static get_all_joined_channels() list[hashtablebot.entity.bot_user.BotUser]
static get_by_id(obj_id: int) BotUser

Return object with obj_id or raise an exception.

Raises:

NoResultFound

static get_by_ids(obj_ids: Iterable[int]) list[hashtablebot.entity.bot_user.BotUser]

Return list with objects in obj_ids.

static get_until_limit_order_by_balance_desc(limit: int) list[hashtablebot.entity.bot_user.BotUser]
static save(*objs: BotUser)
static update(*objs: BotUser)

hashtablebot.persistence.dao module

class hashtablebot.persistence.dao.Dao

Bases: Generic[T], ABC

abstract static delete(*objs: T)
abstract static get_all() list[T]
abstract static get_by_id(obj_id: int) T
abstract static get_by_ids(obj_ids: Iterable[int]) list[T]
abstract static save(*objs: T)
abstract static update(*objs: T)

hashtablebot.persistence.session module

Module contents