Developing Database Drivers for AOLserver -- Ns_PdParseOpenArgs

### Ns_PdParseOpenArgs

#### Overview

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.

#### Psudeo-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);

             /* ... */
        }

Top of Page
Copyright © 1998-99 America Online, Inc.