X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fdb-interface.lisp;h=385e08ba07b7b0811b11f5a29f03f16228b4e040;hp=64841728855094f6461f77a9c03a4d4ab4f5b805;hb=8c6c643e3debe875bd14408cc3129d8148dfd125;hpb=5be31565b7d87b90f0e79a9e61af84ad05e12920 diff --git a/sql/db-interface.lisp b/sql/db-interface.lisp index 6484172..385e08b 100644 --- a/sql/db-interface.lisp +++ b/sql/db-interface.lisp @@ -85,7 +85,7 @@ implications, since many databases will require the query to be executed in full to answer this question. If the query produced no results then nil is returned for all values that would have been returned otherwise. If an error occurs during query execution, the -function should signal a clsql-sql-error.")) +function should signal a sql-database-data-error.")) (defgeneric database-dump-result-set (result-set database) (:method (result-set (database t)) @@ -158,13 +158,19 @@ if unable to destory.")) (:documentation "Select the last value in sequence NAME in DATABASE.")) (defgeneric database-start-transaction (database) - (:documentation "Start a transaction in DATABASE.")) + (:documentation "Start a transaction in DATABASE.") + (:method ((database t)) + (signal-no-database-error database))) (defgeneric database-commit-transaction (database) - (:documentation "Commit current transaction in DATABASE.")) + (:documentation "Commit current transaction in DATABASE.") + (:method ((database t)) + (signal-no-database-error database))) (defgeneric database-abort-transaction (database) - (:documentation "Abort current transaction in DATABASE.")) + (:documentation "Abort current transaction in DATABASE.") + (:method ((database t)) + (signal-no-database-error database))) (defgeneric database-get-type-specifier (type args database) (:documentation "Return the type SQL type specifier as a string, for