1#ifndef __JDBCCAT_H
2#define __JDBCCAT_H
3
4// Timeout and net wait defaults
5#define DEFAULT_LOGIN_TIMEOUT -1 // means do not set
6#define DEFAULT_QUERY_TIMEOUT -1 // means do not set
7
8typedef struct jdbc_parms {
9 int CheckSize(int rows);
10 PCSZ Driver; // JDBC driver
11 PCSZ Url; // Driver URL
12 PCSZ User; // User connect info
13 PCSZ Pwd; // Password connect info
14//int Cto; // Connect timeout
15//int Qto; // Query timeout
16 int Version; // Driver version
17 int Fsize; // Fetch size
18 bool Scrollable; // Scrollable cursor
19} JDBCPARM, *PJPARM;
20
21/***********************************************************************/
22/* JDBC catalog function prototypes. */
23/***********************************************************************/
24#if defined(PROMPT_OK)
25char *JDBCCheckConnection(PGLOBAL g, PCSZ dsn, int cop);
26#endif // PROMPT_OK
27//PQRYRES JDBCDataSources(PGLOBAL g, int maxres, bool info);
28PQRYRES JDBCColumns(PGLOBAL g, PCSZ db, PCSZ table,
29 PCSZ colpat, int maxres, bool info, PJPARM sop);
30PQRYRES JDBCSrcCols(PGLOBAL g, PCSZ src, PJPARM sop);
31PQRYRES JDBCTables(PGLOBAL g, PCSZ db, PCSZ tabpat,
32 PCSZ tabtyp, int maxres, bool info, PJPARM sop);
33PQRYRES JDBCDrivers(PGLOBAL g, int maxres, bool info);
34
35#endif // __JDBCCAT_H
36