MCPcopy
hub / github.com/sqlc-dev/sqlc / id

Function id

internal/sqltest/postgres.go:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21var letterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
22
23func id() string {
24 b := make([]rune, 10)
25 for i := range b {
26 b[i] = letterRunes[rand.Intn(len(letterRunes))]
27 }
28 return string(b)
29}
30
31func PostgreSQL(t *testing.T, migrations []string) (*sql.DB, func()) {
32 t.Helper()

Callers 2

MySQLFunction · 0.70
PostgreSQLFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected