Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CreateTableByType(tableName string, headers []string, tableType map[string]string) string
 - func MakeRedshfitConnection(conf Conf) (*sql.DB, error)
 - func ManualSnapshot()
 - func PhysicalDelete(connection *sql.DB) error
 - func SetAutoOptimization(connection *sql.DB) error
 - func VACUUM(connection *sql.DB) error
 - type Conf
 - type Result
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTableByType ¶ added in v0.0.69
func ManualSnapshot ¶ added in v0.0.89
func ManualSnapshot()
func PhysicalDelete ¶ added in v0.0.77
PhysicalDelete is delegated to perform the physical delete of the items marked as deleted
func SetAutoOptimization ¶ added in v0.0.77
SetAutoOptimization is delegated to scan all the tables in a redshift cluster and set the automatic diststyle and sortkey
Types ¶
type Conf ¶
type Result ¶ added in v0.0.71
type Result struct {
	Userid          int       `json:"userid,omitempty"`
	Slice           int       `json:"slice,omitempty"`
	Tbl             int       `json:"tbl,omitempty"`
	Starttime       time.Time `json:"starttime,omitempty"`
	Session         int       `json:"session,omitempty"`
	Query           int       `json:"query,omitempty"`
	Filename        string    `json:"filename,omitempty"`
	Line_number     int       `json:"line_number,omitempty"`
	Colname         string    `json:"colname,omitempty"`
	Type            string    `json:"type,omitempty"`
	Col_length      string    `json:"col_length,omitempty"`
	Position        int       `json:"position,omitempty"`
	Raw_line        string    `json:"raw_line,omitempty"`
	Raw_field_value string    `json:"raw_field_value,omitempty"`
	Err_code        int       `json:"err_code,omitempty"`
	Err_reason      string    `json:"err_reason,omitempty"`
	Is_partial      string    `json:"is_partial,omitempty"`
	Start_offset    string    `json:"start_offset,omitempty"`
}
    func GetCOPYErrors ¶ added in v0.0.71
GetCOPYErrors is delegated to retrieve the loading error related to the COPY commands, sorted by time
 Click to show internal directories. 
   Click to hide internal directories.