@@ -739,8 +739,7 @@ MGCLIENT_EXPORT uint32_t mg_map_size(const mg_map *map);
739739/// Retrieves the key at position \p pos in map \p map.
740740///
741741/// \return A pointer to required key. If \p pos is outside of map bounds, \c
742- /// NULL
743- /// is returned.
742+ /// NULL is returned.
744743MGCLIENT_EXPORT const mg_string * mg_map_key_at (const mg_map * , uint32_t pos );
745744
746745/// Retrieves the value at position \p pos in map \p map.
@@ -1036,7 +1035,7 @@ MGCLIENT_EXPORT void mg_point_3d_destroy(mg_point_3d *point_3d);
10361035#define MG_SESSION_BAD 2
10371036
10381037/// Marks a \ref mg_session which is currently fetching result of a query.
1039- /// Results can be pulled using \ref mg_session_fetch.
1038+ /// Results can be fetched using \ref mg_session_fetch.
10401039#define MG_SESSION_FETCHING 3
10411040
10421041/// Success code.
@@ -1233,7 +1232,7 @@ MGCLIENT_EXPORT const char *mg_session_params_get_username(
12331232 const mg_session_params * );
12341233MGCLIENT_EXPORT const char * mg_session_params_get_password (
12351234 const mg_session_params * );
1236- MGCLIENT_EXPORT const char * mg_session_params_get_client_name (
1235+ MGCLIENT_EXPORT const char * mg_session_params_get_user_agent (
12371236 const mg_session_params * );
12381237MGCLIENT_EXPORT enum mg_sslmode mg_session_params_get_sslmode (
12391238 const mg_session_params * );
@@ -1287,18 +1286,19 @@ typedef struct mg_result mg_result;
12871286/// next query.
12881287///
12891288/// \param session A \ref mg_session to be used for query
1290- /// execution. \param query Query string. \param params A \ref
1291- /// mg_map containing query parameters. NULL can be
1292- /// supplied instead of an empty parameter map.
1289+ /// execution.
1290+ /// \param query Query string.
1291+ /// \param params A \ref mg_map containing query parameters. NULL
1292+ /// can be supplied instead of an empty parameter
1293+ /// map.
12931294/// \param columns Names of the columns output by the query
1294- /// execution will be
1295- /// stored in here. This is the same as the value
1295+ /// execution will be stored in here. This is the
1296+ /// same as the value
12961297/// obtained by \ref mg_result_columns on a pulled
12971298/// \ref mg_result. NULL can be supplied if we're
12981299/// not interested in the columns names.
1299- ///
13001300/// \param extra_run_information A \ref mg_map containing extra information for
1301- /// running the statement.
1301+ /// running the statement.
13021302/// It can contain the following information:
13031303/// - bookmarks - list of strings containing some
13041304/// kind of bookmark identification
@@ -1316,9 +1316,9 @@ typedef struct mg_result mg_result;
13161316/// takes place. If no `db` is sent or empty
13171317/// string it implies that it is the default
13181318/// database.
1319- /// \param qid QID for the statement will be stored in here if
1320- /// an Explicit transaction was started. \return Returns 0 if query was
1321- /// submitted for execution successfuly.
1319+ /// \param qid QID for the statement will be stored in here
1320+ /// if an Explicit transaction was started.
1321+ /// \return Returns 0 if query was submitted for execution successfuly.
13221322/// Otherwise, a non-zero error code is returned.
13231323MGCLIENT_EXPORT int mg_session_run (mg_session * session , const char * query ,
13241324 const mg_map * params ,
@@ -1385,23 +1385,24 @@ MGCLIENT_EXPORT int mg_session_rollback_transaction(mg_session *session,
13851385/// \return On success, 0 or 1 is returned. Exit code 1 means that a new result
13861386/// row was obtained and stored in \p result and its contents may be
13871387/// accessed using \ref mg_result_row. Exit code 0 means that there are
1388- /// now more result rows and that the query execution summary was stored
1388+ /// no more result rows and that the query execution summary was stored
13891389/// in \p result. Its contents may be accessed using \ref
13901390/// mg_result_summary. On failure, a non-zero exit code is returned.
13911391MGCLIENT_EXPORT int mg_session_fetch (mg_session * session , mg_result * * result );
13921392
13931393/// Tries to pull results of a statement.
13941394///
13951395/// \param session A \ref mg_session from which the results should be
1396- /// pulled. \param pull_information A \ref mg_map that contains extra
1397- /// information for pulling the results.
1396+ /// pulled.
1397+ /// \param pull_information A \ref mg_map that contains extra information for
1398+ /// pulling the results.
13981399/// It can contain the following information:
1399- /// - n - how many records to fetch. `n=-1` will fetch
1400- /// all records.
1401- /// - qid - query identification, specifies the result
1402- /// from which statement the results should be pulled .
1403- /// `qid=-1` denotes the last executed statement. This
1404- /// is only for Explicit transactions.
1400+ /// - n - how many records to fetch. `n=-1` will fetch
1401+ /// all records.
1402+ /// - qid - query identification, specifies the result
1403+ /// from which statement the results should be pulled.
1404+ /// `qid=-1` denotes the last executed statement. This
1405+ /// is only for Explicit transactions.
14051406/// \return Returns 0 if the result was pulled successfuly.
14061407/// Otherwise, a non-zero error code is returned.
14071408MGCLIENT_EXPORT int mg_session_pull (mg_session * session ,
0 commit comments