Skip to content

Commit

Permalink
Refactor db module into subpackage, move tables module in
Browse files Browse the repository at this point in the history
mfisher87 committed Jul 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3d0cc72 commit e1d2c1a
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aross_stations_db/api/v1/output.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
from pydantic import BaseModel
from sqlalchemy import Row

from aross_stations_db.tables import Station
from aross_stations_db.db.tables import Station

StationsGeoJson = FeatureCollection[Feature[Point, dict[str, object]]]

Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

from sqlalchemy.orm import Session

from aross_stations_db.tables import Base, Event, Station
from aross_stations_db.db.tables import Base, Event, Station


def create_tables(session: Session) -> None:
File renamed without changes.
2 changes: 1 addition & 1 deletion src/aross_stations_db/query.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
from sqlalchemy.orm.query import RowReturningQuery
from sqlalchemy.types import DateTime, Float

from aross_stations_db.tables import Event, Station
from aross_stations_db.db.tables import Event, Station


def stations_query(

0 comments on commit e1d2c1a

Please sign in to comment.