def _set_all_tables(self, schema, **kwargs):
with self.transaction(**kwargs) as connection:<EOL><INDENT>kwargs['<STR_LIT>'] = connection<EOL>for field_name, field_val in schema.fields.items():<EOL><INDENT>s = field_val.schema<EOL>if s:<EOL><INDENT>self._set_all_tables(s, **kwargs)<EOL><DEDENT><DEDENT>self.set_table(schema, **kwargs)<EOL><DEDENT>return True<EOL>
You can run into a problem when you are trying to set a table and it has a 
foreign key to a table that doesn't exist, so this method will go through 
all fk refs and make sure the tables exist