go-sfdc: github.com/g8rswimmer/go-sfdc/sobject/collections Index | Files

package collections

import "github.com/g8rswimmer/go-sfdc/sobject/collections"

Package collections is the implementation of the SObject Collections API.

Index

Package Files

collections.go delete.go insert.go mock_session_formatter.go query.go update.go

type DeleteValue Uses

type DeleteValue struct {
    sobject.InsertValue
}

DeleteValue is the return value from the Salesforce API.

type Resource Uses

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

Resource is the structure for the SObject Collections API.

func NewResources Uses

func NewResources(session session.ServiceFormatter) (*Resource, error)

NewResources forms the Salesforce SObject Collections resource structure. The session formatter is required to form the proper URLs and authorization header.

func (*Resource) Delete Uses

func (r *Resource) Delete(allOrNone bool, records []string) ([]DeleteValue, error)

Delete will remove a group of records in the Salesforce org. The records do not need to be the same SObject.

func (*Resource) Insert Uses

func (r *Resource) Insert(allOrNone bool, records []sobject.Inserter) ([]sobject.InsertValue, error)

Insert will create a group of records in the Salesforce org. The records do not need to be the same SObject. It is the responsibility of the caller to properly chunck the records.

func (*Resource) Query Uses

func (r *Resource) Query(sobject string, records []sobject.Querier) ([]*sfdc.Record, error)

Query will retrieve a group of records from the Salesforce org. The records to retrieve must be the same SObject.

func (*Resource) Update Uses

func (r *Resource) Update(allOrNone bool, records []sobject.Updater) ([]UpdateValue, error)

Update will update a group of records in the Salesforce org. The records do not need to be the same SObject. It is the responsibility of the caller to properly chunck the records.

type UpdateValue Uses

type UpdateValue struct {
    sobject.InsertValue
}

UpdateValue is the return value from the Salesforce API.

Package collections imports 12 packages (graph). Updated 2019-05-11. Refresh now. Tools for package owners.