diracx-db 0.0.1a29__py3-none-any.whl → 0.0.1a31__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diracx/db/sql/sandbox_metadata/db.py +8 -0
- {diracx_db-0.0.1a29.dist-info → diracx_db-0.0.1a31.dist-info}/METADATA +2 -2
- {diracx_db-0.0.1a29.dist-info → diracx_db-0.0.1a31.dist-info}/RECORD +6 -6
- {diracx_db-0.0.1a29.dist-info → diracx_db-0.0.1a31.dist-info}/WHEEL +1 -1
- {diracx_db-0.0.1a29.dist-info → diracx_db-0.0.1a31.dist-info}/entry_points.txt +0 -0
- {diracx_db-0.0.1a29.dist-info → diracx_db-0.0.1a31.dist-info}/top_level.txt +0 -0
@@ -30,6 +30,14 @@ class SandboxMetadataDB(BaseSQLDB):
|
|
30
30
|
)
|
31
31
|
return (await self.conn.execute(stmt)).scalar_one_or_none()
|
32
32
|
|
33
|
+
async def get_sandbox_owner_id(self, pfn: str) -> int | None:
|
34
|
+
"""Get the id of the owner of a sandbox."""
|
35
|
+
stmt = select(SBOwners.OwnerID).where(
|
36
|
+
SBOwners.OwnerID == SandBoxes.OwnerId,
|
37
|
+
SandBoxes.SEPFN == pfn,
|
38
|
+
)
|
39
|
+
return (await self.conn.execute(stmt)).scalar_one_or_none()
|
40
|
+
|
33
41
|
async def insert_owner(self, user: UserInfo) -> int:
|
34
42
|
stmt = insert(SBOwners).values(
|
35
43
|
Owner=user.preferred_username,
|
@@ -22,7 +22,7 @@ diracx/db/sql/pilot_agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
22
22
|
diracx/db/sql/pilot_agents/db.py,sha256=7-cuCbh_KhM0jlybsHMWV-W66bHsPHIVBpbuqwjncj0,1232
|
23
23
|
diracx/db/sql/pilot_agents/schema.py,sha256=KeWnFSpYOTrT3-_rOCFjbjNnPNXKnUZiJVsu4vv5U2U,2149
|
24
24
|
diracx/db/sql/sandbox_metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
|
-
diracx/db/sql/sandbox_metadata/db.py,sha256=
|
25
|
+
diracx/db/sql/sandbox_metadata/db.py,sha256=hezZ8KCNFybRF4NgdU-fevg1E84vIk9n6FGFopHvbbc,6997
|
26
26
|
diracx/db/sql/sandbox_metadata/schema.py,sha256=mI-YpH6NneOQ6QiqwIwyJ4afwfoamybSlQpvaISFfPY,1431
|
27
27
|
diracx/db/sql/task_queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
diracx/db/sql/task_queue/db.py,sha256=Ymd9cBasiSAPmgu5846B8KmguRiJ_GoJhuOev9YwW2o,6248
|
@@ -31,8 +31,8 @@ diracx/db/sql/utils/__init__.py,sha256=QkvpqBuIAgkAOywAssYzdxSzUQVZlSUumK7mPxotX
|
|
31
31
|
diracx/db/sql/utils/base.py,sha256=7UxHBNLOSjdrIdslMKW4C_c5H9-6Y1BEimxscri2poE,12367
|
32
32
|
diracx/db/sql/utils/functions.py,sha256=iLqlUIQ6SrDUtDEnZ5szaFbdcINJW15KNbCdGXss6kc,3055
|
33
33
|
diracx/db/sql/utils/types.py,sha256=yU-tXsu6hFGPsr9ba1n3ZjGPnHQI_06lbpkTeDCWJtg,1287
|
34
|
-
diracx_db-0.0.
|
35
|
-
diracx_db-0.0.
|
36
|
-
diracx_db-0.0.
|
37
|
-
diracx_db-0.0.
|
38
|
-
diracx_db-0.0.
|
34
|
+
diracx_db-0.0.1a31.dist-info/METADATA,sha256=9UefYB9ZXn7rGF2606dDoqFjrFYtL3CXBOBXvsrdsaw,644
|
35
|
+
diracx_db-0.0.1a31.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
36
|
+
diracx_db-0.0.1a31.dist-info/entry_points.txt,sha256=UPqhLvb9gui0kOyWeI_edtefcrHToZmQt1p76vIwujo,317
|
37
|
+
diracx_db-0.0.1a31.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
38
|
+
diracx_db-0.0.1a31.dist-info/RECORD,,
|
File without changes
|
File without changes
|