db.tuples: fix a couple of examples in tutorial article a little
parent
f5c556a709
commit
7bd8c3deba
|
@ -233,8 +233,7 @@ T{ book
|
||||||
{ date-published T{ timestamp { year 2009 } { month 3 } { day 3 } } }
|
{ date-published T{ timestamp { year 2009 } { month 3 } { day 3 } } }
|
||||||
{ edition 1 }
|
{ edition 1 }
|
||||||
{ cover-price 13.37 }
|
{ cover-price 13.37 }
|
||||||
} book set
|
} book set""" }
|
||||||
""" }
|
|
||||||
"Now we've created a book. Let's save it to the database."
|
"Now we've created a book. Let's save it to the database."
|
||||||
{ $code """USING: db db.sqlite fry io.files.temp ;
|
{ $code """USING: db db.sqlite fry io.files.temp ;
|
||||||
: with-book-tutorial ( quot -- )
|
: with-book-tutorial ( quot -- )
|
||||||
|
@ -243,8 +242,7 @@ T{ book
|
||||||
[
|
[
|
||||||
book recreate-table
|
book recreate-table
|
||||||
book get insert-tuple
|
book get insert-tuple
|
||||||
] with-book-tutorial
|
] with-book-tutorial""" }
|
||||||
""" }
|
|
||||||
"Is it really there?"
|
"Is it really there?"
|
||||||
{ $code """[
|
{ $code """[
|
||||||
T{ book { title "Factor for Sheeple" } } select-tuples .
|
T{ book { title "Factor for Sheeple" } } select-tuples .
|
||||||
|
|
Loading…
Reference in New Issue