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

Function installPgDeps

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

installPgDeps installs shared libraries required by PostgreSQL extensions at runtime (e.g. libossp-uuid16 for uuid-ossp).

()

Source from the content-addressed store, hash-verified

248// installPgDeps installs shared libraries required by PostgreSQL extensions at
249// runtime (e.g. libossp-uuid16 for uuid-ossp).
250func installPgDeps() error {
251 log.Println("installing postgresql runtime dependencies")
252 if err := run("sudo", "apt-get", "install", "-y", "--no-install-recommends", "libossp-uuid16"); err != nil {
253 return fmt.Errorf("apt-get install libossp-uuid16: %w", err)
254 }
255 return nil
256}
257
258// supportedPlatforms returns a comma-separated list of supported platforms.
259func supportedPlatforms() string {

Callers 1

installPostgreSQLFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected