! Copyright (C) 2005, 2008 Chris Double, Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: alien arrays assocs classes compiler db
-hashtables io.files io.files.tmp kernel math math.parser namespaces
+hashtables io.files kernel math math.parser namespaces
prettyprint sequences strings tuples alien.c-types
continuations db.sqlite.lib db.sqlite.ffi db.tuples
-words combinators.lib db.types combinators tools.walker
+words combinators.lib db.types combinators
combinators.cleave io namespaces.lib ;
IN: db.sqlite
: with-sqlite ( path quot -- )
sqlite-db swap with-db ; inline
-: with-tmp-sqlite ( quot -- )
- ".db" [
- swap with-sqlite
- ] with-tmpfile ;
-
TUPLE: sqlite-statement ;
TUPLE: sqlite-result-set has-more? ;