Coverage report: /home/ellis/comp/core/lib/rdb/schema.lisp
Kind | Covered | All | % |
expression | 0 | 28 | 0.0 |
branch | 0 | 4 | 0.0 |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; schema.lisp --- RDB Schema Implementation
8
(defschema rdb-schema (schema)
9
((:default (octet-vector . octet-vector))))
11
(defschema rdb-object-schema (object-schema) ())
13
;; Note that we don't use SIMPLE-CONS-COLUMN here because the NAME slot of
14
;; columns is stored in the underlying RDB-CF structure object.
15
(defclass rdb-column (cons-column) ()
17
:type (cons 'octet-vector 'octet-vector)))
19
(defun cf-to-field (cf)
20
(make-field :name (name cf)
21
:type (cons 'octet-vector 'octet-vector)))
23
(defclass rdb-data-source (data-source)
24
((db :type rdb-database :initarg :db :accessor db)
25
(schema :type rdb-schema :initarg :schema :accessor schema)))
27
(defmethod initialize-instance :after ((self rdb-data-source) &key)
28
(unless (or (slot-boundp self 'schema) (not (slot-boundp self 'db)))
29
(setf (schema self) (schema (db self)))))