aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/__init__.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-03 11:08:58 +0300
committerBonfaceKilz2021-06-03 21:58:31 +0300
commit5d361fe5102a11afbd56aaab30e4a75a332c3e99 (patch)
tree81d61039106d9c283984c5b7507b618c074f3af1 /gn3/db/__init__.py
parent8d29add407d5662995dbc9e94901636b15d32475 (diff)
downloadgenenetwork3-5d361fe5102a11afbd56aaab30e4a75a332c3e99.tar.gz
Add data structures for the table metadata_audit
Diffstat (limited to 'gn3/db/__init__.py')
-rw-r--r--gn3/db/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gn3/db/__init__.py b/gn3/db/__init__.py
index d89dbf4..175a640 100644
--- a/gn3/db/__init__.py
+++ b/gn3/db/__init__.py
@@ -5,21 +5,26 @@ from dataclasses import dataclass, asdict, astuple
from typing_extensions import Protocol
from MySQLdb import escape_string
+from gn3.db.metadata_audit import MetadataAudit
from gn3.db.phenotypes import Phenotype
from gn3.db.phenotypes import PublishXRef
from gn3.db.phenotypes import Publication
+from gn3.db.metadata_audit import metadata_audit_mapping
from gn3.db.phenotypes import phenotype_mapping
from gn3.db.phenotypes import publish_x_ref_mapping
from gn3.db.phenotypes import publication_mapping
+
TABLEMAP = {
+ "metadata_audit": metadata_audit_mapping,
"Phenotype": phenotype_mapping,
"PublishXRef": publish_x_ref_mapping,
"Publication": publication_mapping,
}
DATACLASSMAP = {
+ "MetadataAudit": MetadataAudit,
"Phenotype": Phenotype,
"PublishXRef": PublishXRef,
"Publication": Publication,