feat: move db gen out, emit json field

This commit is contained in:
Justin Lin
2025-08-26 20:58:39 +10:00
parent e770b31402
commit 7ced3985b1
15 changed files with 63 additions and 90 deletions

View File

@@ -1,10 +1,12 @@
package author
import "tutorial.sqlc.dev/app/internal/author/gen"
import (
"tutorial.sqlc.dev/app/internal/db"
)
func toAuthor(a gen.Author) Author {
func toAuthor(a db.Author) Author {
return Author{
a.ID, a.Name, a.Bio.String,
a.ID, a.Name, a.Bio,
}
}