dbfiles: github.com/AlexanderThaller/dbfiles Index | Files

package dbfiles

import "github.com/AlexanderThaller/dbfiles"

Index

Package Files

driver.go main.go structure.go

Constants

const DefaultBaseDir = "data"

type CSV Uses

type CSV struct{}

func (CSV) Extention Uses

func (driver CSV) Extention() string

func (CSV) Read Uses

func (driver CSV) Read(reader io.Reader) ([][]string, error)

func (CSV) Write Uses

func (driver CSV) Write(writer io.Writer, values []string) error

type DBFiles Uses

type DBFiles struct {
    BaseDir string
    Driver
    Structure
    WriteQueue chan (record)
    // contains filtered or unexported fields
}

func New Uses

func New() *DBFiles

func (*DBFiles) Destroy Uses

func (db *DBFiles) Destroy() error

func (DBFiles) Get Uses

func (db DBFiles) Get(key ...string) ([][]string, error)

func (DBFiles) Keys Uses

func (db DBFiles) Keys() ([][]string, error)

func (*DBFiles) Put Uses

func (db *DBFiles) Put(values []string, key ...string) error

type Driver Uses

type Driver interface {
    Extention() string
    Write(io.Writer, []string) error
    Read(io.Reader) ([][]string, error)
}

type Flat Uses

type Flat struct {
}

func NewFlat Uses

func NewFlat() Flat

func (Flat) Create Uses

func (str Flat) Create(basedir string) error

func (Flat) File Uses

func (str Flat) File(basedir string, driver Driver, key []string) (io.ReadWriteCloser, error)

type Folders Uses

type Folders struct {
}

func NewFolders Uses

func NewFolders() Folders

func (Folders) Create Uses

func (str Folders) Create(basedir string) error

func (Folders) File Uses

func (str Folders) File(basedir string, driver Driver, key []string) (io.ReadWriteCloser, error)

type Structure Uses

type Structure interface {
    Create(string) error
    File(string, Driver, []string) (io.ReadWriteCloser, error)
}

Package dbfiles imports 9 packages (graph) and is imported by 1 packages. Updated 2016-07-21. Refresh now. Tools for package owners.