Model interface over frames and a model catalog
This commit is contained in:
@@ -31,12 +31,8 @@ from persistance.settings import settings
|
||||
from sqlalchemy import column, select, text
|
||||
from sqlalchemy.engine import make_url
|
||||
|
||||
SCHEMA = pa.schema([
|
||||
("pac_id", pa.int64()), ("fecha_indice", pa.date32()), ("fecha", pa.date32()),
|
||||
("conocida_en", pa.timestamp("us", tz="UTC")), ("clase", pa.string()), ("tipo", pa.string()),
|
||||
("codigo", pa.string()), ("valor_codigo", pa.string()), ("valor_numerico", pa.float64()),
|
||||
("fuente_tabla", pa.string()), ("fuente_id", pa.string()),
|
||||
])
|
||||
from models.io.cohorts import SCHEMA
|
||||
|
||||
ROW_ORDER = ["pac_id", "fecha", "clase", "tipo", "fuente_id"]
|
||||
DBT_TARGETS = {"sqlite": "sqlite", "mssql": "sqlserver", "postgresql": "postgres", "mysql": "mysql", "mariadb": "mysql"}
|
||||
DEFAULT_TRANSFORMATION = Path(__file__).resolve().parents[2] / "Transformation"
|
||||
|
||||
Reference in New Issue
Block a user