| Kind | Covered | All | % |
| expression | 1 | 1 | 100.0 |
| branch | 0 | 0 | nil |
1 ;; -*- mode: Lisp; Syntax: Common-Lisp; -*-2 ;;;3 ;;; Copyright (c) 2006 by the authors.4 ;;;5 ;;; See LICENCE for details.6 7 (in-package :cl-user)8 9 (defpackage :cl-perec10 (:nicknames :prc)11 12 (:use :common-lisp13 :closer-mop14 :iterate15 :arnesi16 :bind17 :s-base6418 :computed-class19 :defclass-star20 :trivial-garbage21 :flexi-streams22 :local-time23 :parse-number24 :metacopy-with-contextl25 :cl-ppcre26 :cl-store27 :cl-containers28 :cl-rdbms)29 30 (:shadow #:log31 #:name32 #:set33 #:time34 #:form35 #:variable36 #:transaction37 #:float-type)38 39 (:shadowing-import-from :iterate40 #:finish)41 42 (:shadowing-import-from :cl-containers43 #:dequeue44 #:enqueue45 #:parent)46 47 (:shadowing-import-from :flexi-streams48 #:octets-to-string49 #:string-to-octets)50 51 (:shadowing-import-from :cl-rdbms52 #:update-index)53 54 (:export ;; defining persistent classes55 #:defpclass56 #:defpclass*57 #:find-class58 #:abstract-p59 #:cache-p60 #:prefetch-p61 #:index-p62 #:unique-p63 #:required-p64 65 ;; defining persistent associations66 #:defassociation67 #:defassociation*68 #:find-association69 70 ;; defining persistent types71 #:defptype72 #:find-type73 #:normalized-type-of74 #:parse-type75 #:primitive-type-p76 #:destructure-type77 #:def-member-type78 79 ;; persistent class meta objects80 #:persistent-class81 #:persistent-association82 #:persistent-slot-definition83 #:persistent-direct-slot-definition84 #:persistent-effective-slot-definition85 #:persistent-association-end-slot-definition86 #:persistent-association-end-direct-slot-definition87 #:persistent-association-end-effective-slot-definition88 #:persistent-type89 #:integer-type90 #:float-type91 #:string-type92 #:text-type93 #:member-type94 #:serialized-type95 #:symbol-type96 97 ;; primitve types98 #:t99 #:serialized100 #:unbound101 #:null102 #:boolean103 #:integer-16104 #:integer-32105 #:integer-64106 #:integer107 #:float-32108 #:float-64109 #:float110 #:double111 #:double-float112 #:number113 #:string114 #:text115 #:symbol116 #:symbol*117 #:date118 #:time119 #:timestamp120 #:duration121 #:form122 #:member123 #:set124 #:or125 126 ;; persistent classes, all persistent-classes are valid slot types127 #:persistent-object128 #:persistent-set129 130 ;; most of the transaction API is inherited from cl-rdbms131 #:with-database132 #:*database*133 #:with-transaction134 #:with-transaction*135 #:*transaction*136 #:mark-transaction-for-commit-only137 #:mark-transaction-for-rollback-only138 #:transaction-timestamp139 #:transaction-mixin140 #:transaction-with-commit-hooks-mixin141 #:register-commit-hook142 143 ;; managing persistent instances144 #:with-making-persistent-instances145 #:with-making-transient-instances146 #:make-persistent147 #:make-transient148 #:oid-of149 #:persistent-p150 #:created-p151 #:modified-p152 #:deleted-p153 #:instance-in-transaction-p154 #:transaction-of155 #:p-eq156 #:load-instance157 #:revive-instance158 #:purge-instance159 #:purge-instances160 #:print-persistent-instance161 162 ;; most of the collection API is inherited from cl-containers 163 #:insert-item164 #:first-item165 #:delete-item166 #:size167 #:empty-p168 #:empty!169 #:search-for-item170 #:iterate-items171 #:list-of172 173 ;; query174 #:query175 #:copy-query176 #:query-builder177 #:simple-query-builder178 #:select179 #:select-first-matching180 #:select-last-matching181 #:select-instance182 #:select-instances183 #:select-similar-instance184 #:select-similar-instances185 #:make-query186 #:current-query-variable-of187 #:add-lexical-variable188 #:add-query-variable189 #:add-assert190 #:add-collect191 #:execute-query192 #:unique193 #:flat194 #:result-set195 #:result-type-of196 #:define-query-macro197 #:like198 #:avg199 #:sum200 #:purge201 202 ;; scroll203 #:scroll204 #:elements205 #:page206 #:first-page!207 #:previous-page!208 #:next-page!209 #:last-page!210 #:page-count211 #:page-size212 #:element-count213 #:fixed-size-scroll214 #:simple-scroll215 216 ;; turning cache on and off217 #:with-caching-slot-values218 #:without-caching-slot-values219 220 ;; laziness221 #:with-lazy-collections222 #:without-lazy-collections223 224 ;; database and cache access225 #:with-bypassing-database-access226 #:without-bypassing-database-access))227 228 (in-package :cl-perec)229 230 (import-sql-syntax-node-names)231 (import-sql-constructor-names)232 233 (define-computed-universe compute-as)