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

Function dropDatabase

schema/database_test.go:137–140  ·  view source on GitHub ↗
(ctx context.Context, db *pgx.Conn, name string)

Source from the content-addressed store, hash-verified

135}
136
137func dropDatabase(ctx context.Context, db *pgx.Conn, name string) error {
138 _, err := db.Exec(ctx, `DROP DATABASE `+sanitizeDatabaseName(name)+`;`)
139 return err
140}

Callers 1

withDatabaseFunction · 0.85

Calls 1

sanitizeDatabaseNameFunction · 0.85

Tested by

no test coverage detected