QofBackend / QofSession changes in next commit.
Neil Williams
linux at codehelp.co.uk
Wed Aug 31 19:08:49 EDT 2005
On Tuesday 30 August 2005 11:30 pm, Derek Atkins wrote:
> This sounds reasonable to me... And will solve the SQLite issue --
> the only question is: how do we "order" be backends so that we can
> get certain types in preference to others? In particular for
> File -> SaveAs
Good question - first thoughts are:
1. Keep to the same backend to write as was used to load where possible.
2. Use markers in the QofBook (like partial books) where necessary /
supported.
Other situations will need a formal QofSession call - if the
QofBackendProvider list is made readable (maybe a foreach) and/or if the
SaveAs routines pass the ID/name of the selected QofBackendProvider to a new
function:
qof_session_change_backend(QofSession *, const char *backend_provider_name);
or
qof_session_change_backend(QofSession *, QofBackendProvider *);
This should probably allow changing the access_method at the same time.
I'll look into it.
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050901/dfbd2b28/attachment.bin
More information about the gnucash-devel
mailing list