faucet.nsodbc module¶
This module exposes an api to deal with db operations on no-sql databases. Currently couchdb support is included.
-
class
faucet.nsodbc.ConnectionCouch(conn, credentials)[source]¶ Bases:
objectConnection class.
This class is specific to couchdb operations. For others a new class will be needed (following same standards)
-
class
faucet.nsodbc.DatabaseCouch(database)[source]¶ Bases:
objectDatabase specific class exposing the API.
-
create_view(design, views)[source]¶ This is a couchdb functionality. Helps in creating views needed for querying the database. Input: Design name, view definition
-
-
class
faucet.nsodbc.NsOdbc[source]¶ Bases:
objectAn abstraction layer to make api calls to a non relational database.
Currently the API provided is: connect create get_doc insert_update_doc delete_doc
-
faucet.nsodbc.init_flow_db(flow_database)[source]¶ Initialize/Refresh flow database
Parameters: flow_database –