[V4RB] Binary link error

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Aug 11 23:52:15 CDT 2004


On 8/11/04 11:37 PM, "Erik Mueller-Harder"
<valentina-list at vermontsoftworks.com> wrote:

> Hi, Ruslan --
> 
> On Aug 11, 2004, at 14:11, Ruslan Zasukhin wrote:
> 
>> Okay, I see where is problem.
>> 
>> You try to work via Classes way, i.e. Static way.
>> You create tables and link BEFORE you have do db.Create()
>> 
>> Right now primary our tests targeted to DYNAMIC way,
>> I.e. Db is opened and we tell it create/drop objects.
>> 
>> Classes way is more hard, and not all parts work yet.
>> 
>> So you can try to use BinaryLink without classes.
> 
> I'd like to, but I don't see yet how to get a persistent database with
> your dynamic method.  There are many examples of dynamically creating
> and dropping tables, but I haven't been able to find any example that
> shows how to open an existing database with this dynamic API.

Hmm, very simple

    dim db as Vdatabase

    db.Open()


Now you can do 

    tbl = db.Table( "name" )
    fld = tbl.Field( "fieldname" )

The same was in 1.x

Just no classes.

> I love the idea of dropping the objectptr fields -- and, even more, of
> dropping my many-to-many link tables.  My new database would have about
> a dozen 1:M relations as well as another dozen or so M:M join tables,
> and it would be GREAT to replace these with direct binary links at the
> database level.

Absolutely right.

Here few benefits

1) binary link will be more effective and eat less disk space than M:M ink
table.

2) design of structure become more natural.
    Tables (objects) do not have intrusived pointers to OTHER tables.

Right now as Relational model, so ObjectPtr fields, require from you CHANGES
of some Table if you add/remove link.

Using Binary Link, we have STABLE and CLEAN definition of tables!!!
I think this is the biggest advantage of Binary Link,


> So will there be -- or is there now -- a way to get this persistence
> via your new API?  Or should I stick with the older class method?  And,
> if I need to stick with the class approach, will your new binary links
> work with it?
> 
> Thanks for any clarification you can give!

Yes, of course I must make that YOUR example with classes way will work.
I will try to fix this on this week,


-- 
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-beta mailing list