Changeset 15347 in project


Ignore:
Timestamp:
08/07/09 10:32:00 (10 years ago)
Author:
Thomas Chust
bzr:base-revision:
chust@web.de-20090806223835-g0snt5f6wtkgrxwg
bzr:committer:
Thomas Chust <chust@web.de>
bzr:file-ids:

Makefile 4989@fca3e652-9b03-0410-8d7b-ac86a6ce46c4:sqlite3%2Ftags%2F1.5.9%2FMakefile
doc.scm 4989@fca3e652-9b03-0410-8d7b-ac86a6ce46c4:sqlite3%2Ftags%2F1.5.9%2Fdoc.scm
sqlite3.html 4989@fca3e652-9b03-0410-8d7b-ac86a6ce46c4:sqlite3%2Ftags%2F1.5.9%2Fsqlite3.html
sqlite3.scm 4989@fca3e652-9b03-0410-8d7b-ac86a6ce46c4:sqlite3%2Ftags%2F1.5.9%2Fsqlite3.scm
sqlite3.setup 4989@fca3e652-9b03-0410-8d7b-ac86a6ce46c4:sqlite3%2Ftags%2F1.5.9%2Fsqlite3.setup
tests/run.scm sqlite3.scm-20090806135642-4ijg0ujxlfdmodmf-2
bzr:mapping-version:
v4
bzr:merge:

chust@web.de-20090807084543-0k93k145degvpz8r
bzr:repository-uuid:
fca3e652-9b03-0410-8d7b-ac86a6ce46c4
bzr:revision-id:
chust@web.de-20090807084745-n1gf84i4nk0xwd62
bzr:revno:
23
bzr:revprop:branch-nick:
release/4/sqlite3/trunk
bzr:root:
release/4/sqlite3/trunk
bzr:text-parents:

Makefile chust@web.de-20090806144351-ew266bq108o4vbqu
doc.scm chust@web.de-20090806223639-6e1xgb7n3glpk9nb
sqlite3.html chust@web.de-20090806223639-6e1xgb7n3glpk9nb
sqlite3.scm chust@web.de-20090806223639-6e1xgb7n3glpk9nb
sqlite3.setup chust@web.de-20090806144351-ew266bq108o4vbqu
tests/run.scm chust@web.de-20090806223639-6e1xgb7n3glpk9nb
bzr:text-revisions:

Makefile chust@web.de-20090807084543-0k93k145degvpz8r
doc.scm chust@web.de-20090807084543-0k93k145degvpz8r
sqlite3.html chust@web.de-20090807084543-0k93k145degvpz8r
sqlite3.scm chust@web.de-20090807083651-p63mut3xxgonfh03
sqlite3.setup chust@web.de-20090807084543-0k93k145degvpz8r
tests/run.scm chust@web.de-20090807083710-02qom8xa48u11tdq
bzr:timestamp:
2009-08-07 10:47:45.490000010 +0200
bzr:user-agent:
bzr1.17+bzr-svn0.6.3
svn:original-date:
2009-08-07T08:47:45.490000Z
Message:

sqlite3: Merged bindings of database memory statistics functions.

Location:
release/4/sqlite3/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • release/4/sqlite3/trunk/Makefile

    r15334 r15347  
    1212
    1313NAME=sqlite3
    14 VERSION=3.2.1
     14VERSION=3.3.1
    1515
    1616.PHONY: all clean
  • release/4/sqlite3/trunk/doc.scm

    r15344 r15347  
    248248            (signature "procedure" ("(map-row PROC STATEMENT . PARAMETERS) " (& "rArr") " LIST"))
    249249            (signature "procedure" ("(map-row PROC DATABASE SQL . PARAMETERS) " (& "rArr") " LIST")))
    250           (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and " (tt "PROC") " is applied to them. The results of these applications are collected into a list."))
     250          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and " (tt "PROC") " is applied to them. The results of these applications are collected into a list.")))
    251251
    252252      (subsection "Utility functions"
     
    264264
    265265        (procedure ("(database-version) " (& "rArr") " STRING")
    266           (p "Returns a string identifying the version of SQLite in use.")))))
     266          (p "Returns a string identifying the version of SQLite in use."))
     267
     268        (procedure ("(database-memory-used) " (& "rArr") " CARDINAL-INTEGER")
     269          (p "Returns the amount of memory currently in use by the database engine."))
     270
     271        (procedure ("(database-memory-highwater [RESET?]) " (& "rArr") " CARDINAL-INTEGER")
     272          (p "Returns the maximum amount of memory that was in use by the database engine since the counter was last reset or since the program started. Resets the counter if " (tt "RESET?") " is not " (tt "#f") ". " (tt "RESET?") " defaults to " (tt "#f") "."))))
    267273
    268274    (history
     275      (version "3.3.1" "Added bindings for database memory statistics")
    269276      (version "3.3.0" "Switched to using " (tt "(sql-null)") " for " (tt "NULL") " values")
    270277      (version "3.2.1" "Added a test suite")
  • release/4/sqlite3/trunk/sqlite3.html

    r15344 r15347  
    460460<br /><strong>procedure:</strong> (map-row PROC DATABASE SQL . PARAMETERS) &rArr; LIST</dt>
    461461<dd>
    462 <p>(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and <tt>PROC</tt> is applied to them. The results of these applications are collected into a list.</p></dd>
     462<p>(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and <tt>PROC</tt> is applied to them. The results of these applications are collected into a list.</p></dd></div>
    463463<div class="subsection">
    464464<h4>Utility functions</h4>
     
    476476<dt class="definition"><strong>procedure:</strong> (database-version) &rArr; STRING</dt>
    477477<dd>
    478 <p>Returns a string identifying the version of SQLite in use.</p></dd></div></div></div>
     478<p>Returns a string identifying the version of SQLite in use.</p></dd>
     479<dt class="definition"><strong>procedure:</strong> (database-memory-used) &rArr; CARDINAL-INTEGER</dt>
     480<dd>
     481<p>Returns the amount of memory currently in use by the database engine.</p></dd>
     482<dt class="definition"><strong>procedure:</strong> (database-memory-highwater [RESET?]) &rArr; CARDINAL-INTEGER</dt>
     483<dd>
     484<p>Returns the maximum amount of memory that was in use by the database engine since the counter was last reset or since the program started. Resets the counter if <tt>RESET?</tt> is not <tt>#f</tt>. <tt>RESET?</tt> defaults to <tt>#f</tt>.</p></dd></div></div>
    479485<div class="section">
    480486<h3>Version</h3>
    481487<ul>
     488<li>3.3.1 Added bindings for database memory statistics</li>
    482489<li>3.3.0 Switched to using <tt>(sql-null)</tt> for <tt>NULL</tt> values</li>
    483490<li>3.2.1 Added a test suite</li>
  • release/4/sqlite3/trunk/sqlite3.scm

    r15344 r15347  
    7272    sql-complete?
    7373    database-version
     74    database-memory-used
     75    database-memory-highwater
    7476    enable-shared-cache!
    7577  )
     
    10391041  (foreign-lambda c-string "sqlite3_libversion"))
    10401042
     1043;; Return the amount of memory currently allocated by the database
     1044(define database-memory-used
     1045  (foreign-lambda integer "sqlite3_memory_used"))
     1046
     1047;; Return the maximum amount of memory allocated by the database since
     1048;; the counter was last reset
     1049(define (database-memory-highwater #!optional reset?)
     1050  ((foreign-lambda integer "sqlite3_memory_highwater" bool) reset?))
     1051
    10411052;; Enables (disables) the sharing of the database cache and schema data
    10421053;; structures between connections to the same database.
  • release/4/sqlite3/trunk/sqlite3.setup

    r15334 r15347  
    88  'sqlite3
    99  '("sqlite3.so" "sqlite3.import.so" "sqlite3-static.o")
    10   '((version "3.2.1")
     10  '((version "3.3.1")
    1111    (static "sqlite3-static.o")
    1212    (documentation "sqlite3.html" "egg.jpg")))
  • release/4/sqlite3/trunk/tests/run.scm

    r15344 r15347  
    289289
    290290  )
     291
     292(print "Database memory still used: " (database-memory-used))
     293(print "Database memory high water mark: " (database-memory-highwater))
Note: See TracChangeset for help on using the changeset viewer.