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

Function runInstall

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

---- install ----

()

Source from the content-addressed store, hash-verified

134// ---- install ----
135
136func runInstall() error {
137 log.Println("=== Installing PostgreSQL and MySQL for test setup ===")
138
139 if err := installAptProxy(); err != nil {
140 return fmt.Errorf("configuring apt proxy: %w", err)
141 }
142
143 if err := installPostgreSQL(); err != nil {
144 return fmt.Errorf("installing postgresql: %w", err)
145 }
146
147 if err := installMySQL(); err != nil {
148 return fmt.Errorf("installing mysql: %w", err)
149 }
150
151 log.Println("=== Install complete ===")
152 return nil
153}
154
155func installAptProxy() error {
156 proxy := os.Getenv("http_proxy")

Callers 1

mainFunction · 0.85

Calls 3

installAptProxyFunction · 0.85
installPostgreSQLFunction · 0.85
installMySQLFunction · 0.85

Tested by

no test coverage detected