client

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2011 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveArrowSchema

func DeriveArrowSchema(obj any, format map[string]DateFormat) (*arrow.Schema, error)

func EmptyDateFormat

func EmptyDateFormat() map[string]DateFormat

func UnmarshalRecord

func UnmarshalRecord(record arrow.Record, v any) error

Types

type Client

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

func New

func New(uri string) (*Client, error)

func (*Client) CreateFlight

func (c *Client) CreateFlight(ctx context.Context, name string, schema []byte) error

func (*Client) Query

func (c *Client) Query(ctx context.Context, qry string, v any) error

Query returns JSON document

func (*Client) UploadData

func (c *Client) UploadData(ctx context.Context, flightName string, data []byte) error

type DateFormat

type DateFormat struct {
	Is32Bits bool
	TimeUnit arrow.TimeUnit
	TimeZone string
	Layout   string
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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