minos.common.database.managements

Classes

ManagementDatabaseOperationFactory

Management Database Operation Factory base class.

class ManagementDatabaseOperationFactory[source]

Bases: DatabaseOperationFactory, ABC

Management Database Operation Factory base class.

abstract 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

abstract 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