Documentation ¶
Index ¶
- func ConfigJson(config Configuration) json.RawMessage
- func InstallPrismaDependencies(log abstractlogger.Logger) error
- func IntrospectPrismaDatabase(introspectionSchema string, log abstractlogger.Logger) (prismaSchema, graphqlSDL, dmmf string, err error)
- type BinaryEngine
- type Configuration
- type Engine
- func (e *Engine) IntrospectDMMF(ctx context.Context) (dmmf string, err error)
- func (e *Engine) IntrospectGraphQLSchema(ctx context.Context) (schema string, err error)
- func (e *Engine) IntrospectPrismaDatabaseSchema(introspectionSchema string) (string, error)
- func (e *Engine) Request(ctx context.Context, request []byte, rw io.Writer) (err error)
- func (e *Engine) StartQueryEngine(schema string) error
- func (e *Engine) StopQueryEngine()
- type Factory
- type GQLRequest
- type HybridEngine
- type IntrospectionRequest
- type IntrospectionResponse
- type LazyEngine
- type LazyEngineFactory
- type Planner
- func (p *Planner) ConfigureFetch() plan.FetchConfiguration
- func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
- func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
- func (p *Planner) DownstreamResponseFieldAlias(downstreamFieldRef int) (alias string, exists bool)
- func (p *Planner) EnterArgument(ref int)
- func (p *Planner) EnterDocument(operation, definition *ast.Document)
- func (p *Planner) EnterField(ref int)
- func (p *Planner) EnterInlineFragment(ref int)
- func (p *Planner) EnterOperationDefinition(ref int)
- func (p *Planner) EnterSelectionSet(ref int)
- func (p *Planner) LeaveDocument(operation, definition *ast.Document)
- func (p *Planner) LeaveField(ref int)
- func (p *Planner) LeaveInlineFragment(ref int)
- func (p *Planner) LeaveOperationDefinition(_ int)
- func (p *Planner) LeaveSelectionSet(ref int)
- func (p *Planner) Register(visitor *plan.Visitor, configuration plan.DataSourceConfiguration, ...) error
- type SingleTypeField
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigJson ¶
func ConfigJson(config Configuration) json.RawMessage
func InstallPrismaDependencies ¶
func InstallPrismaDependencies(log abstractlogger.Logger) error
func IntrospectPrismaDatabase ¶
func IntrospectPrismaDatabase(introspectionSchema string, log abstractlogger.Logger) (prismaSchema, graphqlSDL, dmmf string, err error)
Types ¶
type BinaryEngine ¶
type BinaryEngine struct {
// contains filtered or unexported fields
}
func (*BinaryEngine) Close ¶
func (e *BinaryEngine) Close()
type Configuration ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) IntrospectDMMF ¶
func (*Engine) IntrospectGraphQLSchema ¶
func (*Engine) IntrospectPrismaDatabaseSchema ¶
func (*Engine) StartQueryEngine ¶
func (*Engine) StopQueryEngine ¶
func (e *Engine) StopQueryEngine()
type Factory ¶
type Factory struct { Client *http.Client Debug bool Log abstractlogger.Logger // contains filtered or unexported fields }
type GQLRequest ¶
type GQLRequest struct { Query string `json:"query"` Variables json.RawMessage `json:"variables"` }
type HybridEngine ¶
type HybridEngine interface { Close() Execute(ctx context.Context, request []byte, w io.Writer) error }
func NewHybridEngine ¶
func NewHybridEngine(prismaSchema string, log abstractlogger.Logger) (HybridEngine, error)
type IntrospectionRequest ¶
type IntrospectionResponse ¶
type IntrospectionResponse struct { ID int `json:"id"` JSONRPC string `json:"jsonrpc"` Result struct { DataModel string `json:"datamodel"` } `json:"result"` Error *struct { Code int64 `json:"code"` Message string `json:"message"` Data struct { Message string `json:"message"` } `json:"data"` } `json:"error"` }
type LazyEngine ¶
type LazyEngine struct {
// contains filtered or unexported fields
}
func (*LazyEngine) Start ¶
func (e *LazyEngine) Start(closer <-chan struct{})
type LazyEngineFactory ¶
type LazyEngineFactory struct {
// contains filtered or unexported fields
}
func (*LazyEngineFactory) Engine ¶
func (f *LazyEngineFactory) Engine(prismaSchema string, closeTimeoutSeconds int64) *LazyEngine
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
func (*Planner) ConfigureFetch ¶
func (p *Planner) ConfigureFetch() plan.FetchConfiguration
func (*Planner) ConfigureSubscription ¶
func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
func (*Planner) DataSourcePlanningBehavior ¶
func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
func (*Planner) DownstreamResponseFieldAlias ¶
func (*Planner) EnterArgument ¶
func (*Planner) EnterDocument ¶
func (*Planner) EnterField ¶
func (*Planner) EnterInlineFragment ¶
func (*Planner) EnterOperationDefinition ¶
func (*Planner) EnterSelectionSet ¶
func (*Planner) LeaveDocument ¶
func (*Planner) LeaveField ¶
func (*Planner) LeaveInlineFragment ¶
func (*Planner) LeaveOperationDefinition ¶
func (*Planner) LeaveSelectionSet ¶
type SingleTypeField ¶
Click to show internal directories.
Click to hide internal directories.