driver

package
v0.0.0-...-d65df50 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: BSD-2-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteCounter

type ByteCounter int

func (ByteCounter) MarshalYAML

func (c ByteCounter) MarshalYAML() (interface{}, error)

type Counter

type Counter int

func (Counter) MarshalYAML

func (c Counter) MarshalYAML() (interface{}, error)

type Driver

type Driver interface {
	Init(sp schema.SchemaProvider, config interface{}) error
	Get(q query.GetQuery) *query.GetResponse
	Update(q query.UpdateQuery) *query.UpdateResponse
	Put(q query.PutQuery) *query.PutResponse
	Delete(q query.DelQuery) *query.DelResponse

	Dump(table string) (<-chan schema.Entity, <-chan error, chan<- bool, error)

	// Status asks the driver if it is up and running
	Status() error
	Stats() (*Stats, error)
}

type Stats

type Stats struct {
	Tables map[string]*TableStats `yaml:"tables"`
}

type TableStats

type TableStats struct {
	NumRows           Counter     `yaml:"num_rows"`
	EstimatedDataSize ByteCounter `yaml:"data_size"`
	EstimatedKeysSize ByteCounter `yaml:"keys_size"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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