22 lines
453 B
Go
22 lines
453 B
Go
package contextfull
|
|
|
|
import (
|
|
"context"
|
|
"queryorchestration/internal/database/repository"
|
|
queryprocessor "queryorchestration/internal/queryProcessor"
|
|
)
|
|
|
|
type Updator struct {
|
|
db *repository.Queries
|
|
}
|
|
|
|
func NewUpdator(db *repository.Queries) Updator {
|
|
return Updator{db}
|
|
}
|
|
|
|
func (s Updator) Validate(ctx context.Context, current *queryprocessor.Query, entity *queryprocessor.Update) error {
|
|
// TODO
|
|
// Type, RequiredQueryIDs, Config
|
|
return nil
|
|
}
|