A pointer to a newly created mg_session is written here, unless there wasn't enough memory to allocate a mg_session object. In that case, it is set to NULL.
Return: Returns 0 if connected successfuly, otherwise returns a non-zero error code. A more detailed error message can be obtained by using mg_session_error on session, unless it is set to NULL.
Page generated by adrdox
Makes a new connection to the database server.
This function opens a new database connection using the parameters specified in provided params argument.