Skip to content

Tool to check duplicate query to PostgreSQL database.

Notifications You must be signed in to change notification settings

revdaalex/go-logstock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-logstock

Tool to check duplicate query to PostgreSQL database based on go-pg ORM.

Build Status Go Report Card

Import:

. "github.com/revdaalex/go-logstock/src/go_logstock"

go get github.com/revdaalex/go-logstock

Use in test:

func TestQuery(t *testing.T)  {
	db, err := DBConn(pgOptions)
	if err != nil {
		panic(err)
	}
	// check func with query
	testQuery(db)
	// Create log and assert log query and db query
	CheckLog(t, "logName")
}

Log files are created in the log directory GOPATH/log

About

Tool to check duplicate query to PostgreSQL database.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages