Name
Ns_PdParseOpenArgs -- Parses a string containing
DBMS-specific data.
Syntax
Ns_PdParseOpenArgs (char *openargs,
char **datasource, char **user, char **password, char
**param);
Description
This function parses the datasource, user, password, and
param parameters leaving missing elements as NULL. This function is
normally called from within Ns_PdDbOpen.
Pseudo-code Example
/* Things italicized would be your DBMS-specific structures and calls. */
void
Ns_PdDbOpen(void *handle, char *openArgs) {
DBMSState *state = (DBMSState *) handle;
Ns_PdParseOpenArgs(openArgs, &state->datasource,
&state->user, &state->password, &state->param);
/* ... */
}
|