db_con_t.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="db_con_t" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <revhistory>
  7. <revision>
  8. <revnumber>$Revision$</revnumber>
  9. <date>$Date$</date>
  10. </revision>
  11. </revhistory>
  12. </sectioninfo>
  13. <title>Type <type>db_con_t</type></title>
  14. <para>
  15. This type represents a database connection, all database functions
  16. (described below) use a variable of this type as one argument. In other
  17. words, variable of <type>db_con_t</type> type serves as a handle for a
  18. particular database connection.
  19. </para>
  20. <programlisting>
  21. typedef struct db_con {
  22. char* table; /* Default table to use */
  23. void* con; /* Database connection */
  24. void* res; /* Result of previous operation */
  25. void* row; /* Internal, not for public use */
  26. int connected; /* 1 if connection is established */
  27. } db_con_t;
  28. </programlisting>
  29. <para>
  30. There are no macros defined for <type>db_con_t</type> type.
  31. </para>
  32. </section>