mirror of https://github.com/aldy505/bob.git
20 lines
411 B
Go
20 lines
411 B
Go
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)
|
|
}
|