Documentation ¶
Index ¶
- type CollectionTx
- func (c *CollectionTx) Get(id string) (*gocb.TransactionGetResult, error)
- func (c *CollectionTx) GetScope(scopeName string) *gocb.Scope
- func (c *CollectionTx) Insert(id string, value interface{}) (*gocb.TransactionGetResult, error)
- func (c *CollectionTx) Internal() *gocb.InternalTransactionAttemptContext
- func (c *CollectionTx) Query(statement string, options *gocb.TransactionQueryOptions) (*gocb.TransactionQueryResult, error)
- func (c *CollectionTx) Remove(doc *gocb.TransactionGetResult) error
- func (c *CollectionTx) Replace(doc *gocb.TransactionGetResult, value interface{}) (*gocb.TransactionGetResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionTx ¶
type CollectionTx struct { Ctx *gocb.TransactionAttemptContext Collection *gocb.Collection Bucket *gocb.Bucket }
func (*CollectionTx) Get ¶
func (c *CollectionTx) Get(id string) (*gocb.TransactionGetResult, error)
func (*CollectionTx) GetScope ¶
func (c *CollectionTx) GetScope(scopeName string) *gocb.Scope
func (*CollectionTx) Insert ¶
func (c *CollectionTx) Insert(id string, value interface{}) (*gocb.TransactionGetResult, error)
func (*CollectionTx) Internal ¶
func (c *CollectionTx) Internal() *gocb.InternalTransactionAttemptContext
func (*CollectionTx) Query ¶
func (c *CollectionTx) Query(statement string, options *gocb.TransactionQueryOptions) (*gocb.TransactionQueryResult, error)
func (*CollectionTx) Remove ¶
func (c *CollectionTx) Remove(doc *gocb.TransactionGetResult) error
func (*CollectionTx) Replace ¶
func (c *CollectionTx) Replace(doc *gocb.TransactionGetResult, value interface{}) (*gocb.TransactionGetResult, error)
Click to show internal directories.
Click to hide internal directories.