prelude: :gerbil/compiler/ssxi
package: std/db

(begin
  (declare-type
   std/db/dbi#connection::t
   (@struct-type std/db/dbi#connection::t #f 4 :init! ()))
  (declare-type std/db/dbi#connection? (@struct-pred std/db/dbi#connection::t))
  (declare-type
   std/db/dbi#make-connection
   (@struct-cons std/db/dbi#connection::t))
  (declare-type
   std/db/dbi#connection-e
   (@struct-getf std/db/dbi#connection::t 0 #f))
  (declare-type
   std/db/dbi#connection-txn-begin
   (@struct-getf std/db/dbi#connection::t 1 #f))
  (declare-type
   std/db/dbi#connection-txn-commit
   (@struct-getf std/db/dbi#connection::t 2 #f))
  (declare-type
   std/db/dbi#connection-txn-abort
   (@struct-getf std/db/dbi#connection::t 3 #f))
  (declare-type
   std/db/dbi#connection-e-set!
   (@struct-setf std/db/dbi#connection::t 0 #f))
  (declare-type
   std/db/dbi#connection-txn-begin-set!
   (@struct-setf std/db/dbi#connection::t 1 #f))
  (declare-type
   std/db/dbi#connection-txn-commit-set!
   (@struct-setf std/db/dbi#connection::t 2 #f))
  (declare-type
   std/db/dbi#connection-txn-abort-set!
   (@struct-setf std/db/dbi#connection::t 3 #f))
  (declare-type
   std/db/dbi#statement::t
   (@struct-type std/db/dbi#statement::t #f 1 #f ()))
  (declare-type std/db/dbi#statement? (@struct-pred std/db/dbi#statement::t))
  (declare-type
   std/db/dbi#make-statement
   (@struct-cons std/db/dbi#statement::t))
  (declare-type
   std/db/dbi#statement-e
   (@struct-getf std/db/dbi#statement::t 0 #f))
  (declare-type
   std/db/dbi#statement-e-set!
   (@struct-setf std/db/dbi#statement::t 0 #f))
  (declare-type
   std/db/dbi#connection:::init!
   (@lambda 2 struct-instance-init!))
  (declare-method
   std/db/dbi#connection::t
   :init!
   std/db/dbi#connection:::init!
   #f)
  (declare-type
   std/db/dbi#sql-error::t
   (@struct-type std/db/dbi#sql-error::t error::t 0 #!void ()))
  (declare-type std/db/dbi#sql-error? (@struct-pred std/db/dbi#sql-error::t))
  (declare-type
   std/db/dbi#make-sql-error
   (@struct-cons std/db/dbi#sql-error::t))
  (declare-type std/db/dbi#raise-sql-error (@lambda (2) #f))
  (declare-type std/db/dbi#sql-connect (@lambda (1) #f))
  (declare-type std/db/dbi#sql-close (@lambda 1 #f))
  (declare-type std/db/dbi#connection::destroy (@lambda 1 #f))
  (declare-method
   std/db/dbi#connection::t
   destroy
   std/db/dbi#connection::destroy
   #f)
  (declare-type std/db/dbi#sql-txn-do (@lambda 4 #f))
  (declare-type std/db/dbi#sql-txn-begin (@lambda 1 #f))
  (declare-type std/db/dbi#sql-txn-commit (@lambda 1 #f))
  (declare-type std/db/dbi#sql-txn-abort (@lambda 1 #f))
  (declare-type std/db/dbi#sql-prepare (@lambda 2 #f))
  (declare-type std/db/dbi#sql-finalize (@lambda 1 #f))
  (declare-type std/db/dbi#statement::destroy (@lambda 1 #f))
  (declare-method
   std/db/dbi#statement::t
   destroy
   std/db/dbi#statement::destroy
   #f)
  (declare-type std/db/dbi#sql-bind (@lambda (1) #f))
  (declare-type std/db/dbi#sql-clear (@lambda 1 #f))
  (declare-type std/db/dbi#sql-reset (@lambda 1 #f))
  (declare-type std/db/dbi#sql-reset/clear (@lambda 1 #f))
  (declare-type std/db/dbi#sql-eval-e (@lambda 4 #f))
  (declare-type std/db/dbi#sql-eval (@lambda (2) #f))
  (declare-type std/db/dbi#sql-eval-query (@lambda (2) #f))
  (declare-type std/db/dbi#sql-exec (@lambda 1 #f))
  (declare-type std/db/dbi#sql-query (@lambda 1 #f))
  (declare-type
   std/db/dbi#:iter::statement
   (@lambda 1 std/db/dbi#in-sql-query))
  (declare-type std/db/dbi#in-sql-query (@lambda 1 #f))
  (declare-type std/db/dbi#sql-columns (@lambda 1 #f)))
