dal

package
v0.0.0-...-ec5789e Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Connection *sql.DB

Connection Default Database connection to be kept here for easy access

Functions

func InsertAnime

func InsertAnime(anime *models.Anime) (sql.Result, error)

InsertAnime Insert new anime object into the database

func QueryAnimeByID

func QueryAnimeByID(id int) (*models.Anime, error)

QueryAnimeByID Query an Anime object by ID

func ReadAnimeRow

func ReadAnimeRow(row *sql.Row) (*models.Anime, error)

ReadAnimeRow Read an Anime object in from a Database Row

func UpdateAnime

func UpdateAnime(anime *models.Anime) (sql.Result, error)

UpdateAnime Update a single Anime with the data from this new entry

Types

This section is empty.

Jump to

Keyboard shortcuts

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