<!DOCTYPE File SYSTEM "doc.dtd">
<File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/lqrverno.c">
<H1 class=name>LQT_CheckDatabaseVersion</H1>
<H2 class="category">Class: Database/Database
</H2>
<pre class="decl">

API void
LQT_CheckDatabaseVersion(db)
    t_LQTEXT_Database *db;
</pre>

<h2 class=Purpose>Purpose</H2>
Checks that the current database is compatible with this version of
the library.  Some versions of liblqtext may have a backwards
compatibility mode, which this function will enable.
This routine is called automatically whenever an lq-text database
is opened.
<H2 class="notes">Notes</H2>
The liblqtext library is capable of maintaining backward
compatibility with earlier versions; for example, Release 1.13 
could read a database created with Release 1.12; this feature is
not presently included, however.  In practice, it's almost always
possible to index the data again rather than using backwards
compatibility modes, and performance is usually then better.
<Errors>
Fatal error if the database is incompatible with the current version
of the lqtext library.
</Function>
</Entry>
