comparison sat/memory/sqla.py @ 3665:72b0e4053ab0

core (memory/slqa): implement `getProfileById` rel 361
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 17:58:48 +0200
parents 9ae6ec74face
children bd13391ee29e
comparison
equal deleted inserted replaced
3664:9ae6ec74face 3665:72b0e4053ab0
112 # profile id to name 112 # profile id to name
113 self.profiles: Dict[int, str] = {} 113 self.profiles: Dict[int, str] = {}
114 # profile id to component entry point 114 # profile id to component entry point
115 self.components: Dict[int, str] = {} 115 self.components: Dict[int, str] = {}
116 116
117 def getProfileById(self, profile_id):
118 return self.profiles.get(profile_id)
119
117 async def migrateApply(self, *args: str, log_output: bool = False) -> None: 120 async def migrateApply(self, *args: str, log_output: bool = False) -> None:
118 """Do a migration command 121 """Do a migration command
119 122
120 Commands are applied by running Alembic in a subprocess. 123 Commands are applied by running Alembic in a subprocess.
121 Arguments are alembic executables commands 124 Arguments are alembic executables commands