minos.plugins.aiopg.factories.common.managemens

Classes

AiopgManagementDatabaseOperationFactory

Aiopg Manage Database Operation Factory class.

class AiopgManagementDatabaseOperationFactory[source]

Bases: ManagementDatabaseOperationFactory

Aiopg Manage Database Operation Factory class.

build_create(database)[source]

Build the database operation to create a database.

Parameters

database (str) – The new database’s name.

Returns

A DatabaseOperation.

Return type

DatabaseOperation

build_delete(database)[source]

Build the database operation to create a database.

Parameters

database (str) – The name of the database to be deleted.

Returns

A DatabaseOperation.

Return type

DatabaseOperation