Skip to content

DigitalPhilosopher/sqlpro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sqlpro

WIP

This package is under active development and work-in-progress.

Query(target interface{}, query string, args...)

If you want to insert a custom type (e.g. a struct) into the db your type needs to fullfill follwing interface functions for (un-)marshalling from/to the database.

Marshalling to DB

func (f Metadata) Value() (driver.Value, error)

Unmarshalling from DB

func (f *Metadata) Scan(v interface{}) error`

json is supported as tag!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%