Commit Graph

28 Commits (ca1484b94c72b372081483c0e00485ddc1cde38a)

Author SHA1 Message Date
Doug Coleman 7531b3a1b5 use sqlite_prepare_v2 (freebsd64 now has this symbol too) 2008-04-23 02:46:21 -05:00
Doug Coleman ec54529923 use sqlite_prepare instead of sqlite_prepare_v2 2008-04-22 18:06:50 -05:00
Doug Coleman 896c920d85 retryable statements actually retry now 2008-04-19 22:09:36 -05:00
Doug Coleman a81aaa6100 add random-id, still needs to retry if insert fails 2008-04-19 19:27:54 -05:00
Doug Coleman 336e30b054 add interval queries for sqlite 2008-04-17 19:43:07 -05:00
Doug Coleman 5fa3bd8c74 cond/case 2008-04-11 12:55:57 -05:00
Doug Coleman 880a3a2af4 before major refactoring 2008-03-17 14:14:04 -05:00
Slava Pestov 604a895f99 Merge branch 'master' of git://factorcode.org/git/factor 2008-03-17 03:28:50 -05:00
Slava Pestov ea2723a5a0 Fix serialization of circular structure 2008-03-16 23:41:26 -05:00
Doug Coleman 382868b362 add a test to make sure assigned ids can't be inserted twice
fix a bug with sqlite finalizers
2008-03-15 23:21:53 -05:00
Doug Coleman c3d41967f7 fix some formatting 2008-03-13 02:10:43 -05:00
Doug Coleman f56b54077b more unit tests 2008-03-11 00:18:57 -05:00
Doug Coleman 0e4ee18110 updating postgresql 2008-03-10 13:56:58 -05:00
Slava Pestov 09352a9327 Cleanup 2008-03-08 04:01:43 -06:00
Doug Coleman dfb3dac5fd sqlite now gets return types with the optimized native functions
removed a hack in type conversion
serialize arbitrary factor objects to db
2008-03-05 19:59:29 -06:00
Doug Coleman 3eb7830d2c before major overhaul on return values 2008-03-05 19:08:33 -06:00
Doug Coleman d1e5fddbed fix a couple of minor bugs before major overhaul 2008-02-21 15:57:18 -06:00
Doug Coleman 779bd8c8d9 sql is correctly generated for sqlite and postgresql up to basic selects 2008-02-20 11:30:48 -06:00
Doug Coleman d8e7f0c84a add type conversion to the database library for sqlite and postgresql 2008-02-15 14:01:44 -06:00
Doug Coleman def53a07d8 lose the bad codez in sqlite
change the db api to more-rows? and advance-row instead of just advance-row
sql-command takes a string or a seq of strings
postgresql create-sql handles native/assigned ids
2008-02-14 23:39:20 -06:00
Doug Coleman 86667aee23 execute-statement is now a word not a generic
sqlite works for tuple-tests
postgresql create/drop/insert works better now
2008-02-14 01:27:54 -06:00
Doug Coleman eb75685031 fix a bug in sqlite
add execute-statment-row-id to db
some work on postgresql
2008-02-13 16:51:16 -06:00
Doug Coleman d790e828d3 sqlite now binds by type
all sqlite unit tests pass
change rebind-statement to reset-statement
2008-02-12 17:10:56 -06:00
Doug Coleman 00a7df11a9 clean up db code
ready to implement types for bind-statement
2008-02-12 15:47:01 -06:00
Doug Coleman afa71627ee add db.types, db.tuples and some code in progress
create-sql works for a limited test case in sqlite
2008-02-10 23:11:16 -06:00
Doug Coleman bb1e06dd8d add copyright notices
update postgresql for new db protocol
make unit tests pass
2008-02-03 15:06:31 -06:00
Doug Coleman 1b03538caa fix compile errors in sqlite 2008-02-03 00:14:27 -06:00
Doug Coleman 71358d3c4a first commit of db stuff 2008-02-01 17:43:44 -06:00