I was going over https://software-lab.de/doc/tut.html#db and looks like I
should just go with the Entity/Relation model.
Thanks Alex.
On Tue, Apr 16, 2019 at 10:15 PM Alexander Burger
wrote:
> On Tue, Apr 16, 2019 at 03:57:14PM -0700, C K Kashyap wrote:
> > Thanks Joh-Tob,
> > I think
On Tue, Apr 16, 2019 at 03:57:14PM -0700, C K Kashyap wrote:
> Thanks Joh-Tob,
> I think properties work for me. I was thinking that symbol would map to
> "key" but that need not be the case. My goal is to figure out a way to
> store records that are 4 tuple - "Entity name", "Attribute", "Value",
Hi Kashyap,
> I tried to implement key-value store/get. I am
> not sure how to enumerate all the keys though.
A key/value storage can be done very easily.
> (pool "test.db")
You store values under keys directly in the DB root object by passing NIL as the
tree:
(store NIL "KEY" "VALUE")
>
>
>
>
>
> Ursprüngliche Nachricht
>
>
>
> Von: ckkash...@gmail.com
> Gesendet: 16. April 2019 16:42
> An: picolisp@software-lab.de
> Antworten: picolisp@software-lab.de
> Betreff: Re: Database question
>
>
> Hi Alex,
>
>
>
;Root" ?
If you want to get the complete property list of any symbol (internal or in the
DB) just call 'getl on it
Ursprüngliche Nachricht
Von: ckkash...@gmail.com
Gesendet: 16. April 2019 16:42
An: picolisp@software-lab.de
Antworten: picolisp@software-lab.de
Betreff: Re
Hi Alex,
Does this look reasonable? I tried to implement key-value store/get. I am
not sure how to enumerate all the keys though.
(pool "test.db")
(set *DB "ROOT")
(de kv-add (k v)
(let nv (new T)
(set nv v)
(put *DB k nv)
On Sun, Apr 14, 2019 at 12:54:19PM -0700, C K Kashyap wrote:
> Is the builtin database in picolisp tied to OOP? The documentation seems to
> indicate it.
Not necessarily. The DB consists of three independent layers.
Persistent "external" symbols are the base. They are directly in the core
Hi,
Is the builtin database in picolisp tied to OOP? The documentation seems to
indicate it. Is there a way I could use the DB to just accrue immutable
facts (just like Clojure Datomic works)?
Is there a non-OOP sample that I could use as a starting point?
Regards,
Kashyap
Hi Alex thanks,
I suspected that the fact that I was scanning two separate indexes
prevented proper ordering - from reading the select tutorial (very good
piece that one) - but I wanted to confirm.
Added Aux and just replaced the select with your db line and it works.
On Mon, May 1, 2017 at
Hi Henrik,
> (class +UrlTag +Macropisobj)
> (rel id(+Key +Number))
> (rel url (+Ref +Link) NIL (+Url))
> (rel usr (+Ref +Link) NIL (+User))
> (rel tag (+Aux +Ref +Link) (usr) NIL (+Tag))
> ...
> SELECT * FROM UrlTag WHERE usr = Usr ORDER BY id DESC LIMIT 0,50
>
> I
That could be because of +Key.
Am 01.05.2017 02:18 schrieb "Henrik Sarvell" :
> Hi list,
>
> I've been looking through the docs and all my notes but it looks like I'm
> not managing to get the result I want no matter how I try.
>
> I've got this E/R:
>
> (class +UrlTag
Hi list,
I've been looking through the docs and all my notes but it looks like I'm
not managing to get the result I want no matter how I try.
I've got this E/R:
(class +UrlTag +Macropisobj)
(rel id(+Key +Number))
(rel url (+Ref +Link) NIL (+Url))
(rel usr (+Ref +Link) NIL
12 matches
Mail list logo