-
Notifications
You must be signed in to change notification settings - Fork 14
/
ODBC.h
50 lines (41 loc) · 2.28 KB
/
ODBC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* $Id$
* Copyright (c) 1994,1995,1996,1997 Tim Bunce
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the Perl README file.
*/
#include "dbdodbc.h" /* Get SQL_* defs *before* loading DBIXS.h */
#define NEED_DBIXS_VERSION 93
#define PERL_NO_GET_CONTEXT
#include <DBIXS.h> /* from DBI. Load this after dbdodbc.h */
#include "dbivport.h" /* copied from DBI to maintain compatibility */
#include "dbdimp.h"
#include <dbd_xsh.h> /* from DBI. Load this after dbdodbc.h */
SV *odbc_get_info _((SV *dbh, int ftype));
int odbc_get_type_info _((SV *dbh, SV *sth, int ftype));
SV *odbc_col_attributes _((SV *sth, int colno, int desctype));
SV *odbc_cancel _((SV *sth));
int odbc_describe_col _((SV *sth, int colno,
char *ColumnName, I16 BufferLength, I16 *NameLength,
I16 *DataType, U32 *ColumnSize,
I16 *DecimalDigits, I16 *Nullable));
int odbc_db_columns _((SV *dbh, SV *sth,
SV *catalog, SV *schema, SV *table, SV *column));
int odbc_st_tables _((SV *dbh, SV *sth, SV *catalog, SV *schema, SV *table, SV *table_type));
int odbc_st_primary_keys _((SV *dbh, SV *sth, char *catalog, char *schema, char *table));
int odbc_get_statistics _((SV *dbh, SV *sth, char *CatalogName, char *SchemaName, char *TableName, int Unique));
int odbc_get_special_columns _((SV *dbh, SV *sth, int Identifier, char *CatalogName, char *SchemaName, char *TableName, int Scope, int Nullable));
int odbc_get_foreign_keys _((SV *dbh, SV *sth, char *PK_CatalogName, char *PK_SchemaName, char *PK_TableName, char *FK_CatalogName, char *FK_SchemaName, char *FK_TableName));
void dbd_error _((SV *h, RETCODE err_rc, char *what));
void dbd_error2 _((SV *h, RETCODE err_rc, char *what, HENV henv, HDBC hdbc, HSTMT hstmt));
SQLLEN dbd_db_execdirect _(( SV *dbh, SV *statement ));
IV odbc_st_lob_read(SV *sth, int colno, SV *data, UV length, IV type);
IV odbc_st_execute_for_fetch(SV *sth, SV *tuples, IV count, SV *tuple_status);
IV odbc_st_rowcount(SV *sth);
int dbd_st_statistics(SV *dbh, SV *sth, char *catalog, char *schema,
char *table, int unique, int quick);
int dbd_st_bind_col(SV *sth, imp_sth_t *imp_sth, SV *col, SV *ref,
IV type, SV *attribs);
AV* dbd_data_sources(SV *drh );
/* end of ODBC.h */