Overview
Comment: | wip |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.70001-multi-db-rebased |
Files: | files | file ages | folders |
SHA1: |
45bc17bcaf0818e3bcbdc2295e18a174 |
User & Date: | matt on 2022-02-27 20:21:44 |
Other Links: | branch diff | manifest | tags |
Context
2022-03-02
| ||
19:46 | wip check-in: 3c8cc5078c user: matt tags: v1.70001-multi-db-rebased | |
2022-02-27
| ||
20:21 | wip check-in: 45bc17bcaf user: matt tags: v1.70001-multi-db-rebased | |
18:26 | Updates to simplerun from v2.0001 branch, multi-db beginnings. check-in: 0f90afb706 user: matt tags: v1.70001-multi-db-rebased | |
Changes
Modified db.scm from [3e4a888113] to [dea5f62aee].
︙ | |||
48 49 50 51 52 53 54 | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - + - - + + + | (import dbmod) ;;====================================================================== ;; R E C O R D S ;;====================================================================== ;; each db entry is a pair ( db . dbfilepath ) |
︙ | |||
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | + + + + + + + + + + + - + - - + - - - - + | (sqlite3:for-each-row (lambda (lup) (set! last-update-time lup)) db "select max(lup) from ( select max(last_update) as lup from tests union select max(last_update) as lup from runs);") last-update-time)) ;)) ;; set up a single db (e.g. main.db, 1.db ... etc.) ;; (define (db:setup-db dbstructs run-id) (let* ((dbname (db:run-id->dbname run-id)) (dbstruct (or (hash-table-ref/default dbstructs dbname #f) (make-dbr:dbstruct)))) (db:open-db dbstruct run-id areapath: areapath do-sync: do-sync) (hash-table-set! dbstructs dbname dbstruct) dbstruct)) ;; Make the dbstruct, setup up auxillary db's and call for main db at least once ;; ;; called in http-transport and replicated in rmt.scm for *local* access. ;; (define (db:setup do-sync #!key (areapath #f)) ;; (cond |
︙ | |||
1142 1143 1144 1145 1146 1147 1148 | 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 | - + - - - - - - - - - - - - - - + + + + + + + + + + + + - | (stack-push! (dbr:dbstruct-dbstack dbstruct) tmpdb)) options) data-synced)) ;; Sync all changed db's ;; |
︙ |