'Factory method returning a DatabaseConnection for a temporary in-memory
database.'

@classmethod
def get_test_database(cls, file_path=':memory:', **constructor_kwargs):

    database = cls(**constructor_kwargs)
    database.reconnect_enabled = False
    database.connect(db_type='sqlite', db_name=file_path)
    return database
