MCPcopy Create free account
hub / github.com/egonelbre/exp / sanitizeDatabaseName

Function sanitizeDatabaseName

schema/database_test.go:119–121  ·  view source on GitHub ↗
(schema string)

Source from the content-addressed store, hash-verified

117}
118
119func sanitizeDatabaseName(schema string) string {
120 return pgx.Identifier{schema}.Sanitize()
121}
122
123func connstrWithDatabase(connstr, database string) (string, error) {
124 u, err := url.Parse(connstr)

Callers 2

createDatabaseFunction · 0.85
dropDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected