nosql

package
v0.0.0-...-49370fd Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoResults = errors.New("no results found")

ErrNoResults when operation did not return any results

Functions

func Connector

func Connector(c uniform.IConn, p diary.IPage, serviceId string) domain.INoSql

func ConnectorRaw

func ConnectorRaw(c uniform.IConn, p diary.IPage, serviceId string) domain.INoSql

Types

type CountRequest

type CountRequest struct {
	Database   string
	Collection string
	Query      bson.D
}

type DeleteManyRequest

type DeleteManyRequest struct {
	Database   string
	Collection string
	Query      bson.D
	SoftDelete bool
}

type DeleteManyResponse

type DeleteManyResponse struct {
	Identifiers []interface{}
	Count       int64
}

type DeleteOneRequest

type DeleteOneRequest struct {
	Database   string
	Collection string
	Query      bson.D
	SoftDelete bool
}

type FindManyRequest

type FindManyRequest struct {
	Database   string
	Collection string
	Sort       string
	Skip       int64
	Limit      int64
	Query      bson.D
}

type FindOneRequest

type FindOneRequest struct {
	Database   string
	Collection string
	Sort       string
	Skip       int64
	Query      bson.D
}

type IncRequest

type IncRequest struct {
	Database   string
	Collection string
	Query      bson.D
	Amounts    map[string]float64
}

type IncResponse

type IncResponse struct {
	Identifiers []interface{}
	Count       int64
}

type InsertManyRequest

type InsertManyRequest struct {
	Database   string
	Collection string
	Documents  []interface{}
}

type InsertManyResponse

type InsertManyResponse struct {
	Identifiers []interface{}
	Count       int64
}

type InsertOneRequest

type InsertOneRequest struct {
	Database   string
	Collection string
	Document   interface{}
}

type UpdateManyRequest

type UpdateManyRequest struct {
	Database   string
	Collection string
	Query      bson.D
	Document   interface{}
}

type UpdateManyResponse

type UpdateManyResponse struct {
	Identifiers []interface{}
	Count       int64
}

type UpdateOneRequest

type UpdateOneRequest struct {
	Database   string
	Collection string
	Query      bson.D
	Document   interface{}
}

Jump to

Keyboard shortcuts

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