Skip to content

Stack: TypedSQL for article-search.ts CTE #272

Description

@SweetSophia

Source

REVIEW.md §B.5 librarian, Week 2

Problem

src/lib/memory/article-search.ts builds a CTE dynamically. No type safety on result rows.

Suggested fix

Convert to a .sql file in prisma/sql/ with -- @param annotations. Get full type safety on result rows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions