package database import ( "context" "database/sql" "fmt" ) type PostgresRepository[T any] struct { db *sql.DB } func NewPostgresRepository[T any](db *sql.DB) *PostgresRepository[T] { return &PostgresRepository[T]{db: db} } func (r *PostgresRepository[T]) Create(ctx context.Context, entity *T) error { return fmt.Errorf("not implemented") } func (r *PostgresRepository[T]) FindByID(ctx context.Context, id string) (*T, error) { return nil, fmt.Errorf("not implemented") } func (r *PostgresRepository[T]) Update(ctx context.Context, entity *T) error { return fmt.Errorf("not implemented") } func (r *PostgresRepository[T]) Delete(ctx context.Context, id string) error { return fmt.Errorf("not implemented") } func (r *PostgresRepository[T]) FindAll(ctx context.Context) ([]*T, error) { return nil, fmt.Errorf("not implemented") }