Locking SQL database for single user only
Derek Atkins
warlord at MIT.EDU
Mon Sep 20 14:32:09 EDT 2010
Christian Stimming <stimming at tuhh.de> writes:
> Zitat von Phil Longstaff <plongstaff at rogers.com>:
>
>> For locking purposes, I think I will add an "accessors" table with 1
>> 2048-char field. For single user mode, this must have at most 1 row in
>> the table. For multi-user mode (in the future), this can keep track of
>> which users are currently logged in. The big char field can encode user
>> name, machine, login time, whatever is wanted.
>
> Sounds fine.
>
> However, if that "accessors" table should really contain the
> information about who is currently accessing the database, I would
> definitely prefer distinct data fields over one big char field that
> would need to be parsed again (e.g. for translations). On the other
> hand, the additional columns can probably be added later once it
> becomes clear which ones are useful.
Also useful in order to display the "Open Anyways" in order to, e.g.,
overwrite the entry from a crashed application.
> Regards,
>
> Christian
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list