Coverage for geoparser/db/models/base.py: 100%
4 statements
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-20 18:08 +0000
« prev ^ index » next coverage.py v7.17.3, created at 2026-11-20 18:08 +0000
1"""Package-owned SQLModel registry for the core database.
3``SQLModel.metadata`` is process-global. Creating tables from it would also
4create tables registered by a host application that uses SQLModel, and a host
5``create_all`` would create Geoparser tables in the host database.
6"""
8from sqlalchemy.orm import registry
9from sqlmodel import SQLModel
11geoparser_registry = registry()
14class GeoparserModel(SQLModel, registry=geoparser_registry):
15 """Abstract base for core persistence models."""