def get_binds(self, app=None):
app = self.get_app(app)<EOL>binds = [None] + list(app.config.get('<STR_LIT>') or ())<EOL>retval = {}<EOL>for bind in binds:<EOL><INDENT>engine = self.get_engine(app, bind)<EOL>tables = self.get_tables_for_bind(bind)<EOL>retval.update(dict((table, engine) for table in tables))<EOL><DEDENT>return retval<EOL>
Returns a dictionary with a table->engine mapping.

        This is suitable for use of sessionmaker(binds=db.get_binds(app)).