dialect

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generic

type Generic struct {
	CleanupSQL string
	GetSQL     string
	ListSQL    string
	CreateSQL  string
	DeleteSQL  string
	UpdateSQL  string
}

func (*Generic) Create

func (g *Generic) Create(ctx context.Context, db *sql.DB, key string, value []byte, ttl uint64) error

func (*Generic) Delete

func (g *Generic) Delete(ctx context.Context, db *sql.DB, key string, revision *int64) (*kv.KeyValue, error)

func (*Generic) Get

func (g *Generic) Get(ctx context.Context, db *sql.DB, key string) (*kv.KeyValue, error)

func (*Generic) List

func (g *Generic) List(ctx context.Context, db *sql.DB, key string) ([]*kv.KeyValue, error)

func (*Generic) Start

func (g *Generic) Start(ctx context.Context, db *sql.DB)

func (*Generic) Update

func (g *Generic) Update(ctx context.Context, db *sql.DB, key string, value []byte, revision int64) (*kv.KeyValue, *kv.KeyValue, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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