mongodb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(endpoint, username, password, database string) *Storage

func (*Storage) Create

func (s *Storage) Create(value interface{}, tableName string) error

func (*Storage) CreateTable

func (s *Storage) CreateTable(value interface{}, tableName string) error

func (*Storage) Delete

func (s *Storage) Delete(value interface{}, tableName string, hash interface{}, args ...interface{}) error

func (*Storage) Find

func (s *Storage) Find(value interface{}, tableName string, limit int64, expr string, args ...interface{}) error

func (*Storage) First

func (s *Storage) First(value interface{}, tableName string, hash interface{}, args ...interface{}) error

func (*Storage) Save

func (s *Storage) Save(value interface{}, tableName string) error

Jump to

Keyboard shortcuts

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