database

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

result.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection added in v0.3.0

type Collection interface {
	SetCollection(name string)
	Find(ctx context.Context, filter []byte, sort []byte, project []byte) ([]map[string]interface{}, error)
}

type Connecter

type Connecter interface {
	Connect(ctx context.Context, connection *models.Connection) chan error
	Disconnect(ctx context.Context, connectionURI string) error
	DisconnectAll(ctx context.Context) error
	GetDatabases(ctx context.Context, connectionURI string) ([]string, error)
}

type Database

type Database interface {
	UseDatabase(connectionURI string, name string) error
	GetCollections(ctx context.Context) ([]string, error)
	Execute(ctx context.Context, command []byte) (interface{}, error)
	Drop(ctx context.Context) error
	GetCurrentDatabaseName() (string, error)
}

type ResultList added in v0.3.0

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

func CreateResultList added in v0.3.0

func CreateResultList() ResultList

func (*ResultList) Add added in v0.3.0

func (resultList *ResultList) Add(convertSource func() map[string]interface{})

func (*ResultList) Get added in v0.3.0

func (resultList *ResultList) Get() []document

Jump to

Keyboard shortcuts

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