15 lines
351 B
Go
15 lines
351 B
Go
package result
|
|
|
|
import (
|
|
"queryorchestration/internal/database"
|
|
"queryorchestration/internal/database/repository"
|
|
)
|
|
|
|
func Parse(dbQuery *repository.ListResultsByDocumentIDRow) *Result {
|
|
return &Result{
|
|
ID: database.MustToUUID(dbQuery.ID),
|
|
QueryID: database.MustToUUID(dbQuery.Queryid),
|
|
QueryVersion: dbQuery.Queryversion,
|
|
}
|
|
}
|