feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 34s
Test and Lint / quality (push) Successful in 34s
This commit is contained in:
1 parent
0ac80d60d4
commit
9430a194c3
18 files changed
+422
-7
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import sqlite3
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class ServiceRegistry:
|
||||
def __init__(self, db_path: Path) -> None:
|
||||
self._db_path = db_path
|
||||
|
||||
def init_schema(self) -> None:
|
||||
_ = sqlite3
|
||||
raise NotImplementedError("Utwórz tabelę services (CREATE TABLE IF NOT EXISTS ...)")
|
||||
|
||||
def register(self, name: str, owner: str) -> int:
|
||||
raise NotImplementedError("Wstaw (name, owner) parametryzowanym INSERT i zwróć id")
|
||||
|
||||
def find_by_owner(self, owner: str) -> list[str]:
|
||||
raise NotImplementedError("Zwróć posortowane nazwy serwisów dla owner (parametryzowane ?)")
|
||||
Reference in new issue
Block a user