Both Server and Local databases?
Charles Yeomans
yeomans at desuetude.com
Tue Sep 9 11:22:48 CDT 2003
On Tuesday, September 9, 2003, at 05:12 AM, Ruslan Zasukhin wrote:
> on 9/9/03 12:06 PM, Mike Albert at malbert at asia.apple.com wrote:
>
>> I have done this but had to comment out one of the lines in the
>> condition
>> because I get compilation errors..... the V4RB Client plugin doesn't
>> understand the syntax....the "new VDatabase"...it expects some
>> additional
>> parameters.
>
> Aha I see problem.
>
> Then you can try to use conditional compilation for now.
> I have hear RB can do this.
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 Yeomans
More information about the Valentina
mailing list