Save dialect, host, port, db_name, user and app in config file. Save password in system keyring. It will ask the db user password interactively.
1 2 3 4 5 6 7 8 | set_credentials(
alias = "rsqlauthandle",
dialect = "postgresql",
host = "localhost",
port = "5432",
user,
db_name
)
|
alias |
Service alias |
dialect |
The dialect to config (...) |
host |
Str. Host url of DB server. |
port |
Str. Port number. |
user |
Str. User. |
db_name |
Str. Name of database to conect. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.