materials_commons.cli.sqltable module¶
- class materials_commons.cli.sqltable.SqlTable(proj_local_path)[source]¶
Bases:
object
Generic code for interacting with one table in a project database
This is a base class. Derived classes must implement:
@staticmethod default_print_fmt(): list of tuple, used to format a table
@staticmethod tablecolumns(): dict, column name as key, list of table creation args for value
@staticmethod tablename(): str, table name in sqlite database
- Parameters
proj_local_path – str, local project path