dgraphupsert

package module
v0.0.0-...-89bbdfb Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Overview

* Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

Index

Constants

View Source
const (
	Connection = "dgraphConnection"
)

Variables

This section is empty.

Functions

func New

New for Activity

Types

type Activity

type Activity struct {
	// contains filtered or unexported fields
}

Activity is the structure for Activity Metadata

func (*Activity) Eval

func (a *Activity) Eval(context activity.Context) (done bool, err error)

Eval handles the data processing in the activity

func (*Activity) Metadata

func (*Activity) Metadata() *activity.Metadata

Metadata returns PostgreSQL's Query activity's meteadata

type Input

type Input struct {
	Graph interface{} `md:"Graph,required"`
}

Input Structure

func (*Input) FromMap

func (o *Input) FromMap(values map[string]interface{}) error

FromMap Input interface

func (*Input) ToMap

func (o *Input) ToMap() map[string]interface{}

ToMap Input interface

type Output

type Output struct {
	MessageId interface{} `md:"MessageId,required"`
}

Output struct

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

FromMap conversion

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

ToMap conversion

type Settings

type Settings struct {
	DgraphConnection   connection.Manager `md:"dgraphConnection,required"`
	CacheSize          int                `md:"cacheSize,required"`
	ReadableExternalId bool               `md:"readableExternalId,required"`
	ExplicitType       bool               `md:"explicitType,required"`
	TypeTag            string             `md:"typeTag,required"`
	AttrWithPrefix     bool               `md:"attrWithPrefix,required"`
}

func (*Settings) ToMap

func (s *Settings) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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