You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/doc/tutorials/serdev/db_con_t.xml

35 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section id="db_con_t" xmlns:xi="http://www.w3.org/2001/XInclude">
<sectioninfo>
<revhistory>
<revision>
<revnumber>$Revision$</revnumber>
<date>$Date$</date>
</revision>
</revhistory>
</sectioninfo>
<title>Type <type>db_con_t</type></title>
<para>
This type represents a database connection, all database functions
(described below) use a variable of this type as one argument. In other
words, variable of <type>db_con_t</type> type serves as a handle for a
particular database connection.
</para>
<programlisting>
typedef struct db_con {
char* table; /* Default table to use */
void* con; /* Database connection */
void* res; /* Result of previous operation */
void* row; /* Internal, not for public use */
int connected; /* 1 if connection is established */
} db_con_t;
</programlisting>
<para>
There are no macros defined for <type>db_con_t</type> type.
</para>
</section>