repl

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2017 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Overview

Package repl contains the implementation of the command that prints the BQL version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(driver storage.Store, chanSize, bulkSize, builderSize int, rl ReadLiner, done chan bool) *command.Command

New create the version command.

func REPL

func REPL(driver storage.Store, input *os.File, rl ReadLiner, chanSize, bulkSize, builderSize int, done chan bool) int

REPL starts a read-evaluation-print-loop to run BQL commands.

func SimpleReadLine added in v0.6.0

func SimpleReadLine(done chan bool) <-chan string

SimpleReadLine reads a line from the provided file. This does not support any advanced terminal capabilities.

This function can be replaced with more advanced functionality, as shown https://github.com/xllora/bwdrivers/blob/master/bw/main.go.

Types

type ReadLiner added in v0.6.0

type ReadLiner func(done chan bool) <-chan string

ReadLiner returns a channel with the imput to be used for the REPL.

Jump to

Keyboard shortcuts

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