Expand description
User and Database Management
This module provides comprehensive user and database management operations including:
- List users and databases
- Create/drop users and databases
- Update user passwords
- Role management
- Granular permission management
Structs§
- Database
Info - PostgreSQL database information
- User
Info - PostgreSQL user information
Enums§
- Privilege
- PostgreSQL privilege types
Functions§
- create_
database_ with_ options - Create a database with options
- create_
role - Create a role (user without login)
- create_
user_ with_ options - Create a user with full options
- database_
exists - Check if a database exists
- drop_
database - Drop a database
- drop_
user - Drop a user
- grant_
privileges - Grant specific privileges on a database to a user
- grant_
role - Grant a role to a user
- list_
databases - List all databases in the PostgreSQL instance
- list_
users - List all users in the PostgreSQL instance
- revoke_
privileges - Revoke privileges on a database from a user
- revoke_
role - Revoke a role from a user
- update_
user_ password - Update user password
- user_
exists - Check if a user exists