Shaping,
Somehow I'm missing context. When/where did you see run-fac? I just tried
the part from TUPLE: to init-db and it worked on both mac and pc. Was this
an error message?
On Fri, Nov 12, 2010 at 12:26 AM, Shaping <shap...@charter.net> wrote:
> Jim, can you give me more context for the bits below? I cannot find a
> definition for run-fac.
>
>
>
> Shaping
>
>
>
> *From:* Jim mack [mailto:j...@less2do.com]
> *Sent:* 2010-November-08, 12:11
> *To:* factor-talk@lists.sourceforge.net
> *Subject:* Re: [Factor-talk] Furnace
>
>
>
> ! This is a self contained test of creating a sqlite db. Click on autouse,
> paste & enter.
>
> TUPLE: entity id author date content ;
>
> entity "entity" {
> { "id" "ID" INTEGER +db-assigned-id+ }
> { "author" "AUTHOR" { VARCHAR 256 } +not-null+ } ! uid
> { "date" "DATE" TIMESTAMP +not-null+ }
> { "content" "CONTENT" TEXT +not-null+ }
> } define-persistent
>
> : blog-db ( -- db ) "adhoc" home prepend-path [ make-directories ] [
> "blogs.sqlite" append-path ] bi <sqlite-db> ;
> : with-blog-data ( quot -- ) '[ blog-db _ with-db ] call ; inline
> : init-db ( -- ) [
> entity ensure-table
> ] with-blog-data ;
>
> "adhoc" home prepend-path "Look in: " prepend .
>
> init-db
>
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
--
Jim
"I'm for extending the working Medicare program for our seniors all the way
back to contraception, so Americans can concentrate on living their lives
without fear of changing a job, going bankrupt from deductibles or fighting
HMO bureaucracy."
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk