store

package
v0.0.0-...-61added Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMovement

func CreateMovement(newMovement models.Movement) (*models.Movement, error)

CreateMovement creates a movement.

func DeleteMovement

func DeleteMovement(id string) (*models.Movement, error)

DeleteMovement removes a single movement by primary key.

func DestroyDB

func DestroyDB() error

DestroyDB runs the pg ORM example.

func InitializeDB

func InitializeDB() error

InitializeDB runs the pg ORM example.

func ListMovements

func ListMovements() (*[]models.Movement, error)

ListMovements returns a list of Movements.

func ReadMovement

func ReadMovement(id string) (*models.Movement, error)

ReadMovement returns a single movement by primary key.

func UpdateMovement

func UpdateMovement(updatedMovement *models.Movement) (*models.Movement, error)

UpdateMovement takes in a Movement ID and updates the fields found to be non default in struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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