Skip to main content

How to Use

Import the mysql package and the query mod packages for the different query types

import (
"github.com/stephenafamo/bob/dialect/mysql"
"github.com/stephenafamo/bob/dialect/mysql/sm"
"github.com/stephenafamo/bob/dialect/mysql/im"
"github.com/stephenafamo/bob/dialect/mysql/um"
"github.com/stephenafamo/bob/dialect/mysql/dm"
)

func main() {
mysql.Select(
sm.From("users"),
)

mysql.Insert(
im.Into("users"),
)

mysql.Update(
um.Table("users"),
)

mysql.Delete(
dm.From("users"),
)

mysql.Raw()
}

Dialect Support

Query types

View the reference for the query mod packages:

Starters

These are MySQL specific starters, in addition to the common starters

Empty

Operators

These are MySQL specific operators, in addition to the common operators

Empty