Files
python-learning/exercises/03-ecosystems/05-sql-sqlite/sql_sqlite.py
T
2026-12-02 16:58:44 +01:00

18 lines
602 B
Python

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 ?)")