mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Updated for typing
This commit is contained in:
parent
215c755553
commit
e2caabb39b
1 changed files with 4 additions and 6 deletions
|
@ -12,9 +12,7 @@ from slpkg.configs import Configs
|
||||||
|
|
||||||
|
|
||||||
DATABASE_URI: str = os.path.join(f'sqlite:///{Configs.db_path}', Configs.database_name)
|
DATABASE_URI: str = os.path.join(f'sqlite:///{Configs.db_path}', Configs.database_name)
|
||||||
|
|
||||||
engine = create_engine(DATABASE_URI)
|
engine = create_engine(DATABASE_URI)
|
||||||
|
|
||||||
session = sessionmaker(engine)()
|
session = sessionmaker(engine)()
|
||||||
Base = declarative_base()
|
Base = declarative_base()
|
||||||
|
|
||||||
|
@ -42,7 +40,7 @@ class SBoTable(Base):
|
||||||
class PonceTable(Base):
|
class PonceTable(Base):
|
||||||
""" The main table for the ponce repository. """
|
""" The main table for the ponce repository. """
|
||||||
|
|
||||||
__tablename__ = 'poncetable'
|
__tablename__: str = 'poncetable'
|
||||||
|
|
||||||
id: int = Column(Integer, primary_key=True)
|
id: int = Column(Integer, primary_key=True)
|
||||||
name: str = Column(Text)
|
name: str = Column(Text)
|
||||||
|
@ -61,7 +59,7 @@ class PonceTable(Base):
|
||||||
class BinariesTable(Base):
|
class BinariesTable(Base):
|
||||||
""" The main table for the binary repositories. """
|
""" The main table for the binary repositories. """
|
||||||
|
|
||||||
__tablename__ = 'binariestable'
|
__tablename__: str = 'binariestable'
|
||||||
|
|
||||||
id: int = Column(Integer, primary_key=True)
|
id: int = Column(Integer, primary_key=True)
|
||||||
repo: str = Column(Text)
|
repo: str = Column(Text)
|
||||||
|
@ -83,7 +81,7 @@ class BinariesTable(Base):
|
||||||
class LogsDependencies(Base):
|
class LogsDependencies(Base):
|
||||||
""" The table that stores the dependencies after installing a package. """
|
""" The table that stores the dependencies after installing a package. """
|
||||||
|
|
||||||
__tablename__ = 'logsdependencies'
|
__tablename__: str = 'logsdependencies'
|
||||||
|
|
||||||
id: int = Column(Integer, primary_key=True)
|
id: int = Column(Integer, primary_key=True)
|
||||||
name: str = Column(Text)
|
name: str = Column(Text)
|
||||||
|
@ -94,7 +92,7 @@ class LogsDependencies(Base):
|
||||||
class LastRepoUpdated(Base):
|
class LastRepoUpdated(Base):
|
||||||
""" The table that saves the last updated date. """
|
""" The table that saves the last updated date. """
|
||||||
|
|
||||||
__tablename__ = 'lastupdated'
|
__tablename__: str = 'lastupdated'
|
||||||
|
|
||||||
id: int = Column(Integer, primary_key=True)
|
id: int = Column(Integer, primary_key=True)
|
||||||
repo: str = Column(Text)
|
repo: str = Column(Text)
|
||||||
|
|
Loading…
Add table
Reference in a new issue