csv

package
v0.6.13-v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(logger logger.Logger, v3ioContext v3io.Context, config *frames.BackendConfig, framesConfig *frames.Config) (frames.DataBackend, error)

NewBackend returns a new CSV backend

Types

type Backend

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

Backend is CSV backend

func (*Backend) Create

func (b *Backend) Create(request *frames.CreateRequest) error

Create creates a CSV file

func (*Backend) Delete

func (b *Backend) Delete(request *frames.DeleteRequest) error

Delete will delete a table

func (*Backend) Exec

func (b *Backend) Exec(request *frames.ExecRequest) (frames.Frame, error)

Exec executes a command

func (*Backend) Read

func (b *Backend) Read(request *frames.ReadRequest) (frames.FrameIterator, error)

Read handles reading

func (*Backend) Write

func (b *Backend) Write(request *frames.WriteRequest) (frames.FrameAppender, error)

Write handles writing

type FrameIterator

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

FrameIterator iterates over CSV

func (*FrameIterator) At

func (it *FrameIterator) At() frames.Frame

At return the current Frame

func (*FrameIterator) Err

func (it *FrameIterator) Err() error

Err returns the last error

func (*FrameIterator) Next

func (it *FrameIterator) Next() bool

Next reads the next frame, return true of succeeded

Jump to

Keyboard shortcuts

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