Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2026 Changes in this version + type Manager struct + func NewManager(db *sql.DB, opts ...Option) *Manager + func (p *Manager) CreateDatabase(ctx context.Context, dbName, owner string) error + func (p *Manager) CreateUser(ctx context.Context, username, password string) (err error) + func (p *Manager) DatabaseExists(ctx context.Context, dbName string) (bool, error) + func (p *Manager) DeleteDatabase(ctx context.Context, dbName string) error + func (p *Manager) DeleteUser(ctx context.Context, username string) error + func (p *Manager) GrantUserAccessToTable(ctx context.Context, username, schema, table, privilege string) error + func (p *Manager) UserCanAccessDatabase(ctx context.Context, username, dbName string) (bool, error) + func (p *Manager) UserExists(ctx context.Context, username string) (bool, error) + type Option func(*options) + func WithLogger(logger logging.Logger) Option + func WithPillars(pillars *observability.Pillars) Option + func WithTracerProvider(tracerProvider tracing.Provider) Option + type Privilege string + const PrivilegeConnect + const PrivilegeDelete + const PrivilegeInsert + const PrivilegeReferences + const PrivilegeSelect + const PrivilegeTrigger + const PrivilegeTruncate + const PrivilegeUpdate Other modules containing this package github.com/primandproper/primitives-go/v2