postgresql

package
v0.0.0-...-5861ff1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage implement database storage

func New

func New(db *sqlx.DB) *Storage

New instance for Storage

func (*Storage) InsertProcesso

func (s *Storage) InsertProcesso(ctx context.Context, cnj string) (*processo.Processo, error)

InsertProcesso save "processo" to the storage

func (*Storage) LoadProcesso

func (s *Storage) LoadProcesso(ctx context.Context, cnj string) (*processo.Processo, error)

LoadProcesso load "processo" from storage by cnj

func (*Storage) UpdateProcesso

func (s *Storage) UpdateProcesso(ctx context.Context, p *processo.Processo) error

UpdateProcesso update "processo" in the storage

Jump to

Keyboard shortcuts

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