"The internal generic implementation for checking if
database type library loaded successfully."))
-(defgeneric database-type (database)
- (:documentation
- "Returns database type")
- (:method (database)
- (signal-no-database-error database)))
-
-
(defgeneric database-initialize-database-type (database-type)
(:documentation
"The internal generic implementation of initialize-database-type."))
t)
(:documentation "T [default] if database-type supports views."))
+(defgeneric db-type-default-case (db-type)
+ (:method (db-type)
+ (declare (ignore db-type))
+ ;; By default, CommonSQL converts identifiers to UPPER case.
+ :upper)
+ (:documentation ":upper [default] if means identifiers mapped to UPPER case SQL like CommonSQL API. However, Postgresql maps identifiers to lower case, so PostgreSQL uses a value of :lower for this result."))
+
+(defgeneric db-type-has-fancy-math? (db-type)
+ (:method (db-type)
+ (declare (ignore db-type))
+ nil)
+ (:documentation "NIL [default] if database-type does not have fancy math."))
+
(defgeneric db-type-has-subqueries? (db-type)
(:method (db-type)
(declare (ignore db-type))
(defgeneric db-type-has-boolean-where? (db-type)
(:method (db-type)
(declare (ignore db-type))
- ;; SQL92 has boolean where
+ ;; SQL99 has boolean where
t)
(:documentation "T [default] if database-type supports boolean WHERE clause, such as 'WHERE MARRIED'."))