dbservice

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: 1 Imported by: 1

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseDBServiceFactory

type BaseDBServiceFactory struct {
	DBServices map[string]DBService
}

func (*BaseDBServiceFactory) GetImportService

func (this *BaseDBServiceFactory) GetImportService(serviceId string) ImportService

func (*BaseDBServiceFactory) GetUpsertService

func (this *BaseDBServiceFactory) GetUpsertService(serviceId string) UpsertService

func (*BaseDBServiceFactory) Initialize

func (this *BaseDBServiceFactory) Initialize()

type DBService

type DBService interface {
}

type DBServiceFactory

type DBServiceFactory interface {
	Initialize()
	GetUpsertService(serviceId string) UpsertService
	CreateUpsertService(serviceId string, properties map[string]interface{}) (UpsertService, error)
	GetImportService(serviceId string) ImportService
	CreateImportService(serviceId string, properties map[string]interface{}) (ImportService, error)
}

type DBType

type DBType int
const (
	TGDB   DBType = 0
	Dgraph DBType = 1
	Neo4j  DBType = 2
)

type ImportService

type ImportService interface {
	DBService
	WriteGraph(graph model.Graph) error
}

type UpsertService

type UpsertService interface {
	DBService
	UpsertGraph(graph model.Graph, graphToo map[string]interface{}) error
	DeleteGraph(filter int, graphToo map[string]interface{}) error
}

Directories

Path Synopsis
* Copyright © 2020.
* Copyright © 2020.
api
* Copyright © 2020.
* Copyright © 2020.
api/v1
* Copyright © 2020.
* Copyright © 2020.
api/v2
* Copyright © 2020.
* Copyright © 2020.
api/v200
* Copyright © 2020.
* Copyright © 2020.
cache
* Copyright © 2020.
* Copyright © 2020.
factory
* Copyright © 2020.
* Copyright © 2020.
rdf
* Copyright © 2020.
* Copyright © 2020.
services
* Copyright © 2020.
* Copyright © 2020.
* Copyright © 2020.
* Copyright © 2020.

Jump to

Keyboard shortcuts

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