2 USING: db.pools tools.test continuations io.files io.files.temp
3 io.directories namespaces accessors kernel math destructors ;
7 { 1 0 } [ [ ] with-db-pool ] must-infer-as
9 { 1 0 } [ [ ] with-pooled-db ] must-infer-as
11 ! Test behavior after image save/load
14 [ "pool-test.db" temp-file delete-file ] ignore-errors
16 [ ] [ "pool-test.db" temp-file <sqlite-db> <db-pool> "pool" set ] unit-test
18 [ ] [ "pool" get expired>> t >>expired drop ] unit-test
20 [ ] [ 1000 [ "pool" get [ ] with-pooled-db ] times ] unit-test
22 [ ] [ "pool" get dispose ] unit-test