arangodb

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeArangoDB

func InitializeArangoDB(ctx context.Context, cfg ArangoConfig) (arango.Database, error)

Types

type ArangoConfig

type ArangoConfig struct {
	Name     string `json:"name" yaml:"name"`
	Host     string `json:"host" yaml:"host"`
	Port     string `json:"port" yaml:"port"`
	User     string `json:"user" yaml:"user"`
	Password string `json:"password" yaml:"password"`
}

type ArangoDB

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

func NewArangoDB

func NewArangoDB(ctx context.Context, db arango.Database) ArangoDB

func (ArangoDB) Collection

func (a ArangoDB) Collection(collection string) nosql.Engine

func (ArangoDB) DeleteOne

func (a ArangoDB) DeleteOne(filter ...interface{}) error

func (ArangoDB) FindMany

func (a ArangoDB) FindMany(documents interface{}, filter interface{}) error

func (ArangoDB) FindOne

func (a ArangoDB) FindOne(document interface{}, filter ...interface{}) (bool, error)

func (ArangoDB) ID

func (a ArangoDB) ID(id string) nosql.Engine

func (ArangoDB) InsertMany

func (a ArangoDB) InsertMany(documents []interface{}) ([]string, error)

func (ArangoDB) InsertOne

func (a ArangoDB) InsertOne(document interface{}) (id string, err error)

func (ArangoDB) Query

func (a ArangoDB) Query(query string, bindParams map[string]interface{}) (interface{}, error)

func (ArangoDB) UpdateOne

func (a ArangoDB) UpdateOne(document interface{}) error

type Query

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

Jump to

Keyboard shortcuts

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