NCBI C++ ToolKit
Functions | Variables
connect2.c File Reference
#include "common.h"
#include <common/test_assert.h>
+ Include dependency graph for connect2.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static void init_connect (void)
 
static void normal_connect (void)
 
static void driver_connect (const char *conn_str)
 
static void check_dbname (const char *dbname)
 
static void set_dbname (const char *dbname)
 
int main (int argc, char *argv[])
 

Variables

static int failed = 0
 

Function Documentation

◆ check_dbname()

static void check_dbname ( const char *  dbname)
static

◆ driver_connect()

static void driver_connect ( const char *  conn_str)
static

Definition at line 28 of file connect2.c.

References CHKDriverConnect, len, NULL, ODBC_VECTOR_SIZE, SQL_DRIVER_NOPROMPT, SQL_NTS, T, and tmp.

Referenced by main().

◆ init_connect()

static void init_connect ( void  )
static

Definition at line 15 of file connect2.c.

References CHKAllocConnect, CHKAllocEnv, odbc_conn, and odbc_env.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ normal_connect()

static void normal_connect ( void  )
static

Definition at line 22 of file connect2.c.

References CHKConnect, odbc_password, odbc_server, odbc_user, SQL_NTS, and T.

Referenced by main().

◆ set_dbname()

static void set_dbname ( const char *  dbname)
static

Definition at line 59 of file connect2.c.

References CHKSetConnectAttr, dbname(), SQL_ATTR_CURRENT_CATALOG, and T.

Referenced by main().

Variable Documentation

◆ failed

int failed = 0
static

Definition at line 10 of file connect2.c.

Referenced by check_dbname(), and main().

Modified on Wed Feb 28 07:14:26 2024 by modify_doxy.py rev. 669887