utils

package
v0.0.0-...-bf8f870 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 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 Parser

type Parser struct{}

func (*Parser) ExtractAllColumnsFromStructOrSlice

func (p *Parser) ExtractAllColumnsFromStructOrSlice(model interface{}, notZeroOnly bool) []string

func (*Parser) ExtractAllValuesFromStruct

func (p *Parser) ExtractAllValuesFromStruct(model interface{}, notZeroOnly bool) []string

func (*Parser) ExtractAllValuesFromStructOrSlice

func (p *Parser) ExtractAllValuesFromStructOrSlice(model interface{}, notZeroOnly bool) [][]string

func (*Parser) ExtractPrimaryKey

func (p *Parser) ExtractPrimaryKey(model interface{}) string

func (*Parser) GetTableName

func (p *Parser) GetTableName(dataType interface{}) string

type Processor

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

func NewProcessor

func NewProcessor(db *sql.DB) *Processor

func (*Processor) ExecQuery

func (s *Processor) ExecQuery(query string) (sql.Result, error)

func (*Processor) ScanQuery

func (s *Processor) ScanQuery(target interface{}, query string) error

Jump to

Keyboard shortcuts

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