adsa-cms: github.com/mmanjoura/adsa-cms/exchange/backends/csv Index | Files

package csv

import "github.com/mmanjoura/adsa-cms/exchange/backends/csv"

Index

Package Files

csv.go reader.go writer.go

type CSV Uses

type CSV struct {
    Filename string
    // contains filtered or unexported fields
}

func New Uses

func New(filename string) *CSV

func (*CSV) NewReader Uses

func (c *CSV) NewReader(res *exchange.Resource, context *qor.Context) (exchange.Rows, error)

func (*CSV) NewWriter Uses

func (c *CSV) NewWriter(res *exchange.Resource, context *qor.Context) (exchange.Writer, error)

type Rows Uses

type Rows struct {
    *CSV
    Resource *exchange.Resource
    // contains filtered or unexported fields
}

func (Rows) Header Uses

func (rows Rows) Header() (results []string)

func (*Rows) Next Uses

func (rows *Rows) Next() bool

func (Rows) ReadRow Uses

func (rows Rows) ReadRow() (*resource.MetaValues, error)

func (*Rows) Total Uses

func (rows *Rows) Total() uint

type Writer Uses

type Writer struct {
    *CSV

    Resource *exchange.Resource
    Writer   *csv.Writer
    // contains filtered or unexported fields
}

func (*Writer) Flush Uses

func (writer *Writer) Flush()

func (*Writer) WriteHeader Uses

func (writer *Writer) WriteHeader() error

func (*Writer) WriteRow Uses

func (writer *Writer) WriteRow(record interface{}) (*resource.MetaValues, error)

Package csv imports 9 packages (graph) and is imported by 1 packages. Updated 2017-06-20. Refresh now. Tools for package owners.