2016-02-24 11:56:15 +01:00
|
|
|
/*
|
|
|
|
SQLBoiler is a tool to generate Go boilerplate code for database interactions.
|
|
|
|
So far this includes struct definitions and database statement helper functions.
|
|
|
|
*/
|
|
|
|
|
2016-02-23 09:27:32 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-02-29 10:39:49 +01:00
|
|
|
"fmt"
|
2016-02-23 09:27:32 +01:00
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/pobri19/sqlboiler/cmds"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2016-02-24 10:17:58 +01:00
|
|
|
// Execute SQLBoiler
|
2016-02-23 09:27:32 +01:00
|
|
|
if err := cmds.SQLBoiler.Execute(); err != nil {
|
2016-02-29 10:39:49 +01:00
|
|
|
fmt.Printf("Failed to execute SQLBoiler: %s", err)
|
2016-02-23 09:27:32 +01:00
|
|
|
os.Exit(-1)
|
|
|
|
}
|
|
|
|
}
|