Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
fizz
✓ github.com/gobuffalo/fizz
Generates SQL for creating a users table using the Fizz DSL.
package main
import (
"fmt"
"github.com/gobuffalo/fizz"
"github.com/gobuffalo/fizz/translators"
)
func main() {
t := translators.NewPostgres()
f := fizz.NewFromTranslator(t)
sql, err := f.Generate("create_table(\"users\") { t.Column(\"name\", \"string\", {}) }")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(sql)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.14.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.