github.com/wawandco/oxpecker-plugins@v0.1.1/tools/pop/templates/database_configuration.go (about)

     1  package templates
     2  
     3  var (
     4  	//DatabaseConfiguration is used to generate a copy of database.yml in the binary.
     5  	DatabaseConfiguration = `
     6  // this file was generated by Ox to be able to compile the 
     7  // binary of the app.
     8  package config
     9  
    10  import (
    11  	"strings"
    12  
    13  	"github.com/gobuffalo/pop/v5"
    14  )
    15  
    16  var config = strings.NewReader(` + "`" + `
    17  {{.Config}}
    18  ` + "`" + `)
    19  
    20  func init() {
    21  	pop.LoadFrom(config)
    22  }`
    23  )