Documentation
¶
Index ¶
- Variables
- func SetDebugLogger(l Logger) error
- func SetInputSerializationToURLValues(params url.Values, inputSerialization *types.InputSerialization) error
- func SetLogger(l Logger) error
- type Logger
- type S3SelectClient
- type S3SelectClientWithWriter
- type S3SelectCompressionType
- type S3SelectConfig
- type S3SelectFormat
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupported = errors.New("not supported") ErrDSNEmpty = errors.New("dsn is empty") )
View Source
var S3SelectClientConstructor func(ctx context.Context, cfg *S3SelectConfig) (S3SelectClient, error)
Functions ¶
func SetDebugLogger ¶
func SetInputSerializationToURLValues ¶ added in v0.3.0
func SetInputSerializationToURLValues(params url.Values, inputSerialization *types.InputSerialization) error
Types ¶
type S3SelectClient ¶
type S3SelectClient interface { SelectObjectContentWithWriter(ctx context.Context, w io.Writer, params *s3.SelectObjectContentInput, optFns ...func(*s3.Options)) error s3.ListObjectsV2APIClient }
func DefaultS3SelectClientConstructor ¶
func DefaultS3SelectClientConstructor(ctx context.Context, cfg *S3SelectConfig) (S3SelectClient, error)
type S3SelectClientWithWriter ¶
func (S3SelectClientWithWriter) SelectObjectContentWithWriter ¶
func (c S3SelectClientWithWriter) SelectObjectContentWithWriter(ctx context.Context, w io.Writer, params *s3.SelectObjectContentInput, optFns ...func(*s3.Options)) error
type S3SelectCompressionType ¶
type S3SelectCompressionType string
const ( S3SelectCompressionTypeNone S3SelectCompressionType = "none" S3SelectCompressionTypeGzip S3SelectCompressionType = "gzip" S3SelectCompressionTypeBzip2 S3SelectCompressionType = "bzip2" )
type S3SelectConfig ¶
type S3SelectConfig struct { BucketName string ObjectKey string ObjectKeyPrefix string Format S3SelectFormat CompressionType S3SelectCompressionType InputSerialization *types.InputSerialization ParseTime *bool Params url.Values S3OptFns []func(*s3.Options) }
func ParseDSN ¶
func ParseDSN(dsn string) (*S3SelectConfig, error)
func (*S3SelectConfig) String ¶
func (cfg *S3SelectConfig) String() string
func (*S3SelectConfig) WithRegion ¶
func (cfg *S3SelectConfig) WithRegion(region string) *S3SelectConfig
type S3SelectFormat ¶
type S3SelectFormat string
const ( S3SelectFormatCSV S3SelectFormat = "csv" S3SelectFormatTSV S3SelectFormat = "tsv" S3SelectFormatJSON S3SelectFormat = "json" S3SelectFormatParquet S3SelectFormat = "parquet" S3SelectFormatJSONL S3SelectFormat = "json_lines" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.