1 ! Copyright (C) 2009 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors combinators.short-circuit db db.errors
4 db.postgresql db.postgresql.errors io.files.unique kernel
5 namespaces tools.test db.tester continuations ;
9 [ "drop table foo;" sql-command ] ignore-errors
10 [ "drop table ship;" sql-command ] ignore-errors
13 "insert into foo (id) values('1');" sql-command
15 { [ sql-table-missing? ] [ table>> "foo" = ] } 1&&
19 "create table ship(id integer);" sql-command
20 "create table ship(id integer);" sql-command
22 { [ sql-table-exists? ] [ table>> "ship" = ] } 1&&
26 "create table foo(id) lol;" sql-command