14dff24f85
How: `SourceMappingRepository` (`source_mapping_repository` in cacu, cama and tea) lists systems and mappings, adds a missing system, seeds only the forms with no row yet, adds one mapping after running the caller's check against the stored rows of the same form in the same session, and closes a row's validity once. Implications: a deploy never changes a stored mapping; the rule that the mapping is a function stays with the caller, which runs it on every write.
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
"""Plata: los catálogos y cómo los escribe cada fuente, la carga del staging directo, `v_persona`, el periodo de observación, la verificación y la línea de tiempo."""
|
|
|
|
from persistance.edges.silver.loads import (
|
|
LoadRepository,
|
|
open_load,
|
|
close_load,
|
|
save_load_in,
|
|
)
|
|
from persistance.edges.silver.catalogs import CatalogRepository
|
|
from persistance.edges.silver.source_mappings import SourceMappingRepository
|
|
from persistance.edges.silver.observation import ObservationRepository
|
|
from persistance.edges.silver.procedures import save_silver_in
|
|
from persistance.edges.silver.timeline import (
|
|
TIMELINE_COLUMNS,
|
|
TimelineContractError,
|
|
TimelineQuery,
|
|
TimelineQueryMissing,
|
|
TimelineRepository,
|
|
)
|
|
from persistance.edges.silver.links import LinksRepository
|
|
from persistance.edges.silver.views import ViewsRepository
|
|
|
|
__all__ = [
|
|
"LoadRepository",
|
|
"CatalogRepository",
|
|
"SourceMappingRepository",
|
|
"ObservationRepository",
|
|
"TIMELINE_COLUMNS",
|
|
"TimelineContractError",
|
|
"TimelineQuery",
|
|
"TimelineQueryMissing",
|
|
"TimelineRepository",
|
|
"LinksRepository",
|
|
"ViewsRepository",
|
|
"open_load",
|
|
"close_load",
|
|
"save_load_in",
|
|
"save_silver_in",
|
|
]
|