Documentation ¶
Index ¶
- func AddUserToDatabase(engine, username, database string) (err error)
- func CreateDatabase(engine, dsn, name string) (err error)
- func CreateTableInDatabase(database, name string) (err error)
- func CreateUser(engine, dsn, database, username, password string) (err error)
- func DeleteDatabase(engine, dsn, name string) (err error)
- func DeleteTableInDatabase(database, name string) (err error)
- func DeleteUser(engine, dsn, username string) (err error)
- func GrantUserPrivileges(username string) (err error)
- func GrantUserPrivilegesToDatabase(username, database string) (err error)
- func ReadOnlyUserToDatabase(username, database string) (err error)
- func RemoveUserFromDatabase(username, database string) (err error)
- func RenameTableInDatabase(database, oldName, newName string) (err error)
- func RevokeUserPrivileges(username string) (err error)
- func RevokeUserPrivilegesFromDatabase(username, database string) (err error)
- func UpdateUserPassword(username, password string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToDatabase ¶
AddUserToDatabase adds a user to a database.
func CreateDatabase ¶
CreateDatabase creates a database.
func CreateTableInDatabase ¶
CreateTableInDatabase creates a table in a database.
func CreateUser ¶
CreateUser creates a user.
func DeleteDatabase ¶
DeleteDatabase deletes a database.
func DeleteTableInDatabase ¶
DeleteTableInDatabase deletes a table in a database.
func DeleteUser ¶
DeleteUser deletes a user.
func GrantUserPrivileges ¶
GrantUserPrivileges grants privileges to a user.
func GrantUserPrivilegesToDatabase ¶
GrantUserPrivilegesToDatabase grants privileges to a user on a database.
func ReadOnlyUserToDatabase ¶
ReadOnlyUserToDatabase grants read-only privileges to a user on a database.
func RemoveUserFromDatabase ¶
RemoveUserFromDatabase removes a user from a database.
func RenameTableInDatabase ¶
RenameTableInDatabase renames a table in a database.
func RevokeUserPrivileges ¶
RevokeUserPrivileges revokes privileges from a user.
func RevokeUserPrivilegesFromDatabase ¶
RevokeUserPrivilegesFromDatabase revokes privileges from a user on a database.
func UpdateUserPassword ¶
UpdateUserPassword updates a user's password.
Types ¶
This section is empty.