MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / runStart

Function runStart

cmd/sqlc-test-setup/main.go:387–402  ·  view source on GitHub ↗

---- start ----

()

Source from the content-addressed store, hash-verified

385// ---- start ----
386
387func runStart() error {
388 log.Println("=== Starting PostgreSQL and MySQL ===")
389
390 if err := startPostgreSQL(); err != nil {
391 return fmt.Errorf("starting postgresql: %w", err)
392 }
393
394 if err := startMySQL(); err != nil {
395 return fmt.Errorf("starting mysql: %w", err)
396 }
397
398 log.Println("=== Both databases are running and configured ===")
399 log.Println("PostgreSQL: postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable")
400 log.Println("MySQL: root:mysecretpassword@tcp(127.0.0.1:3306)/mysql")
401 return nil
402}
403
404func startPostgreSQL() error {
405 log.Println("--- Starting PostgreSQL ---")

Callers 1

mainFunction · 0.85

Calls 2

startPostgreSQLFunction · 0.85
startMySQLFunction · 0.85

Tested by

no test coverage detected