Happy happy joy joy, www.infodrom.ffis.de is up!
[infodrom.org/www.infodrom.org] / src / projects / sqllib / index.wml
1 #include <infodrom.style>
2 #include <projects.style>
3
4 <projectpg project="sqllib">
5
6 <h3>The SQL Library</h3>
7
8 This library provides a lightwind programming interface to SQL
9 databases.  We have recognized that it is very easy to write programs
10 using SQL in Perl since the DBD/DBI driver is very easy to use and is
11 able to connect to any SQL database.  However, when using C you're
12 lost and need to write your application specifically for one SQL
13 database, losing the possibility to switch the backend database. <p>
14
15 The benefit of using this library instead of connecting to a given
16 database directly shouldn't need to be pointed out.  By using it you
17 would be free to exchange the underlying database without changing
18 all your applications.  All you would have to do is to add
19 "SQL=&lt;ab&gt;" to your Makefile and recompile it. <p>
20
21 &lt;ab&gt; is the abbreviation of the database in question.  It is
22 stolen
23 from the DBD/DBI interface: <p>
24
25 <pre>
26      Pg    - PostgreSQL
27      mSQL  - MiniSQL
28      MySQL - MySQL
29 </pre>
30
31   Since this interface is very small and easy to handle please find
32   documentation for all routines in the sql.h header file.  It only
33   covers a small subset of what each specific database provides, but
34   this way they are exchangable. <p>
35
36   There is still work to be done.  Some queries aren't compatible
37   through the SQL databases since they come with their own additions.
38   For example, mSQL provides "CLIKE" for case-insensitive LIKE
39   statements while PostgreSQL uses the "*~" operator.  It would be
40   quite nice if noc_sql_query() would translate the query into the
41   proper SQL slang. <p>
42
43 </projectpg>
44
45 # Local variables:
46 # mode: html
47 # mode: auto-fill
48 # end: