db

package
v0.0.0-...-84501ce Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect interface {
	SaveTasks(...*tasks.Task) error
	Close() error
	MustClose()
	String() string
	GetTask(string) (*tasks.Task, error)
	Saver() chan<- *tasks.Task
	SaverLoop(time.Duration, int, logiface.Logger)
	Foreach(ForeachFunc) (int, error)
}

Connect interface represents a database connection with al the necessary methods

func Open

func Open(driverName, dataSourceName string) (Connect, error)

Open creates a new DB connection

type ForeachFunc

type ForeachFunc func(task *tasks.Task) error

ForeachFunc is a type of func to be passed to Foreach method

Jump to

Keyboard shortcuts

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