postgres

package
v0.0.0-...-7504a72 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoteStore

type NoteStore struct {
	DB *sqlx.DB
}

func (*NoteStore) Create

func (ns *NoteStore) Create(note *model.Note) (*model.Note, error)

func (*NoteStore) Delete

func (ns *NoteStore) Delete(noteID uint64) (bool, error)

func (*NoteStore) Get

func (ns *NoteStore) Get(noteID uint64) (*model.Note, error)

func (*NoteStore) List

func (ns *NoteStore) List() ([]model.Note, error)

func (*NoteStore) Update

func (ns *NoteStore) Update(noteID uint64, note *model.Note) (*model.Note, error)

Jump to

Keyboard shortcuts

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