| 1 | <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 5 | <meta name="Author" content="Peter Harvey"> |
| 6 | <meta name="GENERATOR" content="Mozilla/4.77C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.4.2 i686) [Netscape]"> |
| 7 | </head> |
| 8 | <body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000"> |
| 9 | <img SRC="unixODBC.gif" height=32 width=32><font face="Arial,Helvetica"><font size=+4>unixODBC</font></font> |
| 10 | <br> |
| 11 | <hr WIDTH="100%"> |
| 12 | <center><b><font face="Arial,Helvetica"><font size=+3>PROGRAMMER MANUAL</font></font></b> |
| 13 | <br><b><font face="Arial,Helvetica">Peter Harvey</font></b> |
| 14 | <br><b><font face="Arial,Helvetica">19.DEC.01</font></b></center> |
| 15 | |
| 16 | <p><b><font face="Arial,Helvetica">Introduction</font></b><font face="Arial,Helvetica"></font> |
| 17 | <p><font face="Arial,Helvetica">Welcome to the unixODBC Programmer |
| 18 | Manual. This manual is a starting point for a programmer who is interested |
| 19 | in developing an application which *uses* ODBC. This manual does not address |
| 20 | Driver development or any other development which is internal to the ODBC sub-system.</font><font face="Arial,Helvetica"></font> |
| 21 | <p><b><font face="Arial,Helvetica">Why Use ODBC?</font></b><font face="Arial,Helvetica"></font> |
| 22 | <p><font face="Arial,Helvetica">ODBC provides a portable Application |
| 23 | Programmers Interface (API) with which to access data. This means that |
| 24 | your data access code will recompile without changes on all popular platforms. |
| 25 | In practice; portability is sometimes hampered by incomplete drivers. However; |
| 26 | the core ODBC functionality (the most used functionality) is always supported |
| 27 | any working driver. Other advantages to developing with ODBC include;</font> |
| 28 | <ul> |
| 29 | <li> |
| 30 | <font face="Arial,Helvetica">most popular API of its kind</font></li> |
| 31 | |
| 32 | <li> |
| 33 | <font face="Arial,Helvetica">most mature API of its kind</font></li> |
| 34 | |
| 35 | <li> |
| 36 | <font face="Arial,Helvetica">skills more reusable/easily found</font></li> |
| 37 | |
| 38 | <li> |
| 39 | <font face="Arial,Helvetica">hundreds, if not thousands, of applications |
| 40 | use it</font></li> |
| 41 | |
| 42 | <li> |
| 43 | <font face="Arial,Helvetica">available on all majour platforms</font></li> |
| 44 | |
| 45 | <li> |
| 46 | <font face="Arial,Helvetica">easy to change data storage solution/vendor |
| 47 | (ah; freedom)</font></li> |
| 48 | |
| 49 | <li> |
| 50 | <font face="Arial,Helvetica">easy to upscale data storage (developer and |
| 51 | end-user)</font></li> |
| 52 | |
| 53 | <li> |
| 54 | <font face="Arial,Helvetica">arguably the most complete API of its kind</font></li> |
| 55 | |
| 56 | <li> |
| 57 | <font face="Arial,Helvetica">many books on the subject</font></li> |
| 58 | |
| 59 | <li> |
| 60 | <font face="Arial,Helvetica">greater support base</font></li> |
| 61 | </ul> |
| 62 | <b><font face="Arial,Helvetica">Languages Supported</font></b><font face="Arial,Helvetica"></font> |
| 63 | <p><font face="Arial,Helvetica">ODBC is based upon a C API. C++ programmers |
| 64 | will find a number of C++ class libraries for using the ODBC API. |
| 65 | These are wrappers - using the C API internally but can provide |
| 66 | a much nicer way to use ODBC for C++ programmers.</font><font face="Arial,Helvetica"></font> |
| 67 | <p><font face="Arial,Helvetica">Any language which can call a C API should |
| 68 | be able to use the ODBC API and most languages, such as PHP and Perl, |
| 69 | provide an interface to work with ODBC but these are not covered in this |
| 70 | manual.</font><font face="Arial,Helvetica"></font> |
| 71 | <p><b><font face="Arial,Helvetica">Architecture</font></b><font face="Arial,Helvetica"></font> |
| 72 | <p><font face="Arial,Helvetica">Client Libraries</font><font face="Arial,Helvetica"></font> |
| 73 | <p><font face="Arial,Helvetica">These are client libraries which are specific |
| 74 | to the particular database being used. These, often, provide a C API of |
| 75 | their own which is used by Driver developers. In some cases these exist |
| 76 | inside of the Driver itself or are statically linked into the Driver. Any |
| 77 | Client Libraries required by a Driver will be a part of the installation |
| 78 | of your Driver or will simply be a requirement for the installation of |
| 79 | your Driver. Sometimes Client Libraries must be configured before any ODBC configuration.</font><font face="Arial,Helvetica"></font> |
| 80 | <p><font face="Arial,Helvetica">Driver</font><font face="Arial,Helvetica"></font> |
| 81 | <p><font face="Arial,Helvetica">Driver Manager</font><font face="Arial,Helvetica"></font> |
| 82 | <p><font face="Arial,Helvetica">The Driver Manager acts as a gateway to |
| 83 | the ODBC drivers. The main advantage to having a Driver Manager is |
| 84 | that the end-user can configure the Driver Manager to use a different Driver |
| 85 | than the one original conceived of by the programmer.</font><font face="Arial,Helvetica"></font> |
| 86 | <p><font face="Arial,Helvetica">It as virtually identical functions declarations |
| 87 | as a Driver which means that one *could* create an application</font> |
| 88 | <br><font face="Arial,Helvetica"></font> |
| 89 | <p> |
| 90 | <hr WIDTH="100%"> |
| 91 | <br> |
| 92 | <br> |
| 93 | </body> |
| 94 | </html> |