Changeset 2977 in project
- Timestamp:
- 02/02/07 01:33:06 (14 years ago)
- Location:
- sqlite3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sqlite3/doc.scm
r2307 r2977 7 7 (author (url "http://www.chust.org/" "Thomas Chust")) 8 8 (history 9 (version "1.5.6" "Replaced deprecated synch operations [Kon Lovett]") 9 10 (version "1.5.5" "Correction in the documentation, added sqlite3:with-transaction") 10 11 (version "1.5.4" "Typo fixed thanks to the new imports checking code") -
sqlite3/sqlite3.html
r2307 r2977 1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <!-- Generated by eggdoc Revision: 1. 19-->2 <!-- Generated by eggdoc Revision: 1.20 --> 3 3 <html> 4 4 <head> … … 65 65 /* font-size: 1.2em; */ 66 66 } 67 H3, H4, H5, H6 { 67 H3 { 68 color: #113; 69 margin-bottom: 0.5em; 70 } 71 H4, H5, H6 { 68 72 color: #113; 69 73 margin-bottom: 1.0em; … … 154 158 <h3>Version</h3> 155 159 <ul> 160 <li>1.5.6 Replaced deprecated synch operations [Kon Lovett]</li> 156 161 <li>1.5.5 Correction in the documentation, added sqlite3:with-transaction</li> 157 162 <li>1.5.4 Typo fixed thanks to the new imports checking code</li> -
sqlite3/sqlite3.scm
r2307 r2977 222 222 223 223 (define sqlite3:collations 224 (make-mutex 'sqlite3:collations)) 225 226 (mutex-specific-set! sqlite3:collations (make-hash-table)) 224 (make-synchronized-object (make-hash-table) 'sqlite3:collations) ) 227 225 228 226 (define-external (chicken_sqlite3_collation_stub (scheme-object qn) … … 243 241 (set! r 244 242 ((vector-ref 245 (call /synch246 sqlite3:collations(cut hash-table-tree-ref <> qn))243 (call-with/synch sqlite3:collations 244 (cut hash-table-tree-ref <> qn)) 247 245 1) 248 246 a b))))) … … 278 276 (else 279 277 (let ((qn (list (pointer->address (slot-ref db 'this)) name))) 280 (call /synch sqlite3:collations278 (call-with/synch sqlite3:collations 281 279 (lambda (col) 282 280 (cond … … 296 294 ((sqlite3:error 'sqlite3:define-collation db name proc) s))) 297 295 (else 298 (call /synch sqlite3:collations296 (call-with/synch sqlite3:collations 299 297 (cut hash-table-tree-set! <> qn (vector qn proc))))))) 300 298 … … 366 364 367 365 (define sqlite3:functions 368 (make-mutex 'sqlite3:functions)) 369 370 (mutex-specific-set! sqlite3:functions (make-hash-table)) 366 (make-synchronized-object (make-hash-table) 'sqlite3:functions) ) 371 367 372 368 (define sqlite3_user_data … … 386 382 ((apply 387 383 (vector-ref 388 (call /synch sqlite3:functions384 (call-with/synch sqlite3:functions 389 385 (cut hash-table-tree-ref <> (sqlite3_user_data ctx))) 390 386 1) … … 397 393 398 394 (define sqlite3:seeds 399 (make-mutex 'sqlite3:seeds)) 400 401 (mutex-specific-set! sqlite3:seeds (make-hash-table)) 395 (make-synchronized-object (make-hash-table) 'sqlite3:seeds)) 402 396 403 397 (define sqlite3_aggregate_context … … 416 410 (print-error-message 417 411 exn (current-error-port) "Error in step of SQL function:") 418 (let ((info (call /synch sqlite3:functions412 (let ((info (call-with/synch sqlite3:functions 419 413 (cut hash-table-tree-ref 420 414 <> (sqlite3_user_data ctx))))) 421 (call /synch sqlite3:seeds415 (call-with/synch sqlite3:seeds 422 416 (cut hash-table-update!/default 423 417 <> (sqlite3_aggregate_context ctx) … … 441 435 (print-error-message 442 436 exn (current-error-port) "Error in final of SQL function:") 443 (let ((info (call /synch sqlite3:functions437 (let ((info (call-with/synch sqlite3:functions 444 438 (cut hash-table-tree-ref 445 439 <> (sqlite3_user_data ctx))))) 446 440 (cond 447 441 (((vector-ref info 3) 448 (call /synch sqlite3:seeds442 (call-with/synch sqlite3:seeds 449 443 (cut hash-table-ref/default <> agc (vector-ref info 2)))) 450 444 => (cut sqlite3:set-result! ctx <>)) … … 452 446 (sqlite3:set-result! ctx)))))) 453 447 (lambda () 454 (call /synch sqlite3:seeds448 (call-with/synch sqlite3:seeds 455 449 (cut hash-table-delete! <> agc)) 456 450 (q (void)))))))) … … 477 471 ((sqlite3:error 'sqlite3:define-function db name n proc) s))) 478 472 (else 479 (call /synch sqlite3:functions473 (call-with/synch sqlite3:functions 480 474 (cut hash-table-tree-set! <> qn (vector qn proc))))))) 481 475 … … 507 501 s))) 508 502 (else 509 (call /synch sqlite3:functions503 (call-with/synch sqlite3:functions 510 504 (cut hash-table-tree-set! 511 505 <> qn (vector qn step-proc seed final-proc))))))) … … 558 552 (release-qns (lambda (_ info) 559 553 (object-release (vector-ref info 0))))) 560 (call /synch sqlite3:collations554 (call-with/synch sqlite3:collations 561 555 (lambda (collations) 562 556 (cond … … 564 558 => (cut hash-table-walk <> release-qns))) 565 559 (hash-table-delete! collations id))) 566 (call /synch sqlite3:functions560 (call-with/synch sqlite3:functions 567 561 (lambda (functions) 568 562 (cond -
sqlite3/sqlite3.setup
r2307 r2977 10 10 `(,so-file 11 11 "sqlite3.html" "egg.jpg") 12 '((version "1.5. 5") (documentation "sqlite3.html")))12 '((version "1.5.6") (documentation "sqlite3.html")))
Note: See TracChangeset
for help on using the changeset viewer.