| | @@ -98,18 +98,22 @@ |
| 98 | 98 | typemethod writing {name definition} { |
| 99 | 99 | # Method for a user to declare a table its needs for storing |
| 100 | 100 | # persistent state, and the expected structure. A possibly |
| 101 | 101 | # previously existing definition is dropped. |
| 102 | 102 | |
| 103 | + log write 0 state "writing $name" ; # TODO move to level 5 or so |
| 104 | + |
| 103 | 105 | $mystate transaction { |
| 104 | 106 | catch { $mystate eval "DROP TABLE $name" } |
| 105 | 107 | $mystate eval "CREATE TABLE $name ( $definition )" |
| 106 | 108 | } |
| 107 | 109 | return |
| 108 | 110 | } |
| 109 | 111 | |
| 110 | 112 | typemethod reading {name} { |
| 113 | + log write 0 state "reading $name" ; # TODO move to level 5 or so |
| 114 | + |
| 111 | 115 | # Method for a user to declare a table it wishes to read |
| 112 | 116 | # from. A missing table is an internal error causing an |
| 113 | 117 | # immediate exit. |
| 114 | 118 | |
| 115 | 119 | set found [llength [$mystate eval { |
| 116 | 120 | |