db.tuples: fix a couple of examples in tutorial article a little

db4
Keita Haga 2010-12-06 06:12:33 +09:00
parent f5c556a709
commit 7bd8c3deba
1 changed files with 2 additions and 4 deletions

View File

@ -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 .