ezgh databases users create <database> <name> --preset p --logical-database l [--wait] [flags]Create a user with a preset on one logical database. readOnly reads every table, view and sequence; readWrite also inserts, updates and deletes rows and uses sequences and temporary tables; owner can do everything in that logical database. Its password is generated and written to a new Secret in the project, with its username, password, host, port, database, engine and uri. --wait waits until it’s available and prints it, with the command that prints its uri.
Part of ezgh databases users.
Examples
ezgh databases users create orders shop_app --preset readWrite --logical-database shop --waitFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--logical-database |
string | the logical database it has access to | |
--preset |
string | readOnly, readWrite or owner | |
--wait |
boolean | wait until it’s available, and print it then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
This command also takes the global flags.