Re: Adding relation

2013-11-16 Thread Henrik Sarvell
I apologize for the confusion, the issue was completely unrelated to
the core functionality, it's all good.

On Sat, Nov 16, 2013 at 1:08 AM, Alexander Burger a...@software-lab.de wrote:
 Hi Henrik,

 Hi, I'm trying to add a relation, at first I added (rel newRel
 (+String)) to the class, and then put newRel in the dbs.

 Right, though adding to 'dbs' makes only sense for indexes (i.e. as you
 did with the (rel newRel (+Ref +String)) below).


 That didn't work though, information refused to get saved so I changed
 the rel call to (rel newRel (+Ref +String)) but still the database
 refuses to store anything in newRel when using for instance put!.

 Strange. This should definitely work. There must be some other problem.
 Can you try to debug it more?

 Is there an error? For example, 'put!' will complain in the 'has'
 method if the relation is not known.

 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Adding relation

2013-11-15 Thread Henrik Sarvell
Hi, I'm trying to add a relation, at first I added (rel newRel
(+String)) to the class, and then put newRel in the dbs.

That didn't work though, information refused to get saved so I changed
the rel call to (rel newRel (+Ref +String)) but still the database
refuses to store anything in newRel when using for instance put!.

What went wrong here and how can I fix it? AFAIK normally when I add
relations like this it just works.
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Adding relation

2013-11-15 Thread Alexander Burger
Hi Henrik,

 Hi, I'm trying to add a relation, at first I added (rel newRel
 (+String)) to the class, and then put newRel in the dbs.

Right, though adding to 'dbs' makes only sense for indexes (i.e. as you
did with the (rel newRel (+Ref +String)) below).


 That didn't work though, information refused to get saved so I changed
 the rel call to (rel newRel (+Ref +String)) but still the database
 refuses to store anything in newRel when using for instance put!.

Strange. This should definitely work. There must be some other problem.
Can you try to debug it more?

Is there an error? For example, 'put!' will complain in the 'has'
method if the relation is not known.

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe