X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fdb-interface.lisp;h=b46280a7d65c657f6b1eee7641ddb866a9aad949;hb=refs%2Fheads%2F6.8.0;hp=9c17b544dd0268993a6022e13b3677fadb107959;hpb=96cc4dd98e77b8a1f83fa850e3348219c957b7ef;p=clsql.git diff --git a/sql/db-interface.lisp b/sql/db-interface.lisp index 9c17b54..b46280a 100644 --- a/sql/db-interface.lisp +++ b/sql/db-interface.lisp @@ -167,6 +167,12 @@ if unable to destory.")) (defgeneric database-sequence-last (name database) (:documentation "Select the last value in sequence NAME in DATABASE.")) +(defgeneric database-last-autoincrement-id (database table column) + (:documentation "Many databases have the notion of an auto-increment + id; i.e. a sequence implicitly on a table. This function should + return that ID." )) + + (defgeneric database-start-transaction (database) (:documentation "Start a transaction in DATABASE.") (:method ((database t)) @@ -374,8 +380,8 @@ of TYPE_NAME (keyword) PRECISION SCALE NULLABLE.") (defgeneric db-type-has-auto-increment? (db-type) (:method (db-type) - (declare (ignore db-type) - nil)) + (declare (ignore db-type)) + nil) (:documentation "NIL [default] if database-type supports auto-incrementing columns.")) ;;; Large objects support (Marc Battyani) @@ -492,3 +498,8 @@ for foreign libraries \(in addition to the default places).") "Adds the pathspec PATH \(which should denote a directory) to the list *FOREIGN-LIBRARY-SEARCH-PATHS*." (pushnew path *foreign-library-search-paths* :test #'equal)) + +(defgeneric database-escape-backslashes (database) + (:documentation "Should backslases in a string be escaped? ") + (:method ( database ) + nil))