gws.base.database.manager

Core database utilities.

Source code: gws.base.database.manager

Module Contents

class gws.base.database.manager.Config(*args, **kwargs)

Bases: gws.Config

Database configuration

providers: list[gws.ext.config.databaseProvider]

database providers

class gws.base.database.manager.Object

Bases: gws.DatabaseManager

Database manager.

configure()

Configuration hook.

create_provider(cfg, **kwargs)
enter_middleware(req: gws.WebRequester)

Begin middleware processing.

Parameters:

req – Requester object.

Returns:

A Responder object or None.

exit_middleware(req: gws.WebRequester, res: gws.WebResponder)

Finish middleware processing.

Parameters:
  • req – Requester object.

  • res – Current responder object.

find_provider(uid=None, ext_type=None)