Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

0 - Success
1 - Success but no rows loaded

...

Description: This API can be used to find/search PBS objects PBS_DB_JOB, PBS_DB_RESV, PBS_DB_NODE, PBS_DB_QUE and PBS_DB_SCHED in the database. This API takes a pointer to the callback function as an argument that will work on the records returned from the database based on the query specified by the PBS.

Signature:

int pbs_db_find_objsearch(void *conn_db_handle, pbs_db_obj_info_t *obj, pbs_db_query_options_t *opts, query_cb_t query_cb)

...

int pbs_db_password(void *conn_db_handle, char *user_name, char *password, int changechar *old_user)

Parameters:

conn_db_handle[in]: Connection handler to the database which was created by pbs_db_connect.

...

password[in]: New password for the database.

changeold_user[in]: Takes values 0 or 1. When set to 1, user_name will be set as new old database user name used in case of -C option to change database user.

Returns: Error code

...