2025-01-03 13:41:07 +00:00
|
|
|
package contextfull
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2025-01-06 12:26:28 +00:00
|
|
|
"queryorchestration/internal/database"
|
2025-01-03 13:41:07 +00:00
|
|
|
queryprocessor "queryorchestration/internal/queryProcessor"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Creator struct {
|
2025-01-06 12:26:28 +00:00
|
|
|
db *database.Connection
|
2025-01-03 13:41:07 +00:00
|
|
|
}
|
|
|
|
|
|
2025-01-06 12:26:28 +00:00
|
|
|
func NewCreator(db *database.Connection) Creator {
|
2025-01-03 13:41:07 +00:00
|
|
|
return Creator{db}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s Creator) Validate(ctx context.Context, entity *queryprocessor.Create) error {
|
|
|
|
|
// TODO
|
2025-01-03 16:00:36 +00:00
|
|
|
// Type, RequiredQueryIDs, Config
|
2025-01-03 13:41:07 +00:00
|
|
|
return nil
|
|
|
|
|
}
|