sqlite

package
v0.0.0-...-e4c6d64 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

func (Backend) Open

func (m Backend) Open(u *url.URL) (storage.Store, error)

type SqlQuery

type SqlQuery struct {
	Select string
	From   string
	Where  string
	Order  string
	SortBy string
}

type Store

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

func (*Store) Close

func (s *Store) Close() error

func (*Store) Create

func (s *Store) Create(post post.Post) error

func (*Store) Delete

func (s *Store) Delete(id string) error

func (*Store) Find

func (s *Store) Find(q query.Query) ([]post.Post, error)

func (*Store) FindAll

func (s *Store) FindAll() ([]post.Post, error)

func (*Store) FindById

func (s *Store) FindById(id string) (*post.Post, error)

Store interface methods

func (*Store) Sync

func (s *Store) Sync() error

func (*Store) Update

func (s *Store) Update(updatedPost post.Post) error

Jump to

Keyboard shortcuts

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