mirror of
https://github.com/283375/arcaea-offline.git
synced 2025-04-19 06:00:18 +00:00
refactor: database base module
This commit is contained in:
parent
55e76ef650
commit
2204338a5e
1
src/arcaea_offline/database/__init__.py
Normal file
1
src/arcaea_offline/database/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .db import Database
|
@ -5,10 +5,14 @@ from typing import Iterable, List, Optional, Type, Union
|
||||
from sqlalchemy import Engine, func, inspect, select
|
||||
from sqlalchemy.orm import DeclarativeBase, InstrumentedAttribute, sessionmaker
|
||||
|
||||
from .external.arcsong.arcsong_json import ArcSongJsonBuilder
|
||||
from .external.exports import ArcaeaOfflineDEFV2_Score, ScoreExport, exporters
|
||||
from .models.config import ConfigBase, Property
|
||||
from .models.scores import (
|
||||
from arcaea_offline.external.arcsong.arcsong_json import ArcSongJsonBuilder
|
||||
from arcaea_offline.external.exports import (
|
||||
ArcaeaOfflineDEFV2_Score,
|
||||
ScoreExport,
|
||||
exporters,
|
||||
)
|
||||
from arcaea_offline.models.config import ConfigBase, Property
|
||||
from arcaea_offline.models.scores import (
|
||||
CalculatedPotential,
|
||||
Score,
|
||||
ScoreBest,
|
||||
@ -16,7 +20,7 @@ from .models.scores import (
|
||||
ScoresBase,
|
||||
ScoresViewBase,
|
||||
)
|
||||
from .models.songs import (
|
||||
from arcaea_offline.models.songs import (
|
||||
Chart,
|
||||
ChartInfo,
|
||||
Difficulty,
|
||||
@ -28,7 +32,7 @@ from .models.songs import (
|
||||
SongsBase,
|
||||
SongsViewBase,
|
||||
)
|
||||
from .singleton import Singleton
|
||||
from arcaea_offline.singleton import Singleton
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user