This file is indexed.

/usr/share/doc/cl-sql/html/db-auto-sync.html is in cl-sql 6.5.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>*DB-AUTO-SYNC*</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="CLSQL Users' Guide" /><link rel="up" href="ref-oodml.html" title="Object Oriented Data Manipulation Language (OODML)" /><link rel="prev" href="ref-oodml.html" title="Object Oriented Data Manipulation Language (OODML)" /><link rel="next" href="default-caching.html" title="*DEFAULT-CACHING*" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">*DB-AUTO-SYNC*</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ref-oodml.html">Prev</a> </td><th width="60%" align="center">Object Oriented Data Manipulation Language (OODML)</th><td width="20%" align="right"> <a accesskey="n" href="default-caching.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="db-auto-sync"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>*DB-AUTO-SYNC* — Enables SQL storage during Lisp object creation.<strong>Variable</strong></p></div><div class="refsect1"><a id="idp60491344"></a><h2>Value Type</h2><p>
	Boolean
      </p></div><div class="refsect1"><a id="idp60492688"></a><h2>Initial Value</h2><p><code class="constant">NIL</code></p></div><div class="refsect1"><a id="idp60494160"></a><h2>Description</h2><p>
	When this variable is <code class="constant">T</code> an instance is stored in the SQL
	database when the instance is created by
	<code class="function">make-instance</code>. Furthermore, the
	appropriate database records are updated whenever the slots of
	a <a class="glossterm" href="glossary.html#gloss-view-class"><em class="glossterm">View Class</em></a>
	instance are modified.
      </p><p> 
        When this variable is <code class="constant">NIL</code>, which is the default value,
        <span class="application"><span class="emphasis"><em>CLSQL</em></span></span> behaves like <span class="application">CommonSQL</span>: instances of view classes
        are stored or updated in the SQL database only when <a class="link" href="update-records-from-instance.html" title="UPDATE-RECORDS-FROM-INSTANCE"><code class="function">update-record-from-instance</code></a>,
        <a class="link" href="update-record-from-slot.html" title="UPDATE-RECORD-FROM-SLOT"><code class="function">update-record-from-slot</code></a>
        or <a class="link" href="update-record-from-slots.html" title="UPDATE-RECORD-FROM-SLOTS"><code class="function">update-record-from-slots</code></a>
        are called.
      </p></div><div class="refsect1"><a id="idp61303104"></a><h2>Examples</h2><pre class="screen">
	(let ((instance (make-instance 'foo)))
	  (update-records-from-instance instance))

	;; is equivalent to

	(let ((*db-auto-sync* t))
	  (make-instance 'foo))
          
        ;; and 

        (progn 
          (setf (slot-value instance 'bar) "baz")
          (update-record-from-slot instance 'bar))

        ;; is equivalent to 

        (let ((*db-auto-sync* t))
          (setf (slot-value instance 'bar) "baz"))
      </pre></div><div class="refsect1"><a id="idp61305136"></a><h2>Affected By</h2><p>None.</p></div><div class="refsect1"><a id="idp55864272"></a><h2>See Also</h2><table border="0" summary="Simple list" class="simplelist"><tr><td><a class="link" href="update-records-from-instance.html" title="UPDATE-RECORDS-FROM-INSTANCE"><code class="function">update-records-from-instance</code></a></td></tr><tr><td><a class="link" href="update-record-from-slot.html" title="UPDATE-RECORD-FROM-SLOT"><code class="function">update-record-from-slot</code></a></td></tr><tr><td><a class="link" href="update-record-from-slots.html" title="UPDATE-RECORD-FROM-SLOTS"><code class="function">update-record-from-slots</code></a></td></tr></table></div><div class="refsect1"><a id="idp55869696"></a><h2>Notes</h2><p>This is a CLSQL extension to the CommonSQL API.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ref-oodml.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ref-oodml.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="default-caching.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Object Oriented Data Manipulation Language (OODML) </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> *DEFAULT-CACHING*</td></tr></table></div></body></html>