

def _db_create(name, type, memory):
    '\n    :return name, db_type, and memory_location to be used as arguments in\n    OrientDB.orientdb_client.db_create(name, type, memory)\n    '
    type_dict = {
        'graph': pyorient.DB_TYPE_GRAPH,
        'document': pyorient.DB_TYPE_DOCUMENT,
    }
    if (type in type_dict):
        return (name, type_dict[type], convert_memory_location(memory))
    else:
        raise Exception('invalid argument provided to create_db()')

dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py _db_create/original