Both Server and Local databases?

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Sep 9 19:24:24 CDT 2003


on 9/9/03 6:22 PM, Charles Yeomans at yeomans at desuetude.com wrote:

> Correct.  You would define a Boolean constant kIsLocalDatabase and then
> do something like
> 
> #if kIsLocalDatabase
> db  = new VDatabase
> #else
> db = new VDatabase(host, ...)
> #endif
> 
> However, it remains a problem that for a local database, we must use
> VCursor with the parameters kV_Server, kV_NoLocks, kV_Random.  I'm not
> so excited about wrapping every call to VDatabase.SQLSelect as above.

Charles,

But for local db you can with the same success use other parameters!!!

        (kServer, kReadWrite, kForward)

Record locks will work for LOCAL db also !

Just for some developers adding record locks cause problems with their old
code, because they do not take into account locks and do selects not very
accurate. You see?


If you write accurate code then it must be the same for LOCAL and remote
cursors also.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list