StorageManager

package
v0.0.0-...-432c02d Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2015 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New()

Types

type CsvStorage

type CsvStorage struct {
}

type DbStorage

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

func GetDbStorageInst

func GetDbStorageInst(dialectName, dsn, tableName string, tableStruct interface{}) (*DbStorage, error)

func NewDbStorage

func NewDbStorage(dialectName, dsn, tableName string, tableStruct interface{}) (*DbStorage, error)

func (*DbStorage) Close

func (ds *DbStorage) Close() error

func (*DbStorage) Drop

func (ds *DbStorage) Drop() (err error)

func (*DbStorage) Truncate

func (ds *DbStorage) Truncate() (err error)

func (*DbStorage) Write

func (ds *DbStorage) Write(dataSlice []*interface{}) (int, error)

type Storage

type Storage interface {
	Write([]*interface{}) (int, error)
	Truncate() error
	Drop() error
	Close() error
}

Jump to

Keyboard shortcuts

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