If you look through the tests in ``basis/db/tuples/tuples-tests.factor``
you can see some uses of foreign keys:

https://github.com/factor/factor/blob/master/basis/db/tuples/tuples-tests.factor

    annotation-schema-foreign-key
    annotation-schema-foreign-key-not-null
    annotation-schema-cascade
    annotation-schema-restrict

The annotation tuple has a foreign key to the paste table through
``paste-id`` with various use-cases tested.

I'm not sure if we have any good documentation for it (couldn't find in my
cursory glance), sorry about that.

Best,
John.





On Thu, Aug 18, 2016 at 8:48 AM, Georg Simon <georg.si...@auge.de> wrote:

> Is there a database type for foreign keys ?
> Or how can I use foreign keys ?
>
> ------------------------------------------------------------
> ------------------
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to