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

Function Supported

internal/sqltest/native/enabled.go:11–20  ·  view source on GitHub ↗

Supported returns nil if native database installation is supported on this platform. Currently only Linux (Ubuntu/Debian) is supported.

()

Source from the content-addressed store, hash-verified

9// Supported returns nil if native database installation is supported on this platform.
10// Currently only Linux (Ubuntu/Debian) is supported.
11func Supported() error {
12 if runtime.GOOS != "linux" {
13 return fmt.Errorf("native database installation only supported on linux, got %s", runtime.GOOS)
14 }
15 // Check if apt-get is available (Debian/Ubuntu)
16 if _, err := exec.LookPath("apt-get"); err != nil {
17 return fmt.Errorf("apt-get not found: %w", err)
18 }
19 return nil
20}

Callers 7

TestExpandPostgreSQLFunction · 0.92
TestExpandMySQLFunction · 0.92
TestReplayFunction · 0.92
MySQLFunction · 0.92
postgreSQLFunction · 0.92
StartMySQLServerFunction · 0.85
StartPostgreSQLServerFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestExpandPostgreSQLFunction · 0.74
TestExpandMySQLFunction · 0.74
TestReplayFunction · 0.74