Relational¶
This (sub)package is provides the content management framework for container objects and a collection of static data for reference and unit conversions.
-
exa.relational.__init__.
load_isotope_data
()[source]¶ Load isotope data into the database (replacing existing).
Database Engine Configuration¶
This module provides the base classes and metaclasses for relational tables created by exa. It also provides the database engine configuration and session class factory.
-
class
exa.relational.base.
BaseMeta
(classname, bases, dict_)[source]¶ This is the base metaclass for all relational tables. It provides convient lookup methods, bulk insert methods, and conversions to other formats.
-
bulk_insert
(mappings)[source]¶ Perform a bulk insert into a specific table.
mappings = [{'column1': 'foo', 'column2': 42, 'column3': 'bar'}, {'column1': 'fop', 'column2': 43, 'column3': 'baz'}] Table.bulk_insert(mappings)
-