noSql

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aerospike

type Aerospike struct {
	Name  string
	Hosts string
	User  string
	Pass  string
	// contains filtered or unexported fields
}

func (*Aerospike) Batch

func (t *Aerospike) Batch(ctx context.Context, key interface{}, query interface{}, typeOp string, args ...interface{}) (int64, error)

func (*Aerospike) Count

func (t *Aerospike) Count(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64

func (*Aerospike) Delete

func (t *Aerospike) Delete(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64

func (*Aerospike) Exec

func (t *Aerospike) Exec(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*Aerospike) Exists

func (t *Aerospike) Exists(ctx context.Context, key interface{}, query interface{}, args ...interface{}) bool

func (*Aerospike) Find

func (t *Aerospike) Find(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*Aerospike) FindOne

func (t *Aerospike) FindOne(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*Aerospike) GetDb

func (t *Aerospike) GetDb() interface{}

func (*Aerospike) Init

func (t *Aerospike) Init(app interfaces.IService) error

func (*Aerospike) Insert

func (t *Aerospike) Insert(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (interface{}, error)

func (*Aerospike) Scan

func (t *Aerospike) Scan(from aerospike.BinMap, to interface{}) error

func (*Aerospike) Stop

func (t *Aerospike) Stop() error

func (*Aerospike) String

func (t *Aerospike) String() string

func (*Aerospike) Update

func (t *Aerospike) Update(ctx context.Context, key interface{}, query interface{}, args ...interface{}) error

type MongoDB

type MongoDB struct {
	Name     string
	Database string
	Options  *options.ClientOptions
	// contains filtered or unexported fields
}

func (*MongoDB) Batch

func (t *MongoDB) Batch(ctx context.Context, key interface{}, query interface{}, typeOp string, args ...interface{}) (int64, error)

Batch

key - collection name

query []mongo.WriteModel

typeOp in [bulk]

func (*MongoDB) Count

func (t *MongoDB) Count(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64

func (*MongoDB) Delete

func (t *MongoDB) Delete(ctx context.Context, key interface{}, query interface{}, args ...interface{}) int64

func (*MongoDB) Exec

func (t *MongoDB) Exec(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*MongoDB) Exists

func (t *MongoDB) Exists(ctx context.Context, key interface{}, query interface{}, args ...interface{}) bool

func (*MongoDB) Find

func (t *MongoDB) Find(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*MongoDB) FindOne

func (t *MongoDB) FindOne(ctx context.Context, key interface{}, query interface{}, model interface{}, args ...interface{}) error

func (*MongoDB) GetDb

func (t *MongoDB) GetDb() interface{}

func (*MongoDB) Init

func (t *MongoDB) Init(app interfaces.IService) error

func (*MongoDB) Insert

func (t *MongoDB) Insert(ctx context.Context, key interface{}, query interface{}, args ...interface{}) (interface{}, error)

func (*MongoDB) Stop

func (t *MongoDB) Stop() error

func (*MongoDB) String

func (t *MongoDB) String() string

func (*MongoDB) Update

func (t *MongoDB) Update(ctx context.Context, key interface{}, query interface{}, args ...interface{}) error

Jump to

Keyboard shortcuts

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