QOF-backend-SQLite outline
[Backends: Permanent storage for QOF entities.]


Detailed Description

This is a prototype only, it is not yet fully functional. This backend is only to be used by embedded systems where libxml2 is too large - other, larger, systems will be able to use a more comprehensive libgda backend that can connect with a variety of databases using plugins.


Files

file  qof-sqlite.h
 Public interface of qof-backend-sqlite.

Functions

void qof_sqlite_provider_init (void)
 Initialises the SQLite backend.


Function Documentation

void qof_sqlite_provider_init ( void   ) 

Initialises the SQLite backend.

Sets QOF SQLite Backend Version 0.1, access method = sqlite:

The ID in all SQLite tables created by QOF is the GUID of the entity, expressed as a hexadecimal string.

The version number only changes if:

  1. QOF_OBJECT_VERSION changes
  2. The QofBackendProvider struct is modified in QOF to support new members and SQLite can support the new function, or
  3. The QofBackendOption settings are modified.

Initialises the backend and provides access to the functions that will load and save the data. Initialises default values for the QofBackendOption KvpFrame.

At present, qof_sqlite has no QofBackendOption options and therefore no strings that are translatable.

Definition at line 864 of file qof-sqlite.c.

00865 {
00866     QofBackendProvider *prov;
00867 
00868     ENTER (" ");
00869     prov = g_new0 (QofBackendProvider, 1);
00870     prov->provider_name = "QOF SQLite Backend Version 0.2";
00871     prov->access_method = ACCESS_METHOD;
00872     prov->partial_book_supported = TRUE;
00873     prov->backend_new = qsql_backend_new;
00874     prov->check_data_type = qsql_determine_file_type;
00875     prov->provider_free = qsql_provider_free;
00876     qof_backend_register_provider (prov);
00877     LEAVE (" ");
00878 }


Generated on Sat Apr 21 11:41:11 2007 for QOF by  doxygen 1.5.1