ddl

package
v1.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToDatabase

func AddUserToDatabase(engine, username, database string) (err error)

AddUserToDatabase adds a user to a database.

func CreateDatabase

func CreateDatabase(engine, dsn, name string) (err error)

CreateDatabase creates a database.

func CreateTableInDatabase

func CreateTableInDatabase(database, name string) (err error)

CreateTableInDatabase creates a table in a database.

func CreateUser

func CreateUser(engine, dsn, database, username, password string) (err error)

CreateUser creates a user.

func DeleteDatabase

func DeleteDatabase(engine, dsn, name string) (err error)

DeleteDatabase deletes a database.

func DeleteTableInDatabase

func DeleteTableInDatabase(database, name string) (err error)

DeleteTableInDatabase deletes a table in a database.

func DeleteUser

func DeleteUser(engine, dsn, username string) (err error)

DeleteUser deletes a user.

func GrantUserPrivileges

func GrantUserPrivileges(username string) (err error)

GrantUserPrivileges grants privileges to a user.

func GrantUserPrivilegesToDatabase

func GrantUserPrivilegesToDatabase(username, database string) (err error)

GrantUserPrivilegesToDatabase grants privileges to a user on a database.

func ReadOnlyUserToDatabase

func ReadOnlyUserToDatabase(username, database string) (err error)

ReadOnlyUserToDatabase grants read-only privileges to a user on a database.

func RemoveUserFromDatabase

func RemoveUserFromDatabase(username, database string) (err error)

RemoveUserFromDatabase removes a user from a database.

func RenameTableInDatabase

func RenameTableInDatabase(database, oldName, newName string) (err error)

RenameTableInDatabase renames a table in a database.

func RevokeUserPrivileges

func RevokeUserPrivileges(username string) (err error)

RevokeUserPrivileges revokes privileges from a user.

func RevokeUserPrivilegesFromDatabase

func RevokeUserPrivilegesFromDatabase(username, database string) (err error)

RevokeUserPrivilegesFromDatabase revokes privileges from a user on a database.

func UpdateUserPassword

func UpdateUserPassword(username, password string) (err error)

UpdateUserPassword updates a user's password.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL