Skip to content

DizoftTeam/simple_query_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Query Builder

Simple query builder for build SQL queries

Example

Simple example below

package main

import (
  "github.com/DizoftTeam/sqb"

  "fmt"
)

func main() {
  query := sqb.NewQuery("users as u").
    Select("u.name, u.email").
    Where("and", "u.name = 'Ruslan'").
    Generate()

  // TODO: Here you can use generated query as you want

  fmt.Printf("SQL: %v\n", query)
}

About

Simple Sql Query Builder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages