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

Module Adapter

source code

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 [hide private]
  Adapter
This class is a db built on top of another db, which behaves as if it were of a different schema.
  ResultSetAdapter
  ResultSetStoreAdapter
  OneToOneAdapter
This adapter assumes a one-to-one mapping between the source and the target databases.
Functions [hide private]
 
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.
source code
Function Details [hide private]

adapt_schema(db, target_schema)

source code 
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()