Versions in this module Expand all Collapse all v0 v0.2.1 Jun 10, 2023 Changes in this version + func NewObjectId(v interface{}) *objectId + type Client struct + func (m *Client) Close() + func (m *Client) Connect(url string, db string, collection string) error + func (m *Client) CreateCollection() error + func (m *Client) DeleteById(objectId string) error + func (m *Client) DeleteBySlug(slug string, v interface{}) error + func (m *Client) DropCollection() error + func (m *Client) FindAll(v interface{}) error + func (m *Client) FindById(objectId string, v interface{}) error + func (m *Client) FindByValue(q interface{}, v interface{}) error + func (m *Client) FindByValueSorted(q interface{}, v interface{}, fields ...string) error + func (m *Client) FindGroup(q interface{}, groupPipe bson.M, sortPipe bson.M, v interface{}) error + func (m *Client) FindRedact(q interface{}, redactPipe bson.M, sortPipe bson.M, v interface{}) error + func (m *Client) Insert(v interface{}) error + func (m *Client) ReadByID(objectId string, v interface{}) error + func (m *Client) ReadBySlug(slug string, v interface{}) error + func (m *Client) ReadByValue(v interface{}) error + func (m *Client) ReadByValueFiltered(f interface{}, v interface{}) error + func (m *Client) ReadRaw(q bson.M, v interface{}) error + func (m *Client) Update(v interface{}) error + func (m *Client) UpdateRaw(q bson.M) error + func (m *Client) UpdateRawFiltered(f bson.M, q bson.M) error