{ "the name of a database column that maps to the slot" } { "a database type (see " { $link "db.types" } ")" }
} "Throws an error if the slot name (column one from each row) is not a slot in the tuple or its superclases." }
{ $examples
- { $unchecked-example "USING: db.tuples db.types ;"
+ { $code "USING: db.tuples db.types ;"
"TUPLE: boat id year name ;"
"boat \"BOAT\" {"
" { \"id\" \"ID\" +db-assigned-id+ }"
" { \"year\" \"YEAR\" INTEGER }"
" { \"name\" \"NAME\" TEXT }"
"} define-persistent"
- ""
}
} ;
{ "timer" timer } }\r
{ $description "Creates a timer that calls the quotation repeatedly, using " { $snippet "duration" } " as the frequency. The first call of " { $snippet "quot" } " will happen immediately. If the quotation throws an exception, the timer will stop." }\r
{ $examples\r
- { $unchecked-example\r
+ { $code\r
"USING: timers io calendar ;"\r
"""[ "Hi Buddy." print flush ] 10 seconds every drop"""\r
- ""\r
}\r
} ;\r
\r
{ $values { "quot" quotation } { "delay-duration" duration } { "timer" timer } }\r
{ $description "Sleeps for " { $snippet "duration" } " and then calls a " { $snippet "quot" } ". The user may cancel the timer before " { $snippet "quot" } " runs. This timer is not repeated." }\r
{ $examples\r
- { $unchecked-example\r
+ { $code\r
"USING: timers io calendar ;"\r
"""[ "Break's over!" print flush ] 15 minutes later drop"""\r
- ""\r
}\r
} ;\r
\r
{ "timer" timer } }\r
{ $description "Creates a timer that calls " { $snippet "quot" } " repeatedly, waiting " { $snippet "duration" } " before calling " { $snippet "quot" } " the first time and then waiting " { $snippet "duration" } " between further calls. If the quotation throws an exception, the timer will stop." }\r
{ $examples\r
- { $unchecked-example\r
+ { $code\r
"USING: timers io calendar ;"\r
"""[ "Hi Buddy." print flush ] 10 seconds every drop"""\r
- ""\r
}\r
} ;\r
\r