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 } } }
|
||||
{ edition 1 }
|
||||
{ cover-price 13.37 }
|
||||
} book set
|
||||
""" }
|
||||
} book set""" }
|
||||
"Now we've created a book. Let's save it to the database."
|
||||
{ $code """USING: db db.sqlite fry io.files.temp ;
|
||||
: with-book-tutorial ( quot -- )
|
||||
|
@ -243,8 +242,7 @@ T{ book
|
|||
[
|
||||
book recreate-table
|
||||
book get insert-tuple
|
||||
] with-book-tutorial
|
||||
""" }
|
||||
] with-book-tutorial""" }
|
||||
"Is it really there?"
|
||||
{ $code """[
|
||||
T{ book { title "Factor for Sheeple" } } select-tuples .
|
||||
|
|
Loading…
Reference in New Issue