schema

package module
v0.0.0-...-9b78e5f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

README

Schema Retrieval Package

This is the package used by the schema service to retrieve and convert the schema.

Retriever Interface

Any new database schema retriever needs to implement the Retriever interface found in interface.go.

Creating a Schema Retrieval Service

import "git.science.uu.nl/datastrophe/schema-retrieval/arangodb"

arangodbService := arangodb.NewService()

Retrieving the Schema

schema, err := arangodbService.RetrieveSchema(databaseInfo entity.DatabaseInfo, userID string, databaseName string)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever interface {
	RetrieveSchema(databaseInfo *models.DBConnectionModel, userID string) (*schemaEntity.JSONReturnFormat, error)
	RetrieveSchemaStats(databaseInfo *models.DBConnectionModel, userID string) (*schemaEntity.SchemaStats, error)
}

Interface for a database schema retriever

func GetRetriever

func GetRetriever(engine string) Retriever

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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