fix comments in server/db/initalizer.rs
This commit is contained in:
parent
dbb8e0d05a
commit
d0f39990b2
|
@ -1,13 +1,14 @@
|
|||
/// Establishes a postgresql connection to the SQL database.
|
||||
///
|
||||
/// Creates a postgresql connection.
|
||||
/// Should be used in Async contexts.
|
||||
///
|
||||
/// Arguments:
|
||||
/// user - The name of the user to connect to the database with.
|
||||
/// pass - The password of the user to connect to the database with.
|
||||
///
|
||||
/// Returns: ```postgres::Client``` on success, and a string containing the
|
||||
/// reason of failure on error.
|
||||
/// Returns: ```Result``` wrapping ```tokio_postgres::Client``` on success,
|
||||
/// and ```tokio_postgres::Error``` on error.
|
||||
///
|
||||
/// Example:
|
||||
/// ```rust
|
||||
|
|
Loading…
Reference in New Issue