File: server.frontend.html

package info (click to toggle)
yaz 5.37.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,568 kB
  • sloc: xml: 124,223; ansic: 73,221; sh: 5,738; tcl: 2,189; makefile: 1,274; yacc: 382
file content (36 lines) | stat: -rw-r--r-- 3,485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html><head><meta charset="ISO-8859-1"><title>2.The Database Frontend</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="YAZ User's Guide and Reference"><link rel="up" href="server.html" title="Chapter4.Generic server"><link rel="prev" href="server.html" title="Chapter4.Generic server"><link rel="next" href="server.backend.html" title="3.The Backend API"></head><body><link rel="stylesheet" type="text/css" href="common/style1.css"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">2.The Database Frontend</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="server.html">Prev</a></td><th width="60%" align="center">Chapter4.Generic server</th><td width="20%" align="right"><a accesskey="n" href="server.backend.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="server.frontend"></a>2.The Database Frontend</h2></div></div></div><p>
    We refer to this software as a generic database frontend. Your
    database system is the <span class="emphasis"><em>backend database</em></span>, and the
    interface between the two is called the <span class="emphasis"><em>backend API</em></span>.
    The backend API consists of a small number of function handlers and
    structure definitions. You are required to provide the
    <code class="function">main()</code> routine for the server (which can be
    quite simple), as well as a set of handlers to match each of the
    prototypes.
    The interface functions that you write can use any mechanism you like
    to communicate with your database system: You might link the whole
    thing together with your database application and access it by
    function calls; you might use IPC to talk to a database server
    somewhere; or you might link with third-party software that handles
    the communication for you (like a commercial database client library).
    At any rate, the handlers will perform the tasks of:
   </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
     Initialization.
    </p></li><li class="listitem"><p>
     Searching.
    </p></li><li class="listitem"><p>
     Fetching records.
    </p></li><li class="listitem"><p>
     Scanning the database index (optional - if you wish to implement SCAN).
    </p></li><li class="listitem"><p>
     Extended Services (optional).
    </p></li><li class="listitem"><p>
     Result-Set Delete (optional).
    </p></li><li class="listitem"><p>
     Result-Set Sort (optional).
    </p></li><li class="listitem"><p>
     Return Explain for SRU (optional).
    </p></li></ul></div><p>
    (more functions will be added in time to support as much of
    Z39.50-1995 as possible).
   </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="server.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="server.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="server.backend.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter4.Generic server</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">3.The Backend API</td></tr></table></div></body></html>