MCPcopy Index your code
hub / github.com/zalando/postgres-operator / executeCreateDatabase

Method executeCreateDatabase

pkg/cluster/database.go:368–371  ·  view source on GitHub ↗

executeCreateDatabase creates new database with the given owner. The caller is responsible for opening and closing the database connection.

(databaseName, owner string)

Source from the content-addressed store, hash-verified

366// executeCreateDatabase creates new database with the given owner.
367// The caller is responsible for opening and closing the database connection.
368func (c *Cluster) executeCreateDatabase(databaseName, owner string) error {
369 return c.execCreateOrAlterDatabase(databaseName, owner, createDatabaseSQL,
370 "creating database", "create database")
371}
372
373// executeAlterDatabaseOwner changes the owner of the given database.
374// The caller is responsible for opening and closing the database connection.

Callers 1

syncDatabasesMethod · 0.95

Calls 1

Tested by

no test coverage detected