db

package
v0.0.0-...-e9227c1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(databaseName string) *gorm.DB

Create connection to sqlite3 database storing the todos.

Types

type TodoItem

type TodoItem struct {
	ID          int    `sql:"AUTO_INCREMENT" gorm:"primary_key"`
	Description string `sql:"size:255;index"`
	Deadline    string
	Progress    int
}

Jump to

Keyboard shortcuts

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