utils.databases.mongoengine_database

Mongo engine database tools

class utils.databases.mongoengine_database.Database(host, name)

Bases: object

Represent a Database.

clean_database()

Clear all collections of the database.

Returns:

connect()

Open a connection to the database.

Returns:the database connection created
disconnect()

Close the connection.

utils.databases.mongoengine_database.init_text_index(document_object)

Create index for full text search.