rename core to boilingcore to make a more sense
* make more sense as a third party library
This commit is contained in:
parent
88cde8df0c
commit
788d28400e
12 changed files with 18 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
// Package sqlboiler has types and methods useful for generating code that
|
||||
// acts as a fully dynamic ORM might.
|
||||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"encoding/json"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"bufio"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
// Config for the running of the commands
|
||||
type Config struct {
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"reflect"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"bufio"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"sort"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"fmt"
|
|
@ -1,4 +1,4 @@
|
|||
package core
|
||||
package boilingcore
|
||||
|
||||
import (
|
||||
"reflect"
|
14
main.go
14
main.go
|
@ -11,14 +11,14 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/vattle/sqlboiler/bdb/drivers"
|
||||
"github.com/vattle/sqlboiler/core"
|
||||
"github.com/vattle/sqlboiler/boilingcore"
|
||||
)
|
||||
|
||||
const sqlBoilerVersion = "2.1.5"
|
||||
|
||||
var (
|
||||
cmdState *core.State
|
||||
cmdConfig *core.Config
|
||||
cmdState *boilingcore.State
|
||||
cmdConfig *boilingcore.Config
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -123,7 +123,7 @@ func preRun(cmd *cobra.Command, args []string) error {
|
|||
|
||||
driverName := args[0]
|
||||
|
||||
cmdConfig = &core.Config{
|
||||
cmdConfig = &boilingcore.Config{
|
||||
DriverName: driverName,
|
||||
OutFolder: viper.GetString("output"),
|
||||
Schema: viper.GetString("schema"),
|
||||
|
@ -164,7 +164,7 @@ func preRun(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if driverName == "postgres" {
|
||||
cmdConfig.Postgres = core.PostgresConfig{
|
||||
cmdConfig.Postgres = boilingcore.PostgresConfig{
|
||||
User: viper.GetString("postgres.user"),
|
||||
Pass: viper.GetString("postgres.pass"),
|
||||
Host: viper.GetString("postgres.host"),
|
||||
|
@ -200,7 +200,7 @@ func preRun(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if driverName == "mysql" {
|
||||
cmdConfig.MySQL = core.MySQLConfig{
|
||||
cmdConfig.MySQL = boilingcore.MySQLConfig{
|
||||
User: viper.GetString("mysql.user"),
|
||||
Pass: viper.GetString("mysql.pass"),
|
||||
Host: viper.GetString("mysql.host"),
|
||||
|
@ -241,7 +241,7 @@ func preRun(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
cmdState, err = core.New(cmdConfig)
|
||||
cmdState, err = boilingcore.New(cmdConfig)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue