bob/bob.go

20 lines
411 B
Go
Raw Normal View History

2021-06-24 07:43:28 +00:00
package bob
import "github.com/lann/builder"
type BobBuilderType builder.Builder
type BobBuilder interface {
ToSql() (string, []interface{}, error)
}
func (b BobBuilderType) CreateTable(table string) CreateBuilder {
return CreateBuilder(b).Name(table)
}
var BobStmtBuilder = BobBuilderType(builder.EmptyBuilder)
func CreateTable(table string) CreateBuilder {
return BobStmtBuilder.CreateTable(table)
}