Package Pyblio :: Module Adapter
[show private | hide private]
[frames | no frames]

Module Pyblio.Adapter

Adapt a database schema to another one.

Given a database in, say, PubMed format, it is possible to plug an adapter on top of it so that it looks as if the database is in, say, BibTeX format instead.
Classes
Adapter This class is a db built on top of another db, which behaves as if it were of a different schema.
OneToOneAdapter This adapter assumes a one-to-one mapping between the source and the target databases.

Function Summary
  adapt_schema(db, target_schema)
Returns a database using the specified 'target_schema', and that maps the content of 'db', thanks to one or more Adapters.

Function Details

adapt_schema(db, target_schema)

Returns a database using the specified 'target_schema', and that maps the content of 'db', thanks to one or more Adapters. If no suitable adapter can be found, will raise an AdaptError()

Generated by Epydoc 2.1 on Sun Sep 24 23:52:43 2006 http://epydoc.sf.net