feat: move db gen out, emit json field
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user