sqlreader

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sqlreader reads lines with with the ability to cancel the context.

Index

Constants

This section is empty.

Variables

View Source
var ErrInterrupted = errors.New("context canceled")

ErrInterrupted error for canceled context.

Functions

This section is empty.

Types

type Reader

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

Reader describes reader

func NewSQLReader

func NewSQLReader(rd io.Reader) *Reader

NewSQLReader returns a new Reader

func (*Reader) ReadLine

func (r *Reader) ReadLine(ctx context.Context) (string, error)

ReadLine returns the read string or error.

Jump to

Keyboard shortcuts

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