dto

package
v0.0.0-...-94f9dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DTO

type DTO struct {
	ID     int
	Status string
	Error  error
	DB     *sql.DB
}

DTO structure

func (*DTO) Count

func (d *DTO) Count(whereClause ...string) int

Count all the objects in a table

func (*DTO) Destroy

func (d *DTO) Destroy()

Destroy function closes the db connection in the DTO struct

func (*DTO) Init

func (d *DTO) Init(dataSourceName string)

Init function initialises the base DTO struct

Jump to

Keyboard shortcuts

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