Versions in this module Expand all Collapse all v1 v1.0.3 Aug 22, 2025 v1.0.2 Aug 22, 2025 Changes in this version + type Client struct + func NewClient(opts ClientOptions) *Client + func (c *Client) Begin() (*CommandResponse, error) + func (c *Client) Close() error + func (c *Client) CollectionCreate(name string) (*CommandResponse, error) + func (c *Client) CollectionDelete(name string) (*CommandResponse, error) + func (c *Client) CollectionIndexCreate(collectionName, fieldName string) (*CommandResponse, error) + func (c *Client) CollectionIndexDelete(collectionName, fieldName string) (*CommandResponse, error) + func (c *Client) CollectionIndexList(collectionName string) ([]string, error) + func (c *Client) CollectionItemDelete(collectionName, key string) (*CommandResponse, error) + func (c *Client) CollectionItemDeleteMany(collectionName string, keys []string) (*CommandResponse, error) + func (c *Client) CollectionItemGet(collectionName, key string) (*GetResult, error) + func (c *Client) CollectionItemSet(collectionName, key string, value any, ttl time.Duration) (*CommandResponse, error) + func (c *Client) CollectionItemSetMany(collectionName string, items []any) (*CommandResponse, error) + func (c *Client) CollectionItemUpdate(collectionName, key string, patchValue any) (*CommandResponse, error) + func (c *Client) CollectionItemUpdateMany(collectionName string, items []any) (*CommandResponse, error) + func (c *Client) CollectionList() ([]string, error) + func (c *Client) CollectionQuery(collectionName string, query Query) (*CommandResponse, error) + func (c *Client) Commit() (*CommandResponse, error) + func (c *Client) Connect() error + func (c *Client) IsAuthenticated() bool + func (c *Client) Rollback() (*CommandResponse, error) + type ClientOptions struct + Host string + InsecureSkipVerify bool + Password string + Port int + ServerCertPath string + Username string + type CommandResponse struct + Message string + RawData []byte + Status string + StatusCode byte + func (r *CommandResponse) JSON(v any) error + func (r *CommandResponse) OK() bool + type GetResult struct + func (r *GetResult) Found() bool + func (r *GetResult) Value(v any) error + type Query struct + Aggregations map[string]any + Count bool + Distinct string + Filter map[string]any + GroupBy []string + Having map[string]any + Limit *int + Lookups []any + Offset int + OrderBy []any + Projection []string v1.0.1 Aug 22, 2025 v1.0.0 Aug 22, 2025