Skip to content
Snippets Groups Projects
Commit 2d021117 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

add generic convertQuery for extension

parent f43347e6
Branches
No related tags found
No related merge requests found
Pipeline #126334 failed
Showing
with 7736 additions and 7727 deletions
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
...@@ -5,13 +5,16 @@ This program has been developed by students from the bachelor Computer Science a ...@@ -5,13 +5,16 @@ This program has been developed by students from the bachelor Computer Science a
package aql package aql
import "git.science.uu.nl/graphpolaris/query-conversion" import (
"git.science.uu.nl/graphpolaris/query-conversion"
"git.science.uu.nl/graphpolaris/query-conversion/entity"
)
// Service implements the QueryConverter interface (in the query service) // Service implements the QueryConverter interface (in the query service)
type Service struct { type Service struct {
} }
// NewService creates a new AQL conversion service // NewService creates a new AQL conversion service
func NewService() query.Converter { func NewService() query.Converter[entity.IncomingQueryJSON] {
return &Service{} return &Service{}
} }
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
...@@ -5,7 +5,10 @@ This program has been developed by students from the bachelor Computer Science a ...@@ -5,7 +5,10 @@ This program has been developed by students from the bachelor Computer Science a
package cypher package cypher
import "git.science.uu.nl/graphpolaris/query-conversion" import (
"git.science.uu.nl/graphpolaris/query-conversion"
"git.science.uu.nl/graphpolaris/query-conversion/entity"
)
/* /*
Service implements the QueryConverter interface (in the query service) Service implements the QueryConverter interface (in the query service)
...@@ -17,6 +20,6 @@ type Service struct { ...@@ -17,6 +20,6 @@ type Service struct {
NewService creates a new Cypher conversion service NewService creates a new Cypher conversion service
Return: *Service, the new service Return: *Service, the new service
*/ */
func NewService() query.Converter { func NewService() query.Converter[entity.IncomingQueryJSON] {
return &Service{} return &Service{}
} }
...@@ -5,7 +5,10 @@ This program has been developed by students from the bachelor Computer Science a ...@@ -5,7 +5,10 @@ This program has been developed by students from the bachelor Computer Science a
package cypherv2 package cypherv2
import "git.science.uu.nl/graphpolaris/query-conversion" import (
"git.science.uu.nl/graphpolaris/query-conversion"
"git.science.uu.nl/graphpolaris/query-conversion/entityv2"
)
/* /*
Service implements the QueryConverter interface (in the query service) Service implements the QueryConverter interface (in the query service)
...@@ -17,6 +20,6 @@ type Service struct { ...@@ -17,6 +20,6 @@ type Service struct {
NewService creates a new Cypher conversion service NewService creates a new Cypher conversion service
Return: *Service, the new service Return: *Service, the new service
*/ */
func NewService() query.Converterv2 { func NewService() query.Converter[entityv2.IncomingQueryJSON] {
return &Service{} return &Service{}
} }
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment