Couchpyvsim

class pyvsim.DBFacade.Couchpyvsim(dburl, dbName, username, password)[source]

Attributes

Methods

listdb()[source]

Returns a list listing the current database entries in the category of the object. E.g.: using this method in a Glass material will list only the available glasses, etc.

Returns :

dblist : list

List of strings containing all entries in a database category

todb(name, dbdict, overwrite=False)[source]

Contributes to the database with the current object parameters. By default no overwriting is allowed. Each entry is defined by the “name” field.

Parameters :

overwrite : boolean

If False, will not allow an entry in the database to be modified.

Raises :

ValueError :

When an entry with the same name already exists in the database

This Page