[ Previous ] [ Contents ] [ Index ] [ Next ]

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

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.