VXCMD_Client, how to create db.

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Aug 23 17:15:58 CDT 2003


on 8/23/03 4:57 PM, Ron at rbarber at yhb.att.ne.jp wrote:

Hi Ron,

>> I am working now on VXCMD Client for Vserver.
>> Practically all is done.
>> 
>> 
>> Database_New was need only if you want encrypted db.
>> Now we need more parameters for VXCMD Client, so I see this as
>> 
>> FOR CLIENT:
>> 
>> dbRef = Database_New( [inHost], [inUserName], [inUserPassword], [Port] )
>> dbRef = Database_Create( dbPath, Mode, SegmentSize, dbRef )
>> dbRef = Database_Open( dbPath, dbRef )
>> 
>> 
>> 1) for VXCMD_CLEINT you always MUST create at first dbRef specifying
>> connection parameters.
>> 
>> 2) Open() will MUST get this dbRef.
>> (in VXCMD Standalone, dbRef is optional)
> 
> I'm  not sure I understand this. Do you mean in the _current_ vxcmd? or
> future non-client/server versions?

Both. Now and no changes in future.

>> 3) as you see we need add dbRef to Create(), as result parameters Mode,
>> SegmentSize will not be optional.
> 
> I suppose these extra parameters are not much of a problem to add to new
> apps but retrofitting them to current apps will require some work for us, if
> I understand you correctly. Similar to the recent addition of kServer and
> kNoLock.

Correct. But I think Open() is called just in 1-2 places.
In any case CLIENT require changes in your code, because you must specify
HOST, User, ...

>> As idea, I can see other function
>> 
>> Database_RemoteCreate( dbRef, dbPath, [Mode], [SegmentSize] )
>> 
>> Although I prefer not add new functions...
> 
> Why are you against new functions? Because they are inconsistent with other
> Val products or they are harder to maintain or ...?

Both!

>> ------------
>> More: Please inform me who need VXCMD Client in nearest time,
>> and what platform you will use, e.g
>> MetaCard Carbon ...
>> MetaCard Macho ...
> 
> I don't foresee a need for this kind of feature in my own apps but I'm glad
> that Val is moving ahead with this vital area. It will mean more success for
> Val and therefore also those that use it.

You will need this if you will need multi-user app,
I.e. Use of Vserver.

-- 
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