postgres

package
v0.0.0-...-9d2db95 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteByID

func DeleteByID(id int) error

DeleteByID Deleted ToDo By ID

func FetchAll

func FetchAll() ([]models.Todo, error)

FetchAll Fetches all todos and returns them

func FetchByID

func FetchByID(id int) (models.Todo, error)

FetchByID Fetches todo by ID

func Insert

func Insert(todo *models.Todo) error

Insert Inserts a model Todo into the database

func UpdateCompletedByID

func UpdateCompletedByID(id int) (models.Todo, error)

UpdateCompletedByID Marks a TO DO Completed

Types

This section is empty.

Jump to

Keyboard shortcuts

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