github.com/friesencr/pop/v6@v6.1.6/genny/config/templates/mariadb.yml.tmpl (about) 1 --- 2 development: 3 dialect: "mariadb" 4 database: "{{.opts.Prefix}}_development" 5 host: "localhost" 6 port: "3306" 7 user: "root" 8 password: "root" 9 10 test: 11 dialect: "mariadb" 12 # 13 # You can use a single URL string for the same configuration: 14 # 15 #url: "mysql://root:root@(localhost:3306)/{{.opts.Prefix}}_test?parseTime=true&multiStatements=true&readTimeout=3s" 16 # 17 # Note that if you use `url`, other configurations are silently ignored. 18 # In this case, the URL must contain all required connection parameters. 19 # 20 database: "{{.opts.Prefix}}_test" 21 host: "localhost" 22 port: "3306" 23 user: "root" 24 password: "root" 25 26 production: 27 # 28 # You can also use environmental variables to override values in this config. 29 # 30 #url: {{"{{"}}envOr "DATABASE_URL" "mysql://root:root@(localhost:3306)/{{.opts.Prefix}}_production?parseTime=true&multiStatements=true&readTimeout=3s"}} 31 # 32 dialect: "mariadb" 33 database: "{{.opts.Prefix}}_production" 34 host: {{"{{"}}envOr "DATABASE_HOST" "localhost"}} 35 port: {{"{{"}}envOr "DATABASE_PORT" "3306"}} 36 user: {{"{{"}}envOr "DATABASE_USER" "root"}} 37 password: {{"{{"}}envOr "DATABASE_PASSWORD" "root"}} 38 # 39 # And you can also override connection parameters by setting it under options. 40 # 41 #options: 42 # parseTime: true 43 # multiStatements: true 44 # readTimeout: 3s 45 # collation: "utf8mb4_general_ci" 46 # 47 # CAUTION! 48 # `parseTime` and` multiStatements` must be set to `true` to work properly. 49 # If you are not sure, do not change (or set) these values.