Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for sqlc.embed #42

Open
masar3141 opened this issue Oct 4, 2024 · 0 comments
Open

Support for sqlc.embed #42

masar3141 opened this issue Oct 4, 2024 · 0 comments

Comments

@masar3141
Copy link

As per the doc;

-- name: ScoreAndTests :many
SELECT sqlc.embed(students), sqlc.embed(test_scores)
FROM students
JOIN test_scores ON test_scores.student_id = students.id
WHERE students.id = $1;

produce this interface:

export interface ScoreAndTestsRow {
    students: string | null;
    testScores: string | null;
}

where we would expect

export interface ScoreAndTestsRow {
    students: Student;
    testScores: TestScore;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant