Skip to content

wiliamvj/sqlGoString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlGoString

This package generates SQL queries in string for database queries

Install
go get github.com/wiliamvj/sqlGoString

How to use:

put a tag mark with --transform: my_query

Example:

--transform: my_query
SELECT * FROM user
queryString, err := sqlGoString.Transform("my_query")
if err != nil {
  return err
}
db.Query(queryString)

sqlGoString will search for any .sql file and the my_query tag. You can have multiple sql files or use all queries in the same file.

Go Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages