Documentation
¶
Index ¶
- type ImportRecord
- type ImportResponse
- type ImportSetClient
- func (i *ImportSetClient) GetImportSet(importSetSysID string) (map[string]interface{}, error)
- func (i *ImportSetClient) GetImportSetWithContext(ctx context.Context, importSetSysID string) (map[string]interface{}, error)
- func (i *ImportSetClient) GetTransformResults(importSetSysID string) ([]map[string]interface{}, error)
- func (i *ImportSetClient) GetTransformResultsWithContext(ctx context.Context, importSetSysID string) ([]map[string]interface{}, error)
- func (i *ImportSetClient) Insert(tableName string, records []ImportRecord) (*ImportResponse, error)
- func (i *ImportSetClient) InsertWithContext(ctx context.Context, tableName string, records []ImportRecord) (*ImportResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportRecord ¶
type ImportRecord map[string]interface{}
ImportRecord represents a single record to be imported
type ImportResponse ¶
type ImportResponse struct {
ImportSet string `json:"import_set"`
StagingTable string `json:"staging_table"`
Records []map[string]interface{} `json:"records"`
}
ImportResponse represents the response from an import operation
type ImportSetClient ¶
type ImportSetClient struct {
// contains filtered or unexported fields
}
ImportSetClient handles Import Set operations
func NewImportSetClient ¶
func NewImportSetClient(client *core.Client) *ImportSetClient
NewImportSetClient creates a new Import Set client
func (*ImportSetClient) GetImportSet ¶
func (i *ImportSetClient) GetImportSet(importSetSysID string) (map[string]interface{}, error)
GetImportSet retrieves information about an import set
func (*ImportSetClient) GetImportSetWithContext ¶
func (i *ImportSetClient) GetImportSetWithContext(ctx context.Context, importSetSysID string) (map[string]interface{}, error)
GetImportSetWithContext retrieves information about an import set with context support
func (*ImportSetClient) GetTransformResults ¶
func (i *ImportSetClient) GetTransformResults(importSetSysID string) ([]map[string]interface{}, error)
GetTransformResults retrieves the transform results for an import set
func (*ImportSetClient) GetTransformResultsWithContext ¶
func (i *ImportSetClient) GetTransformResultsWithContext(ctx context.Context, importSetSysID string) ([]map[string]interface{}, error)
GetTransformResultsWithContext retrieves the transform results for an import set with context support
func (*ImportSetClient) Insert ¶
func (i *ImportSetClient) Insert(tableName string, records []ImportRecord) (*ImportResponse, error)
Insert inserts records into the specified import set table
func (*ImportSetClient) InsertWithContext ¶
func (i *ImportSetClient) InsertWithContext(ctx context.Context, tableName string, records []ImportRecord) (*ImportResponse, error)
InsertWithContext inserts records into the specified import set table with context support