dao

package
v0.0.0-...-fa4df75 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

Connect realiza conexão com banco de dados

Types

type LogDAO

type LogDAO struct {
}

LogDAO representa a conexao do server e banco

func (*LogDAO) Delete

func (m *LogDAO) Delete(logMessage model.LogMessage) error

Delete deleta um registro

func (*LogDAO) FindAllPageable

func (m *LogDAO) FindAllPageable(searchTerm string, limit int, offset int) ([]model.LogMessage, error)

FindAllPageable busca todos com paginação

func (*LogDAO) FindByID

func (m *LogDAO) FindByID(id string) (model.LogMessage, error)

FindByID busca por id

func (*LogDAO) FindByIntegracaoFilial

func (m *LogDAO) FindByIntegracaoFilial(integracao string, filial string) ([]model.LogMessage, error)

FindByIntegracaoFilial retorna logs agrupado por codigo integracao

func (*LogDAO) FindGroupFilialTipo

func (m *LogDAO) FindGroupFilialTipo() ([]model.LogGroupFilialTipo, error)

FindGroupFilialTipo retorna todos os registros agrupados por filial e tipo de log

func (*LogDAO) FindGroupIntegracao

func (m *LogDAO) FindGroupIntegracao() ([]model.LogGroupIntegracao, error)

FindGroupIntegracao retorna logs agrupado por codigo integracao

func (*LogDAO) Insert

func (m *LogDAO) Insert(logMessage model.LogMessage) error

Insert adiciona novo

func (*LogDAO) Update

func (m *LogDAO) Update(logMessage model.LogMessage) error

Update atualiza um registro existente

Jump to

Keyboard shortcuts

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