1 #ifndef __BACKSQL_SQL_WRAP_H__
2 #define __BACKSQL_SQL_WRAP_H__
5 * Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
7 * Redistribution and use in source and binary forms are permitted only
8 * as authorized by the OpenLDAP Public License. A copy of this
9 * license is available at http://www.OpenLDAP.org/license.html or
10 * in file LICENSE in the top-level directory of the distribution.
14 #include "sql-types.h"
16 RETCODE backsql_Prepare(SQLHDBC dbh,SQLHSTMT *sth,char* query,int timeout);
17 RETCODE backsql_BindParamStr(SQLHSTMT sth,int par_ind,char *str,int maxlen);
18 RETCODE backsql_BindParamID(SQLHSTMT sth,int par_ind,unsigned long *id);
19 RETCODE backsql_BindRowAsStrings(SQLHSTMT sth,BACKSQL_ROW_NTS *row);
20 RETCODE backsql_FreeRow(BACKSQL_ROW_NTS *row);
21 void backsql_PrintErrors(SQLHENV henv, SQLHDBC hdbc, SQLHSTMT sth,int rc);
23 int backsql_init_db_env(backsql_info *si);
24 int backsql_free_db_env(backsql_info *si);
25 SQLHDBC backsql_get_db_conn(Backend *be,Connection *ldapc);
26 int backsql_free_db_conn(Backend *be,Connection *ldapc);