query

package
v0.0.0-...-4eea697 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryExecuter

type QueryExecuter interface {
	//Validate(q string) error
	ExecQuery(ctx context.Context, query *model.QueryRequest) (*model.QueryResponse, error)
}

type Service

type Service struct {
	*service.DefaultDocumentService
	// contains filtered or unexported fields
}

func NewService

func NewService(docService *service.DefaultDocumentService, qExec QueryExecuter) *Service

func (*Service) ExecQuery

func (s *Service) ExecQuery(ctx context.Context, query *model.QueryRequest) (*model.QueryResponse, error)

func (*Service) ExecStoredQuery

func (s *Service) ExecStoredQuery(ctx context.Context, userID, systemID, qualifiedQueryName string, query *model.QueryRequest) (*model.QueryResponse, error)

func (*Service) GetByVersion

func (s *Service) GetByVersion(ctx context.Context, userID, systemID, name string, version *base.VersionTreeID) (*model.StoredQuery, error)

func (*Service) List

func (s *Service) List(ctx context.Context, userID, systemID, qualifiedQueryName string) ([]*model.StoredQuery, error)

func (*Service) Store

func (s *Service) Store(ctx context.Context, userID, systemID, reqID, qType, name, q string) (*model.StoredQuery, error)

func (*Service) StoreVersion

func (s *Service) StoreVersion(ctx context.Context, userID, systemID, reqID, qType, name string, version *base.VersionTreeID, q string) (*model.StoredQuery, error)

func (*Service) Validate

func (s *Service) Validate(data []byte) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL