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