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)
 Describe this backend to the application.


Function Documentation

void qof_sqlite_provider_init ( void   ) 

Describe this backend to the application.

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 680 of file qof-sqlite.c.

00681 {
00682     QofBackendProvider *prov;
00683 
00684     ENTER (" ");
00685     prov = g_new0 (QofBackendProvider, 1);
00686     prov->provider_name = "QOF SQLite Backend Version 0.1";
00687     prov->access_method = ACCESS_METHOD;
00688     prov->partial_book_supported = TRUE;
00689     prov->backend_new = qsql_backend_new;
00690     prov->check_data_type = qsql_determine_file_type;
00691     prov->provider_free = qsql_provider_free;
00692     qof_backend_register_provider (prov);
00693     LEAVE (" ");
00694 }


Generated on Fri Sep 15 14:24:58 2006 for QOF by  doxygen 1.4.7