@@ -205,11 +205,13 @@ functor
205
205
let db =
206
206
db
207
207
|> add_row " bar" " bar:1"
208
- (Row. add 0L Db_names. ref (String " bar:1" )
208
+ (Row. add 0L Db_names. ref
209
+ (Schema.Value. string " bar:1" )
209
210
(Row. add 0L " foos" (Set [] ) Row. empty)
210
211
)
211
212
|> add_row " foo" " foo:1"
212
- (Row. add 0L Db_names. ref (String " foo:1" )
213
+ (Row. add 0L Db_names. ref
214
+ (Schema.Value. string " foo:1" )
213
215
(Row. add 0L " bars" (Set [] ) Row. empty)
214
216
)
215
217
|> set_field " foo" " foo:1" " bars" (add_to_set " bar:1" (Set [] ))
@@ -219,7 +221,7 @@ functor
219
221
Table. find " bar:1" (TableSet. find " bar" (Database. tableset db))
220
222
in
221
223
let bar_foos = Row. find " foos" bar_1 in
222
- if bar_foos <> Set [" foo:1" ] then
224
+ if bar_foos <> Schema.Value. set [" foo:1" ] then
223
225
failwith_fmt
224
226
" check_many_to_many: bar(bar:1).foos expected ('foo:1') got %s"
225
227
(Schema.Value. marshal bar_foos) ;
@@ -235,13 +237,13 @@ functor
235
237
failwith_fmt " check_many_to_many: bar(bar:1).foos expected () got %s"
236
238
(Schema.Value. marshal bar_foos) ;
237
239
(* add 'bar' to foo.bars *)
238
- let db = set_field " foo" " foo:1" " bars" (Set [" bar:1" ]) db in
240
+ let db = set_field " foo" " foo:1" " bars" (Schema.Value. set [" bar:1" ]) db in
239
241
(* check that 'bar.foos' includes 'foo' *)
240
242
let bar_1 =
241
243
Table. find " bar:1" (TableSet. find " bar" (Database. tableset db))
242
244
in
243
245
let bar_foos = Row. find " foos" bar_1 in
244
- if bar_foos <> Set [" foo:1" ] then
246
+ if bar_foos <> Schema.Value. set [" foo:1" ] then
245
247
failwith_fmt
246
248
" check_many_to_many: bar(bar:1).foos expected ('foo:1') got %s - 2"
247
249
(Schema.Value. marshal bar_foos) ;
@@ -269,8 +271,9 @@ functor
269
271
let row = Db_cache_types.Table. find r table in
270
272
let s =
271
273
Db_cache_types.Row. fold_over_recent g
272
- (fun k _ (_ , cached ) acc ->
273
- Printf. sprintf " %s %s=%s" acc k cached
274
+ (fun k _ cached acc ->
275
+ Printf. sprintf " %s %s=%s" acc k
276
+ (Schema.CachedValue. string_of cached)
274
277
)
275
278
row " "
276
279
in
0 commit comments