dao

package
v0.0.0-...-c8309c0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGDBInstance

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

func NewDBInstance

func NewDBInstance(dbhost, dbport, dbuser, dbpass, dbname string) (*PGDBInstance, error)

func (*PGDBInstance) Begin

func (p *PGDBInstance) Begin() (txm *TXManager, err error)

func (*PGDBInstance) Insert

func (*PGDBInstance) InsertSecondHandwriting

func (p *PGDBInstance) InsertSecondHandwriting(txm *TXManager, uvHW models.UserValidateHW) (*models.UserValidateHW, error)

func (*PGDBInstance) RetrieveByUsername

func (p *PGDBInstance) RetrieveByUsername(txm *TXManager, username string) (*models.UserCredentials, error)

func (*PGDBInstance) SoftDeleteByUsername

func (p *PGDBInstance) SoftDeleteByUsername(txm *TXManager, username string) error

func (*PGDBInstance) Update

type TXManager

type TXManager struct {
	Tx *sql.Tx
}

func (*TXManager) Commit

func (txm *TXManager) Commit() (err error)

func (*TXManager) End

func (txm *TXManager) End(err error) error

func (*TXManager) Rollback

func (txm *TXManager) Rollback() (err error)

Jump to

Keyboard shortcuts

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