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

Reply via email to