package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

CloseAllConnections closes all other connections to a database.
CreateDatabase creates a database with a given name.
CreateDatabaseIfNotExists creates a databse if it doesn't exist.
DatabaseExists returns if a database exists or not.
DropDatabase drops a database.
NewBaseManager creates a new manager.
OpenManagementConnection creates a database connection to the default database (typically postgres).
ValidateDatabaseName validates a database name.

# Constants

Error constant.
ErrDatabaseNameEmpty is a validation failure.
ErrDatabaseNameInvalid is a validation failure.
ErrDatabaseNameInvalidFirstRune is a validation failure.
ErrDatabaseNameReserved is a validation failure.
ErrDatabaseNameTooLong is a validation failure.

# Variables

DatabaseNameMaxLength is the maximum length of a database name.
ReservedDatabaseNames are names you cannot use to create a database with.

# Structs

BaseManager is the manager for database tasks.