dao

package
v0.0.0-...-dde1ccd Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: CC0-1.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const COLLECTION = "gatos"

Variables

This section is empty.

Functions

This section is empty.

Types

type GatosDAO

type GatosDAO struct {
	Server   string
	Database string
}

func (*GatosDAO) Connect

func (conn *GatosDAO) Connect()

func (*GatosDAO) FindAll

func (conn *GatosDAO) FindAll() ([]Gato, error)

func (*GatosDAO) FindById

func (conn *GatosDAO) FindById(id string) (Gato, error)

func (*GatosDAO) Insert

func (conn *GatosDAO) Insert(gato Gato) error

func (*GatosDAO) Update

func (conn *GatosDAO) Update(gato Gato) error

Jump to

Keyboard shortcuts

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