-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
services/web/server/src/simcore_service_webserver/projects/projects_db_repository.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from aiopg.sa import SAConnection | ||
from simcore_postgres_database.models.projects import projects as projects_table | ||
from simcore_postgres_database.utils_aiopg_orm import BaseOrm | ||
|
||
from ..db_base_repository import BaseRepository | ||
|
||
|
||
class ProjectsRepository(BaseRepository): | ||
|
||
# TOOL | ||
class ProjectsOrm(BaseOrm[str]): | ||
def __init__(self, connection: SAConnection): | ||
super().__init__( | ||
projects_table, | ||
connection, | ||
readonly={"id", "creation_date", "last_change_date"}, | ||
writeonce={"uuid"}, | ||
) | ||
|
||
async def get_all(self): | ||
pass | ||
|
||
async def get_one(self): | ||
pass | ||
|
||
async def create(self): | ||
pass | ||
|
||
async def update(self): | ||
pass | ||
|
||
async def delete_all(self): | ||
pass | ||
|
||
async def delete_one(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters