starrocks

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 0

README

Go Client for StarRocks

Build Status Go Report Card Docs License

Go client for StarRocks.

Documentation

Index

Constants

View Source
const (
	ColumnSeparatorComma  = ","
	HeaderColumns         = "columns"
	HeaderEnclose         = "enclose"
	HeaderMaxRilterRatio  = "max_filter_ratio"
	HeaderSkipHeader      = "skip_header"
	EncloseDoubleQuotes   = "\""
	MaxFilterRatioDefault = "1"
	APISlugStreamLoad     = "_stream_load"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	SimpClient httpsimple.Client
}

func NewClient

func NewClient(serverURL, username, password string) (*Client, error)

func (Client) StreamLoad

func (c Client) StreamLoad(opts StreamLoadOpts) (*http.Response, error)

type StreamLoadOpts

type StreamLoadOpts struct {
	Columns         []string
	ColumnSeparator string
	Enclose         string
	Expect          string // -H "Expect:100-continue"                \
	Filename        string
	Label           string
	MaxFilterRatio  uint
	SkipHeader      bool
	Database        string
	Table           string
}

func (StreamLoadOpts) Header

func (opts StreamLoadOpts) Header() http.Header

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL