db

package
v0.0.0-...-038e260 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardDB

type CardDB interface {
	Create(*models.Card) error
	GetAll() ([]models.Card, error)
	Delete(int64) error
	Update(int64, string) error
	Move(int64, int64) error
}

CardDB handles db operations for cards

type DB

type DB struct {
	Cards CardDB
	Tasks TaskDB
}

DB handles all data layer functionality

func New

func New(db *sqlx.DB) *DB

New creates a new db instance

type TaskDB

type TaskDB interface {
	Delete(int64) error
	Create(*models.Task) error
	Move(int64, int64) error
}

TaskDB handles db operations for tasks

Jump to

Keyboard shortcuts

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