]> git.sur5r.net Git - openldap/blob - servers/slapd/back-sql/back-sql.h
Summary of changes:
[openldap] / servers / slapd / back-sql / back-sql.h
1 #ifndef __BACKSQL_H__
2 #define __BACKSQL_H__
3
4 /*
5  *       Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
6  *
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.
11  */
12
13
14 #include "external.h"
15 #include "sql-types.h"
16 #define BACKSQL_MAX_DN_LEN 255
17
18 typedef struct
19 {
20  char *dbhost;
21  int dbport;
22  char *dbuser;
23  char *dbpasswd;
24  char *dbname;
25  //SQL condition for subtree searches differs in syntax:
26  //"LIKE CONCAT('%',?)" or "LIKE '%'+?" or smth else
27  char *subtree_cond;
28  char *oc_query,*at_query;
29  char *insentry_query,*delentry_query;
30  char *id_query;
31  char *upper_func;
32  Avlnode *db_conns;
33  Avlnode *oc_by_name;
34  Avlnode *oc_by_id;
35  int schema_loaded;
36  ldap_pvt_thread_mutex_t dbconn_mutex;
37  ldap_pvt_thread_mutex_t schema_mutex;
38  SQLHENV db_env;
39 }backsql_info;
40
41 #endif