Login
History of src/fsl_db.c of 864de83096c3b088
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/fsl_db.c at check-in 864de83096c3b088

2025-03-20
18:49
Remove a too-strict assert() in fsl_db_get_textv() reported by Martin G. in /chat. Add SQLITE_BUSY == FSL_RC_LOCKED to the error code translations which happens in fsl__db_errcode() (as that's what triggered the assert). file: [fd94e22eaa] check-in: [1dacda897c] user: stephan branch: trunk, size: 57988
2024-09-16
21:05
Docs and cleanups related to the new fsl_db hooks. file: [8b81920476] check-in: [a189336bdd] user: stephan branch: db-hooks, size: 58005
20:34
Remove the fsl_db::f (fsl_cx*) member. This touches a lot of code lines but was not anywhere near as invasive as expected. file: [188e2af353] check-in: [f00a5025f5] user: stephan branch: db-hooks, size: 57234
17:41
More work towards moving fsl_cx-specific pieces of fsl_db internals into fsl_cx-side hooks. file: [eadadb0c32] check-in: [7fce228983] user: stephan branch: db-hooks, size: 58111
17:06
More work on the db hooks. file: [d906772119] check-in: [12b3603cd3] user: stephan branch: db-hooks, size: 57792
16:02
Initial work on adding some hooks to the fsl_db API, the goal being to eliminate the hard dependency of fsl_cx in fsl_db internals. This compiles but is untested (not counting this commit, which will do at least a minimal test) but other matters require attention so this is being stashed for later development. file: [de959a0446] check-in: [1c4ec95d75] user: stephan branch: db-hooks, size: 59360
12:21
Add --date-override and --allow-older flags to f-ci. file: [c85dc8df13] check-in: [580ec03020] user: stephan branch: trunk, size: 58666
2024-02-03
16:18
More tinkering with the SEE integration, but this reveals that we have to(?), for portability's sake, limit encryption to repositories and checkouts, and keep the global config from being encrypted (else we risk breaking fossil(1)'s use of the config db). It also begs the question of whether arbitrary databases opened via the fossil API should get this support (which would require a different API, as the db API can be used without a fsl_cx object). file: [4c25528e80] check-in: [f226dbd76a] user: stephan branch: sqlite-see, size: 58449
2023-04-19
02:26
Apply a set of missing f(void) and assigned-but-unused vars from Mark J. file: [6a11041c0f] check-in: [b96f5840ea] user: stephan branch: no-common-ancestor, size: 58455
2022-07-03
08:11
Fixed broken like-clause formatting introduced in [b33abe472b58] (percent sign needed to be doubled). Fixes remote-host check in fcli_sync(). Unrelated minor formatting tweaks. file: [2e9af66876] check-in: [b6df9a0845] user: stephan branch: trunk, size: 58447
2022-04-09
21:36
Moved the internal fsl_cx cache-clearing to the public fsl_cx_caches_reset() so that it can be used like fcli does (after shelling out an external app which might change the db). Fixed a deck F-card search bug introduced by the cache reset (thank goodness an existing unit test tripped over that). file: [a1fe3cdf3b] check-in: [84154036a0] user: stephan branch: trunk, size: 58445
08:19
Taught fcli_sync() to fail with the new FSL_RC_LOCKED code if a transaction is opened, as remote sync cannot succeed in that case due to the libf client holding a transaction open (i.e. a write lock). file: [7c44349fb5] check-in: [3be18124f5] user: stephan branch: trunk, size: 58715
2022-03-08
07:00
Removed some dead code. file: [e7cdb6cd21] check-in: [ded6e51294] user: stephan branch: trunk, size: 58688
05:03
Initial (somewhat unsightly) impl of refactoring fsl_ckout_rename() to be able to handle origin filenames which are SCM-known directories. i.e. fsl_ckout_rename() can now move directory foo/bar, recursively, to a new directory. file: [cfae492eac] check-in: [52318ca911] user: stephan branch: trunk, size: 59477
2022-03-07
01:09
Changed semantics of fsl_db_get_buffer() to _append_ to the target buffer instead of replacing its contents, as that's generally more often the capability i want and the old semantics simply require calling fsl_buffer_reuse() on the target first. file: [fc2e04e950] check-in: [27f4feac07] user: stephan branch: trunk, size: 59418
2022-03-05
10:08
Added protection against a corner-case condition to the previous checkin. file: [3ebe8d136d] check-in: [fdebf174bb] user: stephan branch: trunk, size: 59466
10:02
When a fossil-managed db handle does a rollback, reload the cached ckout version state, else it can get out of sync. This is an age-old bug, but was just discovered when it broke some new f-sanity tests. file: [3550956e8e] check-in: [a0f3423462] user: stephan branch: trunk, size: 59444
2022-01-01
14:58
More work on the db handle redux. Seems to work okay. file: [12ed227fa4] check-in: [71f5f09817] user: stephan branch: cx-db-handle-reorg-redux, size: 59247
10:53
fsl_db_open() no longer automatically applies the create-if-not-exists flag to in-memory or anonymous temp dbs, as this was at the root of a great deal of confusion the past 24 hours. Documented the propagation behaviour of the CREATE flag from an OPEN'd db to other dbs ATTACHed via that handle. See [https://sqlite.org/forum/forumpost/76963f0026b6b12a], and its top-level post, for more details. file: [8e1db5209a] check-in: [ac15c8d1d4] user: stephan branch: trunk, size: 59287
02:03
Minor cleanups in the fsl_db API. Updated fsl_db SQL tracing to the sqlite3_trace_v2() API. file: [54b68fecfb] check-in: [89e932ce1a] user: stephan branch: trunk, size: 59404
01:13
More cleanups moving towards taking another whack at the fsl_cx db handle reorg. Added a test case to f-sanity.c demonstrating the ATTACH-cannot-create error (whereas the sqlite3 shell can create new files that way). file: [bbf59506dc] check-in: [51d4b05f5c] user: stephan branch: trunk, size: 58198
2021-12-31
21:54
Cherrypicked [6f2027aeb4], [74964a09a5], and part of [d290f6375c]. file: [e971c9ed77] check-in: [211eaecfcf] user: stephan branch: trunk, size: 58528
21:30
Extended fsl__cx_attach_role() to be able to create a new db if needed (required for fsl_repo_create()) but (regardless of this change) discovered that ATTACH, when run through the new fsl_cx::dbMain handle, can no longer create new db files, which means that f-open cannot create a checkout. COMPLETELY stumped as to why that is. Edit: closing because this branch is failing in inexplicable ways and has a horrid mix of branch-relevant and branch-irrelevant changes. Pulling in the branch-irrelevant ones separately into trunk before taking another whack at the branch-relevant ones. file: [9c20183393] check-in: [a67b757dc0] user: stephan branch: cx-db-handle-reorg, size: 58725
15:10
Renamed fsl_db_role_label() to fsl_db_role_name(). Doc touchups related to the db handle restructuring. file: [1c26d4e650] check-in: [d290f6375c] user: stephan branch: cx-db-handle-reorg, size: 58737
13:29
Eliminated fsl_cx::dbMem in-memory/temp db and (again) use the first of the repo/ckout dbs which is opened as the MAIN db (aliasing it to its well-defined libf schema name). This has a high potential for fallout, so it's in a branch pending more thorough testing. file: [878e6ccebc] check-in: [aebf241ab5] user: stephan branch: cx-db-handle-reorg, size: 58739
2021-12-30
13:49
Global config db now uses its own fsl_db handle, no longer ATTACHed with the repo/checkout handle. fsl_ckout_open_dir() now canonicalizes the passed-in directory name (simplifies usage). Added f-query -g/--config flag to query against the global config db. Various code-adjacent tweaks. file: [a627e35de1] check-in: [1d7a6d2b96] user: stephan branch: trunk, size: 58572
2021-12-27
21:07
Corrected a rare corner case error check in the previous checkin. file: [a9c3e31319] check-in: [5cccd60c7f] user: stephan branch: trunk, size: 58837
15:00
When performing a fsl_db rollback, clear the associated fsl_cx's manifest- and blob-content caches in order to ensure that they do not contain any RIDs which are part of the being-rolled-back transaction. Remove fsl_cx::cache::deltaIds as it was determined that the recursion involving that cache could have broken things (but, rather curiously, had not done so thus far). Might want to revisit that cache someday and account for the new effective tail of the array on each recursion. file: [bc715dfb0c] check-in: [35dca27909] user: stephan branch: trunk, size: 58818
2021-12-21
20:21
Removed the fossil- name prefix from include/fossil-scm/*.h. file: [64a8679c73] check-in: [43a9bea8d5] user: stephan branch: trunk, size: 58210
08:28
Moved fossil-scm/fossil.h to ../libfossil.h so that client code can build from both the canonical tree and amalgamation using the same include name. file: [ea504e41f8] check-in: [76d6359435] user: stephan branch: trunk, size: 58217
2021-12-14
15:52
More work on the merge port and adjacent code. file: [e26dc5c545] check-in: [b9c2a05cfe] user: stephan branch: trunk, size: 58225
04:17
Tweaks to the return semantics of fsl_db_exec() and fsl_stmt_step(). Doesn't/shouldn't affect any existing code. Added a test to ensure that fsl_stmt_step() behaves as expected in the face of a RETURNING clause. file: [37dd3153ac] check-in: [ad7ef26207] user: stephan branch: trunk, size: 58162
2021-12-10
04:08
Initial version of f-repostat, analog to (fossil dbstat). Some adjecent constness cleanups. file: [7e091432a4] check-in: [4926ae9b31] user: stephan branch: trunk, size: 58231
2021-12-03
06:23
Moved most of the fsl_cx-specific code out of fsl_db and into the new src/udf.c. file: [3d2838f678] check-in: [84a59c6833] user: stephan branch: trunk, size: 58057
2021-11-30
18:13
Internal fsl_db cleanups related to [17cc186e16351f5]. No public API changes. file: [46eeeed4c7] check-in: [ddc1efaeb8] user: stephan branch: trunk, size: 74724
17:24
Added fsl_db-level internal infrastructure to be able to catch the a potential OOM worked around in [11a6a98c81d1] and report it properly. Updated that fix to use the new infrastructure and distinguish between real and fake OOM. file: [c863faae61] check-in: [17cc186e16] user: stephan branch: trunk, size: 74806
2021-11-18
16:10
Diverse minor internal cleanups. file: [e4224df0db] check-in: [c46efd6b8d] user: stephan branch: trunk, size: 73605
2021-11-09
13:29
Linked list iteration fixes for the previous commit. file: [86c77a572a] check-in: [c9b2992de4] user: stephan branch: trunk, size: 73621
11:48
When detaching a db role, finalize any cached statements which are known (or believed) to be mapped to that role to avoid that detaching fails due to a lock held by opened statements. file: [735a85110c] check-in: [d00587179e] user: stephan branch: trunk, size: 73541
2021-11-02
23:52
Mass renaming of many internal APIs from fsl_X to fsl__X (two underscores) and several adjacent const cleanups. file: [47539719b7] check-in: [83917b7b45] user: stephan branch: trunk, size: 72523
2021-10-21
20:22
Started work on f-rebuild. Still lots to do. file: [cff4a19c44] check-in: [54b9b8fd8b] user: stephan branch: trunk, size: 72515
17:42
A pile of constness and char-as-bool tweaks in the db API. file: [54d7555d3c] check-in: [d571c6f692] user: stephan branch: trunk, size: 72515
05:17
Reduced fsl_db_prepare_cached() buffer size and simplified nearby code a bit. file: [9a4e1931fa] check-in: [781faabfa1] user: stephan branch: trunk, size: 72597
04:41
Reduced fsl_buffer_reserve() calls by about 90% for f-parseparty (2.8m down to 300k), largely via addition of a db-level buffer for cached SQL preparation. Added a simpl hash to cached fsl_stmt instances to speed up fsl_db_prepare_cached() and reduce fsl_buffer_cmp() calls by 90%+. Record how many times any given caches fsl_stmt is reused and emit that via the new fcli_dump_stmt_cache() function. This reduces f-sanity allocations from 39k to 29k but slightly increases total allocated memory. file: [876ee92975] check-in: [c812573f26] user: stephan branch: trunk, size: 72510
2021-10-19
10:03
Doc updates and minor internal code reorgs. file: [b615f9f54b] check-in: [9542202a90] user: stephan branch: trunk, size: 71748
09:05
Added the FSL_GLOB() SQL UDF and infrastructure to support it, to enable operations which make use of the configurable glob lists to access those via SQL. file: [41511bf512] check-in: [496acd50a1] user: stephan branch: trunk, size: 71881
2021-10-18
12:07
Changed signature of fsl_db_close() to return void. Removed some dead code. file: [990061ce87] check-in: [0c32e3185e] user: stephan branch: trunk, size: 70031
10:02
Random doc updates and moved an enum from fossil-util.h to fossil-db.h. file: [63c24fb9f6] check-in: [f069532a71] user: stephan branch: port-merge, size: 70123
2021-10-16
15:50
Another few hundred lines of merge infrastructure and lots of unrelated constness tweaks. Moving to a branch because we can't test some of the new features without one. file: [6a7d12e88d] check-in: [3ff20f1d01] user: stephan branch: port-merge, size: 70135
2021-10-02
18:12
More work on the annotate interface, plus far too many nearby-yet-unrelated tweaks such as costness changes. file: [c90ecec4b3] check-in: [b601f20cff] user: stephan branch: trunk, size: 69358
2021-04-18
13:37
When creating initial checkin for a repo, use ms precision for the D-card, instead of seconds precision. Do the same in f-test-ciwoco to avoid a slight time warp in the timeline caused by repo creation and the first checkin having the same timestamp. file: [c3385004d4] check-in: [cc34c60a45] user: stephan branch: trunk, size: 69301
2021-04-13
13:20
Fixed a broken assert() in fsl_ckout_manage() when current rid==0. Fixed duplicate mlink entries for an initial commit with no parent. Finally realized that the dbs cannot be detached when a transaction is pending and adjusted the fsl_cx db-close interfaces to be able to report that. Started work on a demo app which creates and populates a repo without using a checkout, but it's incomplete - got sidetracked chasing down those bugs. file: [841a2cb4d9] check-in: [fcdeddd18a] user: stephan branch: deck-reworking, size: 69302
2021-04-12
15:48
Fixed, i believe, the checkin process not properly tagging the new leaf, caused by swapped handling of the is-it-a-leaf result. Need to make a commit to actually test it, though. Edit: worked :). file: [fc8a9e01e1] check-in: [2791e665cc] user: stephan branch: trunk, size: 69283
2021-03-31
09:47
Added fsl_ckout_vfile_ids() variant of fsl_filename_to_vfile_ids() in prep for an upcoming experiment. Fixed a cleanup order in fcli_shutdown(). file: [adc0d0e8e7] check-in: [889d2e32bb] user: stephan branch: trunk, size: 69076
05:41
Minor f-apps updates. Reverted f-revert to using the filename variant of fsl_ckout_revert(), instead of the fsl_filename_to_vfile_ids() variant, because the former allows the user to revert renames using the old or new names, whereas the latter only sees the new names. Fixed a range error in fsl_stmt_bind_fmtv() when binding a string as blob, and that function's blob/string bindings no longer copy their arguments' memory. Changed fsl_stmt_bind_step() return semantics to enable fetching data. file: [57e0972286] check-in: [43d1902823] user: stephan branch: trunk, size: 69070
2021-03-29
02:39
Internal tweak in the fsl_db API to take advantage of SQLITE_PREPARE_PERSISTENT. Doc fix in fsl_buffer_stream_lines(). file: [9344facc54] check-in: [230e3ff6f6] user: stephan branch: trunk, size: 68932
2021-03-24
07:19
Added SQL UDF fsl_match_vfile_or_dir() and used it to simplify some expressions. file: [a87bbcd5c9] check-in: [674cd67c12] user: stephan branch: trunk, size: 68816
06:23
Refactored the remove-empty-dirs APIs a bit. Revert now tries to remove empty dirs of renames. Fixed path handling in revert - was using relative paths which only worked from the top of the tree. Added missing outer transaction in f-revert which could cause a failed revert to leave vfile in a partially-reverted state. file: [01e45683ef] check-in: [62c2d986fb] user: stephan branch: trunk, size: 66839
2021-03-22
13:45
Added f-revert, analog to (fossil revert). Fixed f-rm to handle the filename '.' sensibly. Numerous tweaks in adjacent code along the way. file: [a11b70de57] check-in: [8cc33e4e8a] user: stephan branch: trunk, size: 66754
2021-03-20
21:00
Added fsl_stmt_bind_step() and fixed a bogus return in fsl_stmt_bind_fmt(). file: [0218a69162] check-in: [84a2e6b8f1] user: stephan branch: trunk, size: 66754
2021-03-19
18:18
Removed some old/obsolete db-close cleanup. file: [3a59cb9b17] check-in: [30d55a9edb] user: stephan branch: trunk, size: 66098
2021-03-15
04:25
Globally renamed _checkout to _ckout, as some of these names are getting a bit long. file: [e8a898da44] check-in: [bc9e88ee2c] user: stephan branch: trunk, size: 66313
2021-03-08
13:23
Renamed FSL_CANSWER_xxx to FSL_CRESPONSE_xxx. Changed some queries from cached to non-cached. Added /*__func__()*/ to the end of many queries to make them easy to track down via sqlite trace output. file: [bed1122912] check-in: [c8b25fe30f] user: stephan branch: trunk, size: 66316
2021-03-07
16:49
Minor internal cleanups. file: [c863d9dc13] check-in: [7666cd3214] user: stephan branch: trunk, size: 66232
11:40
Removed dangling bits left over from the previous commit. file: [f3bc3f12aa] check-in: [23a5dfe46a] user: stephan branch: trunk, size: 66137
2021-03-05
07:43
More char-to-bool conversions. Moved fsl_stmt_bind_fmt() into the public API and added a basic test for it. file: [01f9ca894e] check-in: [d386e0d741] user: stephan branch: trunk, size: 66436
2021-03-04
17:45
f-open: removed unnecessary content load and added some library-level functions to help streamline transaction handling. file: [f5066c2357] check-in: [5c988bf424] user: stephan branch: trunk, size: 66928
14:27
Added FSL_RC_MISSING_INFO. Minor internal doc cleanups and API result value changes. Reworked how fsl_cx_hash_buffer() returns when its alternative hash option conflicts with the current hash policy. file: [8053bf759f] check-in: [d1428d5a93] user: stephan branch: trunk, size: 66928
2021-03-03
08:38
Lots of bending and hammering related to smoothing out f-open. There's still an issue when opening an empty checkout (it's seen as not a checkout by other apps), but that's on the to-fix list. file: [bfcb302e70] check-in: [2a04a6818c] user: stephan branch: trunk, size: 66924
2021-03-01
15:46
Replaced the overwhelming majority of license headers with the new project-standard one. Left a few as they were for files which were imported essentially unchanged from Fossil or, in the case of SHA1/SHA3/MD5 bits, other 3rd-party sources. file: [9b6179e680] check-in: [fa5fb24496] user: stephan branch: trunk, size: 66932
2021-02-26
06:03
Some doc touchups, enum renaming, and removed some dead code. file: [4d50df2bc3] check-in: [473fd8718c] user: stephan branch: trunk, size: 67037
04:57
A workaround for the plink count mismatch between libf/fossil crosslinking. This gets the plink counts correct (fixing fossil's ability to run 'blame'), but why this workaround is needed is unclear. A couple char-to-bool API conversions. file: [1e273941c9] check-in: [a9332967a7] user: stephan branch: trunk, size: 67037
2021-02-22
04:41
As a precaution against changes made in [7800a90d1699] and [ddf4ac0df508], fsl_content_deltify() is now explicity a no-op if asked to deltify a phantom. file: [41851b93d2] check-in: [3affea2904] user: stephan branch: trunk, size: 67018
2021-02-21
16:52
Ported in fsl_search_doc_touch() from fossil and call it at the appropriate points in the crosslinking steps, but it's disabled because one of the queries mysteriously fails with 'SQL logic error' when run from this context (but works fine in the fossil shell). Some more char-to-bool conversions. file: [b0417139e1] check-in: [5a3d4bceb3] user: stephan branch: trunk, size: 67106
15:10
Renamed FSL_CATYPE... (CA=Control Artifact) to FSL_SATYPE... (SA=Structural Artifact) so that they correspond to the terms as set out by the fossil file format docs. file: [68ea175eab] check-in: [8728796601] user: stephan branch: trunk, size: 67098
2021-02-18
05:11
Replaced the extraneous fsl_double_t typedef with double. file: [97ce735258] check-in: [b359548620] user: stephan branch: trunk, size: 67098
2021-02-15
03:24
Renamed src/fsl_db.c → src/db.c. Renamed src/fsl_XYZ.c to src/XYZ.c. f-checkin vfile dump now includes renames. file: [465125bbfb] check-in: [ed3183170a] user: stephan branch: trunk, size: 67218
2021-02-13
23:44
Minkering/testing with replacing the checkin timeline crosslinker. Moved some code around. file: [465125bbfb] check-in: [c42cfd8c10] user: stephan branch: trunk, size: 67218
2021-02-12
22:09
libfossil is now C99, rather than C89, per discussion at [https://fossil.wanderinghorse.net/r/libfossil-forum/forumpost/e02ff0e8d0]. fsl_int{16,32,64}_t have been replaced by the standard uint{16,32,64}_t, FSL_xxx_T_PFMT/SFMT replaced with PRIx32 and friends, and auto.def now checks for -std=c99 capability (but that check could probably be done differently/improved). fsl_int_t and fsl_uint_t are retained, as they're more about documentation/intent than fixed sizes. file: [9689bb5e71] check-in: [ee070353b9] user: stephan branch: trunk, size: 67212
15:22
Implemented crosslink begin/end steps, minus still-pending ticket/wiki-specific features. Crosslinking wiki pages updated to use fossil's newer wiki timeline comment format and updated f-timeline to recognize it as well. file: [f111d8c92e] check-in: [31c8bddf22] user: stephan branch: trunk, size: 67308
07:02
Implemented forum artifact crosslinking and restructured fsl_deck_crosslink() into internal type-specific routines. file: [e531216440] check-in: [1817557652] user: stephan branch: trunk, size: 67202
2021-02-09
00:18
Updated license text in almost all C/H to claim copyright while attributing all of the files as heavily derived from DRH's work. file: [a76f35e0d4] check-in: [631fb3f69a] user: stephan branch: trunk, size: 66802
2021-02-07
14:31
Globally replaced http://... URLs with https://.... Most of them probably still work, too. file: [1ceb195165] check-in: [6af7b3b7c8] user: stephan branch: trunk, size: 66769
2018-12-01
15:59
i know this isn't maintained anymore, but found a broken assert() while porting the db wrapper into another tree. file: [f12311274f] check-in: [5c9c84f81d] user: stephan branch: trunk, size: 66768
2016-03-07
15:57
added FSL_OPEN_F_TRACE_SQL for use with fsl_db_open(), which tells fsl_db_open() to enable SQL tracing. Previously this feature was restricted to Fossil-open()'d db handles. file: [a38bd5abcc] check-in: [a43aece996] user: stephan branch: trunk, size: 66745
2016-03-05
13:55
fixed broken return vals from fsl_db_existsv(). file: [d7fe3dc699] check-in: [f6f9628a30] user: stephan branch: trunk, size: 66688
2014-10-28
02:14
merged in stephan's various changes file: [24afed2e3d] check-in: [c2d7402366] user: dave branch: dave, size: 66711
2014-10-27
20:42
Switched from :memory: to "" (temp) DB for the main db, other minor cleanups. file: [4e2fa34012] check-in: [6c18a25f11] user: stephan branch: trunk, size: 66793
17:28
fsl_cx now (again) uses a ':memory:' DB as its 'main' and ATTACHes the repo/ckout/config to that one, to avoid locking problems Dave discovered with regards to attaching or opening a single DB file multiple times. Sanity tests work without changes and the s2 bindings required only assertion fixes, but probably needs some re-working of the 'db' property to account for the new, always-there handle. file: [fd04581a0c] check-in: [898c0acbff] user: stephan branch: trunk, size: 66723
16:35
Fixed: fsl_db_open() no longer checks/enforces that the special filename ':memory:' really exists. file: [9a1c8b7ed8] check-in: [2e58421c33] user: stephan branch: trunk, size: 66795
2014-10-25
19:52
correct silly position of assert(); correct a comment; correct for sqlite3 not auto-initing around mutex code (for reasons unknown to me) file: [42e005bed5] check-in: [455133309f] user: dave branch: dave, size: 66583
18:17
add atomic functions around refcounted init of sqlite extensions; unregister extensions when last one is freed file: [604af2c32f] check-in: [31a1e741ae] user: dave branch: dave, size: 66583
09:51
merged in dave's branch, fixed a merge conflict, made f-sanity not fail a specific test fatally because it rightfully fails on a merge-modified checkout. file: [3a05748b43] check-in: [8a439f91d5] user: stephan branch: trunk, size: 66665
2014-10-23
03:33
fix a few dreaded // comments file: [cb557f5eac] check-in: [d4426ffe90] user: dave branch: feech-versionedsettingsupport, size: 66694
2014-10-22
21:48
first attempt at wiring in virtual tables for settings metadata and versioned setting support. Also, added an aliased column 'value' to 'default_value' for the settings metadata, to allow existing query scheme to work consistently with that table as well. file: [a4248e64d7] check-in: [ddb939fd3f] user: dave branch: feech-versionedsettingsupport, size: 66692
2014-10-17
11:30
Reenabled fsl_db_verify_begin_was_not_called() - cannot verify the older bug there. file: [71ba020f53] check-in: [7746a1087a] user: stephan branch: trunk, size: 66075
11:05
added fsl_ckout_dir() SQL func. minor doc updates. file: [cea92e6dad] check-in: [fd4ba13292] user: stephan branch: trunk, size: 66123
2014-10-13
19:20
Minor error reporting improvement. file: [3806d988ad] check-in: [d617d305e0] user: stephan branch: trunk, size: 65350
2014-08-26
16:52
refactored fsl_db prepared stmt cache to be a linked list instead of dynamic array. file: [6f536674de] check-in: [961a6464a7] user: stephan branch: trunk, size: 65260
2014-07-24
16:48
Minor error handling tweaks in fsl_db_prepare(). file: [a2b01d303c] check-in: [d4ef5d233a] user: stephan branch: trunk, size: 65614
2014-04-26
22:01
disabled the COMMIT check because i am seeing weirdness in the pointer passed to it. file: [71fd94dce3] check-in: [85083a72e1] user: stephan branch: trunk, size: 65477
2014-04-22
20:11
Added an sqlite3 commit hook to abort the app if COMMIT is used while an API-controlled transaction is in progress. Added a fsl_str_is_date2() test which should have been in the previous commit. file: [03e5a8c062] check-in: [83c08406ea] user: stephan branch: trunk, size: 65342
2014-04-21
08:15
removed automatic "simplification" of SQL because it breaks caching (just now noticed). file: [9d6b9e6acf] check-in: [d903f3e5b1] user: stephan branch: trunk, size: 64299
2014-03-30
08:52
minor non-functional cleanups. file: [d2438cb618] check-in: [fab9aad9f8] user: stephan branch: trunk, size: 64260
2014-03-29
10:09
Introducing the highly arguable fsl_simplify_sql() utility routine. file: [c068caf4ff] check-in: [7b0022b9a5] user: stephan branch: trunk, size: 63767
2014-03-22
11:54
added fsl_db_changes_recent/total(). file: [693c1b8432] check-in: [864de83096] user: stephan branch: trunk, size: 63658
2014-03-20
19:18
Fixed a memleak when fsl_db_open() fails. file: [835bb5ed97] check-in: [d7160c7321] user: stephan branch: trunk, size: 63437
2014-03-19
18:59
Got most of the fsl::Stmt class in place and compiling. Still untested. file: [f5018ff86d] check-in: [4f2a0650ae] user: stephan branch: trunk, size: 63477
2014-03-14
11:10
another round of minor cleanups. file: [fbefd45493] check-in: [7e8d0ecfe2] user: stephan branch: trunk, size: 63359
2014-03-13
19:40
refactoring and doc improvements. file: [40705d0ab3] check-in: [67c1885126] user: stephan branch: trunk, size: 63359
2014-03-11
17:02
First attemp at actually committing a delta manifest created by libfossil. Pray, please. Backup repo is in place. file: [1b957879c2] check-in: [651c219475] user: stephan branch: trunk, size: 63355
2014-03-08
22:21
More work on the checkin bits. Reimplemented how baseline manifests get their F-cards calculated. Not yet sure how best to implement a delta manifest. file: [1ede13ffb4] check-in: [1cd70042f1] user: stephan branch: trunk, size: 63354
18:29
Lots more tinkering with the checkin stuff. About to try a different F-list generation algo, though, because the ported-in one has historical baggage due to the enforced ordering of names in how it generates the manifest. file: [50f5fbbca3] check-in: [1a0ee6b693] user: stephan branch: trunk, size: 62728
2014-03-05
18:12
Added explicit read-only flag support to fsl_db_open(). file: [5bb5254d9c] check-in: [b57257e30c] user: stephan branch: trunk, size: 61693
2014-02-17
17:53
Added SQLITE_DETERMINISTIC flag to SQL UDFs where it can be safely applied. file: [89144dfc4b] check-in: [cc2faa03ee] user: stephan branch: trunk, size: 61342
2014-02-14
18:18
added fsl_db_name(). file: [d48bfac4d7] check-in: [a8c452c767] user: stephan branch: trunk, size: 60811
09:05
Globally changes the API docs from fossil/sqlite-style '**' to Doxygen-friendly format because the extra stars hinder writability/changability and require an extra filter at the doxygen-processing level. file: [e0b1817fc1] check-in: [a2cbd2e343] user: stephan branch: trunk, size: 60732
2014-02-10
18:29
Consolidated FSL_ATYPE_xxx and FSL_CATYPE_xxx into FSL_CATYPE_xxx, replaced fsl_atype_t with fsl_catype_t. file: [b35cb3ec1c] check-in: [c0ca757a66] user: stephan branch: trunk, size: 60732
16:23
Fixed a couple minor inconsistencies in the no-row-found handling for fsl_db_get_(text|blob)(). file: [527d0cb7f1] check-in: [7fcdf4f35a] user: stephan branch: trunk, size: 60730
15:13
fixed a couple fsl_stmts which were not being cleaned up if copying of their data failed due to OOM. file: [2cdaa0caef] check-in: [c7e103672e] user: stephan branch: trunk, size: 60300
2014-02-08
18:53
fixed mis-propagation of an sqlite3 error code in fsl_db_exec_multi(). file: [f13720057c] check-in: [4afa958fda] user: stephan branch: trunk, size: 60046
2014-02-06
17:26
Added fsl_confirm() family of functions for up-coming features. Fixed overwrite-repo in fsl_repo_create() (it previous didn't do anything useful). Changed how fsl_cx stores its default user name, and it now takes the default user name from a repo when opening it (where user.id==1). Other minor cleanups and tweaks. file: [941bd50c4c] check-in: [ebda4a36e3] user: stephan branch: trunk, size: 60007
2014-02-05
20:49
Replaced a couple gratuitous structs with (char *). Other minor tinkering. file: [4c5948e0ed] check-in: [a94b263ba1] user: stephan branch: trunk, size: 60009
2014-02-04
18:02
Added FSL_J2U() UDF. file: [93a7925ada] check-in: [f5535d9325] user: stephan branch: trunk, size: 60016
2014-02-03
19:38
another round of minor internal tweaks. file: [40ab10675a] check-in: [5a477d1471] user: stephan branch: trunk, size: 59526
2014-02-02
17:57
Implemented fsl_db_checkin_mtime_udf() as SQL-side FSL_CI_MTIME(). file: [ceed89e902] check-in: [21bef16324] user: stephan branch: trunk, size: 59414
14:20
Another round of minor cleanups and doc fixes. Added fsl_input_f_buffer(), based on new fsl_buffer::cursor member (needed for other reasons), so buffers can now be input streams. file: [620a53bebb] check-in: [7aa94e7ce8] user: stephan branch: trunk, size: 59233
2014-02-01
14:19
minor round of tinkering and refactoring. Moved fsl_config_xxx() decls into fossil-confdb.h. file: [095e3d0cce] check-in: [ad2a0cb933] user: stephan branch: trunk, size: 59113
13:37
FSL_SYM2RID() UDF now resets the fsl_cx error state if sym-to-rid lookup sets it, and (as before) propagates the error via the db layer. It was previously poluting down-stream error reporting. Minor improvments to OOM error reporting for some of the UDFs. file: [513083938f] check-in: [3bd8da8827] user: stephan branch: trunk, size: 59100
2014-01-30
20:36
Re-thought/implemented fsl_repo_dir_names() to return all dir names when given an RID, use the checkout if rid==0, and all versions if rid is negative. Other minor refactoring/renaming. Fixed fsl_cx_filename_collation() to return the right string. file: [7fbc973f22] check-in: [22ce993a61] user: stephan branch: trunk, size: 58514
2014-01-29
17:10
A number of minor tweaks (e.g. more cached statements), refactoring of fsl_cx internals. file: [b9ca94c962] check-in: [1d59e4291a] user: stephan branch: untested-tinkering, size: 58389
2014-01-26
17:03
Minor memory optimization experiments. file: [db21d948a2] check-in: [3c4e090c0f] user: stephan branch: trunk, size: 58385
10:33
refactoring and code consolidation. file: [be9b7ebad8] check-in: [e6654f2651] user: stephan branch: trunk, size: 58001
2013-09-24
15:30
doc and error reporting tweaks. file: [cabbfa04e9] check-in: [81b1ef6e09] user: stephan branch: trunk, size: 57958
2013-09-19
16:25
fsl_dirpart() UDF now treats empty result as NULL (do not think this makes a difference). file: [586e8db604] check-in: [c6bacd7607] user: stephan branch: trunk, size: 57354
16:03
Added FSL_DIRPART() SQL func. Fixed behaviour of fsl_db_prepare() when input SQL evaluates to NULL (it now fails instead of succeeding with a NULL stmt handle). file: [f7cdb02fba] check-in: [8dc89b848b] user: stephan branch: trunk, size: 57344
2013-09-11
22:08
Added some assertions, reminders, docs. One minor optimization. file: [c00b88da54] check-in: [580bb9c789] user: stephan branch: trunk, size: 55858
2013-09-08
17:40
Added SQL functions: FSL_USER(), FSL_CONTENT(), FSL_SYM2RID(). Undid part of the previous fsl_buffer_compress() optimization because it cannot help us much for the real use cases and complicates the code. More proactive int casting for va_list bits. file: [656352ef78] check-in: [f9e0b1801f] user: stephan branch: trunk, size: 55802
15:39
Lots of minor additions and tweaks, mainly in support of app-level code. file: [7438e6fbd4] check-in: [7bfbc3dba6] user: stephan branch: trunk, size: 53630
2013-09-07
11:58
another round of API renaming. file: [4079e26881] check-in: [200d1cd898] user: stephan branch: trunk, size: 52710
2013-09-03
15:40
More ticket bits. Minor API tweaks. file: [1c90f913b0] check-in: [5a47293811] user: stephan branch: trunk, size: 51819
2013-08-31
13:02
Doc additions, minor error reporting cleanups. file: [2892ba178d] check-in: [8f05724070] user: stephan branch: trunk, size: 51819
2013-08-29
17:19
Moved SQL tracing from stderr back to stdout, so that redirection and flushing get the SQL output lined up with the app output. Renamed FSL_ATYPE_G to FSL_ATYPE_TAG. Aligned the FSL_ATYPE_xxx values with their FSL_CATYPE_xxx partners. Fixed a fsl_atype_t/fsl_catype_t mixup in f-ls (thanks, clang). file: [c02c61a103] check-in: [98b8da1754] user: stephan branch: trunk, size: 50647
2013-08-27
19:55
Started work on creating a new repo. Several related minor cleanups and additions. Simplified a couple APIs. file: [3992a6194b] check-in: [184bdcf4a4] user: stephan branch: trunk, size: 50849
2013-08-24
23:21
Added new file for Event APIs. Minor refactoring and code consolidation. Fixed a crosslinking bug which used a wrong (old/changed) format specifier for event-XXX tags. file: [867af70a1e] check-in: [b5b5a52965] user: stephan branch: trunk, size: 50553
2013-08-22
18:26
Ported in the "verify before commit" code, which ensures that all new content can be extracted from the db before it commits the transaction doing the adding. Fixed a memlink in fsl_repo_tag_symbol(). Added fsl_deck_save() and refactored fsl_repo_tag_rid() to use it. file: [7511d03a1b] check-in: [57107f6bd2] user: stephan branch: trunk, size: 49239
13:44
fsl_internal.h ==> fossil-internal.h file: [2c25f7c5ee] check-in: [2cae867331] user: stephan branch: trunk, size: 49239
2013-08-19
20:40
Minor cleanups. Replaced fsl_db_unix_to_iso8601() with fsl_unix_to_iso8601() (didn't know strftime() was C89). file: [f3fa30b98b] check-in: [fb9ef509fe] user: stephan branch: trunk, size: 49236
19:29
Added EVENT crosslinking. Can now losslessly round-trip EVENT manifests. Minor changes to support seconds-precision (not msec-precision) on E-cards b/c that is how fossil(1) does it. Fixed bugs in the E-card card-is-legal validation. file: [936adad148] check-in: [ec268be7f0] user: stephan branch: trunk, size: 49535
2013-08-18
20:07
minor renaming (consistency) file: [cbc9207a22] check-in: [e45323a4b5] user: stephan branch: trunk, size: 49491
14:35
Split the code into some new files. Shortened fsl_cx_repo_xxx() and fsl_cx_checkout_xxx(), removing the _repo/_checkout part. file: [4aa11f3135] check-in: [2acbc2f85e] user: stephan branch: trunk, size: 49379
01:31
Added deck baseline file iteration and reworked R-card calc to use it. Works for baselines but i am seeing a delta-application bug in a specific tcl commit, but it is not yet clear where my bug is there (the repo passes all integrity tests, so the bug is on my end). Added error-reporting forms of delta application routines. Started porting in some of the filename table funcs. file: [3a9a0fb3ad] check-in: [f94ea8a168] user: stephan branch: trunk, size: 71369
2013-08-17
11:11
a round of minor cleanups, doc additions, and build tweaks. Build/config modified to allow more variants of c99/long long, to simplify testing of portability-related problems. i expect the xxx_PFMT changes to possibly break on 32-bit platforms. (Edit: didn't break :) file: [7319dc85d4] check-in: [f739758c74] user: stephan branch: trunk, size: 71323
2013-08-16
20:04
Added fsl_deck_unshuffle() to sort any lists which need it and to calculate the R-card (that card works now). Fixed a memleak in fsl_acache_clear. A bit of API renaming and refactoring. file: [c57f29b240] check-in: [6dc5c4ab76] user: stephan branch: trunk, size: 71306
10:20
Fixed the round-trip time imprecision when round-tripping manifests. Caused by using printf-style formatting instead of bind() for the double value. Round-tripping tests are now 100% lossless :). file: [825bca1fa5] check-in: [308f32e4f9] user: stephan branch: trunk, size: 71121
06:47
Added/ported in fsl_db_table_has_column(). file: [6a8c1ad057] check-in: [9c9a8e8835] user: stephan branch: trunk, size: 70900
2013-08-13
19:32
Added ability to add/cancel/propagate tags by applying +/-/* prefix to f-tag. Refactored dry-run mode to use a transaction/rollback, for more realism. Refactored the public tag API a bit. Fixed a va_list handling error in fsl_db_g_text(). file: [a626d0ecf4] check-in: [caeb8eb815] user: stephan branch: trunk, size: 70118
18:35
Successfully round-trip parsed/output a basic manifest (T, U, D cards). file: [8943682987] check-in: [005bc0786e] user: stephan branch: trunk, size: 70125
13:17
Renamed header files from fossil/*.h to fossil-scm/*.h, to avoid any potential confusion with the fossil FS or other fossils out there. file: [870a1d3131] check-in: [99a4a0ff23] user: stephan branch: trunk, size: 69927
10:52
improvded an error check in the repo-open op. file: [acfa3d8f75] check-in: [a45519e9e7] user: stephan branch: trunk, size: 69919
2013-08-12
16:48
tweaking with the internals of checkout/repo/config db closing. file: [51d6cc1153] check-in: [dadf0a657d] user: stephan branch: trunk, size: 69478
15:44
Cleanups and fixes in the db bits. s/FSL_TAG_xxx/FSL_TAGTYPE_xxx/g. Fixed a memleak in the handling of the fsl_db::filename entries for the special dbs. fsl_cx_checkout_close() now always closes its accompanying repo first because the repo is attached and we end up in a weird state if we do not. file: [0e8d2d06f8] check-in: [ba9abe6330] user: stephan branch: trunk, size: 68267
14:01
Fixed wrong tag names output in crosslink-generated messages, caused by copy-paste porting of code with different semantics :/. Other minor cleanups. Added --dry-run to f-tag. file: [bdb89e0503] check-in: [6f131086fc] user: stephan branch: trunk, size: 67717
03:11
Fixed swapped args in fsl_stmt_each() which broke each() callbacks. Changed fsl_stmt_each_f() signature. Added f-timeline.c basic timeline mini-app. file: [c4a0ba29c3] check-in: [f3b0243385] user: stephan branch: trunk, size: 67269
01:11
Experimenting with cached vs uncached queries. Fixed numeric type in fsl_stmt_get_blob(). Ported in fsl_repo_content_make_public(). file: [9d7b56c434] check-in: [7a8d48b273] user: stephan branch: trunk, size: 67217
2013-08-11
22:09
Refactored beforeBegin triggers to compile earlier and store the Statement handles. This provides better error handling/reporting options but disallows multi-statement triggers, so i am sidelining this for now but checking it in for later reference. file: [f066ff0490] check-in: [9d9375ac2d] user: stephan branch: beforeCommit-statements, size: 67164
19:35
Fixed fsl_pq_insert() to INCREASE the use count, not DECREASE it. Tag saving seems to be more or less complete, including crosslinking for the basic (tag-related) bits. file: [f71e0a4187] check-in: [d4ec89c216] user: stephan branch: trunk, size: 67130
18:15
Lots of work on manifest crosslinking. IN THEORY tag changes are now feature-complete, but i want to commit this and back it up BEFORE testing this write operation... file: [a1a0497139] check-in: [52ec7915e3] user: stephan branch: trunk, size: 67040
15:42
More skeleton work on manifest crosslinking. file: [0cff7f7c25] check-in: [a95132ac5c] user: stephan branch: trunk, size: 66839
13:17
Ported in fsl_repo_content_undelta() and fsl_repo_shun_artifacts(). Added a public API and tests for the fsl_db::beforeCommit triggers. A number of minor additions, cleanups, and fixes. file: [2a16c8270f] check-in: [ab3f72ce6c] user: stephan branch: trunk, size: 66220
11:10
minor code simplification. file: [90871b644c] check-in: [54282c84ee] user: stephan branch: trunk, size: 64658
10:35
Ported in content_new() as fsl_repo_content_new(). Added a prepared statement caching mechanism similar to db_static_prepare() (but without the statics). file: [7cb427ae95] check-in: [0c18f5b486] user: stephan branch: trunk, size: 64692
2013-08-10
21:20
Started work on manifest crosslinking, but only skeleton code is in place. Time for the dog walk... file: [ced6b1acc9] check-in: [5b89c04e9b] user: stephan branch: trunk, size: 61915
12:44
added/fixed license headers. file: [744127e991] check-in: [f65b6ba973] user: stephan branch: trunk, size: 59768
12:42
cleanups and fixes to the previous commit. s/fsl_stmt_prepare/fsl_db_prepare/g. file: [715a0e9c51] check-in: [9f47dbd75d] user: stephan branch: trunk, size: 59771
11:47
More db infrastructure for the content-save process. Started work on fsl_cx_content_put(), but it's a beast and is missing parts. file: [953f4d2eec] check-in: [ed6df55bda] user: stephan branch: trunk, size: 58918
2013-08-08
22:27
minor error case cleanup. file: [4d17e9df04] check-in: [faebf1985c] user: stephan branch: trunk, size: 56248
20:53
Refactored fsl_cx::dbXXX back into separate db handles, and fsl_cx::dbMain is now a pointer refering to one of db(Config,Ckout,Repo). Requires notably more code/complexity but i am leary of using a :memory: db as the main db (e.g. TEMP tables can only be created in the main db). This breaks part of the th1ish bindings, but will fix that later/tomorrow. file: [d7cd5f6cb2] check-in: [3273fcaae5] user: stephan branch: trunk, size: 56234
19:31
Added missing cleanup of fsl_db::name. file: [35ffbb94f7] check-in: [5a9f744eb7] user: stephan branch: trunk, size: 53833
16:32
Renamed and modified fsl_db.c → src/fsl_db.c. moved main sources into src/. moved fsl_internal.h to include/fossil. file: [cdf88aac66] check-in: [dd9401360d] user: stephan branch: autosetup, size: 53795
2013-08-06
20:28
more doxygen and minor api additions. file: [2be23239e4] check-in: [4c42387a6b] user: stephan branch: trunk, size: 53788
18:53
Started porting in the content.c/bag.c bits because they are needed before i can continue with manifest crosslinking. Added some missing documentation for the config.h bits. file: [0d687c355d] check-in: [425b5509f1] user: stephan branch: trunk, size: 53166
2013-08-05
21:16
Minor tinkering, doc additions, s/FSL_UUID_SIZE/FSL_UUID_STRLEN/, added FSL_MD5_STRLEN. file: [a5172d22c8] check-in: [0c9cd6f262] user: stephan branch: trunk, size: 51907
19:16
more small steps towards writing a tag to the db. file: [1984ab65b3] check-in: [1c3e40ed15] user: stephan branch: trunk, size: 51878
2013-08-04
10:47
Ported in the symbol-to-rid/uuid resolver bits. file: [c56879a2dc] check-in: [24a991ef4e] user: stephan branch: trunk, size: 49601
08:51
Added fsl_db_g_xxx() family of convenience functions (analog to v1's db_get_xxx()). file: [372a190d83] check-in: [9d8c610ad6] user: stephan branch: trunk, size: 48452
08:23
Added fsl_db_julian_now(), added missing fsl_tag.c. file: [1157cfdf89] check-in: [749b8ca980] user: stephan branch: trunk, size: 47105
2013-08-03
20:13
Lots of cleanups and docs for the deck APIs. Added F Cards, but they are untested so far. file: [a43a8201b4] check-in: [a1bfbda5e6] user: stephan branch: trunk, size: 46933
11:16
work on the julian/unix time bits. file: [885384ed7b] check-in: [ec86edef51] user: stephan branch: trunk, size: 46800
10:17
more work on the manifest/cards API. file: [39f7e5994d] check-in: [3ba9045142] user: stephan branch: trunk, size: 46502
2013-08-01
22:27
Now uses C99 stdint/inttypes if the C99 standard macros are set, else it falls back to some (very possibly non-32/64-bit portable) guesses for its fixed integers. This needs some tweaking/improvement for various platforms. Builds cleanly with -std=c89 now with the help of -Wno-long-long (required for sqlite3.h) file: [9a805fc01e] check-in: [678517cdb5] user: stephan branch: trunk, size: 46204
2013-07-31
22:03
minor tweaking before bed. removed some dead code. file: [7ef4be873b] check-in: [279222067f] user: stephan branch: trunk, size: 46204
18:28
Added fsl_db_transaction_XXX() funcs. Minor cleanups in th1ish binding. file: [a1baed78ff] check-in: [7331fda705] user: stephan branch: trunk, size: 46339
16:40
minor renamings for consistency. Changed fsl_db_role_t to a bitmask (as an experiment). file: [02f146aa56] check-in: [6d5a908310] user: stephan branch: trunk, size: 45954
14:39
s/fossil2.h/fossil.h/g file: [8f6006c36c] check-in: [9c20ce5c00] user: stephan branch: trunk, size: 46060
2013-07-30
15:33
Minor touchups and test code. file: [5ed5ef2c3d] check-in: [2634b9a151] user: stephan branch: attach-dbs, size: 46061
14:49
a lot more refactoring than i set out to do. Lots of work on how the context manages its db instances. Config db is not yet finished. file: [0b7f289e12] check-in: [dd6c2b4256] user: stephan branch: attach-dbs, size: 45872
11:08
Started refactoring the per-fsl_cx db model: one implicit main db (:memory:) with all others attached. This simpifies connection logic quite a bit but might have side-effects i have not yet considered/encountered. This breaks th1ish's understanding of the db arrangment. file: [46e2f12641] check-in: [3251aaf6d8] user: stephan branch: attach-dbs, size: 45235
09:50
Refactored how we keep track of f->dbMain. It is now a pointer/alias for one of (dbCkout, dbConfig, dbRepo). Then forgot to check in before porting in %b/%B format specifiers for fsl_appendf(). file: [74b5afebc7] check-in: [3fb14b6900] user: stephan branch: trunk, size: 43532
2013-07-29
21:50
refactored the config db bits, but it is still untested. Time for bed. file: [051347f261] check-in: [8baf437215] user: stephan branch: trunk, size: 42377
20:32
Started work on fsl_cx_config_open(), but there is still more to do and test there. file: [1ea2f6f1f0] check-in: [b5d31833b5] user: stephan branch: trunk, size: 45065
18:15
Added fsl_db_get_TYPE() family of functions (all untested, i might add). Fixed the empty-string copy case for fsl_strdup() (now creates a length-0 copy). A number of minor cleanups in the DB API. file: [6e0ef1c924] check-in: [56df1f6446] user: stephan branch: trunk, size: 38971
16:43
Added a couple missing fsl_db_bind()ings. Improved the th1ish binding for bind() a bit. Switched build to use -std=c99 because it will not build as is on my 32-bit box without that b/c of a couple uses of PRIu64. file: [665e0dfb17] check-in: [b887183ec8] user: stephan branch: trunk, size: 32393
2013-07-28
17:44
lots of tinkering and minor additions, minor doxygen format changes to please both emacs and doxygen. file: [dc825aae4b] check-in: [9744556a7e] user: stephan branch: trunk, size: 31633
15:04
More API renaming. Added script binding for the checkout-open operation. file: [38cfdd6806] check-in: [4abe63eb90] user: stephan branch: trunk, size: 30889
14:44
Improved fsl_cx_checkout_open(), renamed fsl_repo_checkout_open() (or whatever it was called) to that. Other minor cleanups. file: [d4b0b12f02] check-in: [17c1b674d5] user: stephan branch: trunk, size: 30704
14:08
fsl_repo_open_checkout() is more or less working. A couple details left port. file: [5c94c36fee] check-in: [ae7a82a9d5] user: stephan branch: trunk, size: 30403
11:04
s/fsl_ctx/fsl_cx/g (easier to type). Added doc subdir (doxygen). file: [38b20c013d] check-in: [63bd510e80] user: stephan branch: trunk, size: 26942
10:59
Reworked the g.zMainDbType bits to a fsl_db_role enum. Still untested. file: [f69ff75bad] check-in: [106d92471d] user: stephan branch: trunk, size: 26962
2013-07-27
18:41
ported in lots of fs/ctype-related utilities, required for up-coming db-opening bits. file: [ecf2231049] check-in: [14c73fb9f7] user: stephan branch: trunk, size: 24749
17:14
More refactoring of the fsl_db API. Still not quite happy with the monolith that is fsl_db_open(). file: [d1988e2907] check-in: [5267fe629b] user: stephan branch: trunk, size: 23601
12:48
lots of fixes and touchups, mostly in the db layer. file: [44de175f87] check-in: [afbfb58da5] user: stephan branch: trunk, size: 21018
08:44
more work on the db layer and their script bindings. file: [591345d50a] check-in: [a1e6a120d6] user: stephan branch: trunk, size: 20925
07:47
Some refactoring of fsl_error usage to consolidate some code. file: [965c0278f6] check-in: [2eedf3f4d1] user: stephan branch: trunk, size: 20959
07:14
More work on the db layer. file: [ee12f6043d] check-in: [dc3cbf0f20] user: stephan branch: trunk, size: 20904
04:56
Tweaks to the DB API, starting binding it to th1ish. file: [adbb1de121] check-in: [bad0b996f8] user: stephan branch: trunk, size: 17966
02:54
ported in some of the stat()-related utilities, added th1ish bindings for them. file: [3bf0cd10fc] check-in: [1e02eb9264] user: stephan branch: trunk, size: 17666
01:51
Another big round of minor cleanups and preparation for up-coming bits. file: [64f31e5fba] check-in: [9fa5fb1f96] user: stephan branch: trunk, size: 17495
00:27
All kinds of tinkering. file: [9d505c6200] check-in: [71060e72f1] user: stephan branch: trunk, size: 17452
2013-07-26
23:28
minor tinkering. file: [db35482c98] check-in: [c23174b3d7] user: stephan branch: trunk, size: 17452
21:42
more additions and minor fixes. file: [8d8dc00c57] check-in: [56b3bd7640] user: stephan branch: trunk, size: 17413
20:43
Improved an error message, minor header tweaks. file: [1f15de5035] check-in: [97af42c7d2] user: stephan branch: trunk, size: 15341
20:35
Implemented basic check of is-a-repo/is-up-to-date when repo db is opened. file: [dc90b0635c] check-in: [d6a2953847] user: stephan branch: trunk, size: 15192
19:40
ported in several of the SQL function bindings. file: [d16ac7cf5b] check-in: [b7228fb419] user: stephan branch: trunk, size: 12869
2013-07-25
17:16
Renamed fsl_db.c → src/fsl_db.c. move source code to ./src dir file: [0f2e5602fa] check-in: [6c59afb005] user: bch branch: nbsd, size: 9268
06:42
removed the fsl_ctx arg from routines where it was only used for the allocator. file: [0f2e5602fa] check-in: [52fd2ce85c] user: stephan branch: trunk, size: 9268
06:33
Removed fsl_ctx::allocator, made it a library-wide setting. Started simplifying APIs which use the ctx only for allocation purposes. file: [6e9205fa36] check-in: [c4354d5bb0] user: stephan branch: trunk, size: 9274
2013-07-24
16:09
Added DRH license header. More docs. file: [8518b0f95d] check-in: [7aa2b4246d] user: stephan branch: trunk, size: 9290
13:42
refactoring and doc additions. file: [8da26d0fa9] check-in: [40c924afee] user: stephan branch: trunk, size: 8693
05:30
Added amalgamation build. More work on the db API. file: [c9e21bce14] check-in: [75ff0b452c] user: stephan branch: trunk, size: 6157
04:18
Added: started adding the db API. file: [ff071f1e56] check-in: [c422d24c0c] user: stephan branch: trunk, size: 3128