Doug Coleman
93bf51eb68
ensure-table just does [ create-table ] curry ignore-errors
...
recreate-table is the old ensure-table
2008-04-28 18:21:45 -05:00
Doug Coleman
1c2d252ffd
fix randomly generated ids
2008-04-28 17:17:19 -05:00
Doug Coleman
618e10a6b2
refactor db: native-id -> db-assigned-id
...
assigned-id -> user-assigned-id
2008-04-28 16:48:55 -05:00
Doug Coleman
89ddc96b44
Merge branch 'master' of git://factorcode.org/git/factor
2008-04-23 22:23:33 -05:00
Doug Coleman
358bbab861
fix timestamps in db
2008-04-23 22:23:22 -05:00
Slava Pestov
d9efbb550d
Fix db inference
2008-04-23 19:40:17 -05:00
Doug Coleman
6a0dc9f024
fix unit tests
2008-04-23 00:07:26 -05:00
Doug Coleman
fc5ca34eda
fix teh bugs pl0x
2008-04-21 13:11:19 -05:00
Slava Pestov
3af81b2262
Fix unit tests
2008-04-21 04:42:34 -05:00
Doug Coleman
411fb2f97d
postgresql interval and range and sequence queries
2008-04-21 00:45:14 -05:00
Doug Coleman
be8ac1d7b6
use new lookup for sqlite
2008-04-20 16:57:50 -05:00
Doug Coleman
7293a4f4f8
clean up the tuples tests
2008-04-20 00:20:21 -05:00
Doug Coleman
4184a3ce54
partial conversion of postgres
2008-04-19 23:18:12 -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
6044cc4b39
make throwable, nonthrowable, retryable a type
2008-04-18 16:01:31 -05:00
Doug Coleman
afaab57f83
interval, range queries in sqlite
2008-04-18 12:43:21 -05:00
Doug Coleman
336e30b054
add interval queries for sqlite
2008-04-17 19:43:07 -05:00
Doug Coleman
719fc91432
fix sqlite
2008-04-07 15:27:35 -05:00
Doug Coleman
880a3a2af4
before major refactoring
2008-03-17 14:14:04 -05:00
Doug Coleman
16e6f36fc9
refactor db
...
start on random-id
2008-03-17 00:26:05 -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
Slava Pestov
86ed87da0c
Get some db words to infer
2008-03-15 07:57:38 -05:00
Doug Coleman
4398458248
add ensure-table
2008-03-12 23:57:56 -05:00
Slava Pestov
120c9cacb7
Fixing 64-bit image generation
2008-03-12 01:54:29 -05:00
Doug Coleman
f56b54077b
more unit tests
2008-03-11 00:18:57 -05:00
Doug Coleman
a5843a360c
fix a bug that a unit test found
2008-03-11 00:09:49 -05:00
Doug Coleman
69f213fdce
postgresql can store binary blobs!
2008-03-11 00:05:22 -05:00
Doug Coleman
563565d76d
postgresql almost works with blobs
2008-03-10 17:00:28 -05:00
dharmatech
a336cb7570
Unit test fixes
2008-03-06 13:46:15 -06:00
Slava Pestov
626334303c
Fix build dir pollution in unit tests
2008-03-06 03:03:07 -06:00
Doug Coleman
b8eb5abd13
before major query overhaul
2008-03-05 20:56:40 -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
15947d6853
start moving db to new-slots
...
redo the tuple tests so it's a bit easier to work with
fix a bug where selecting based on an empty tuple wouldn't work
2008-03-03 08:56:06 -06:00
Slava Pestov
e98cd1fd59
New convention for unit tests
2008-03-01 17:00:45 -05:00
Doug Coleman
eb8207a784
fix with-disposals to work on seq or obj
2008-02-27 19:36:32 -06:00
Doug Coleman
3fcac9bd3d
make postgresql pass unit tests
2008-02-27 18:47:14 -06:00
Doug Coleman
8cdec0202b
fix sqlite
...
remove reset-statement from db vocab
2008-02-27 18:28:32 -06:00
Doug Coleman
6ea88c2e82
remove persist word
...
add another couple of unit tests
2008-02-25 15:31:07 -06:00
Doug Coleman
19d771f827
re-add delete-tuple
...
make all unit tests pass for assigned-id
2008-02-25 15:13:00 -06:00
Doug Coleman
94b183d5e6
db.tuples tests pass for postgresql
...
redo the with-db word
2008-02-25 14:50:42 -06:00
Doug Coleman
a4518150a7
fix postgresql connect error message
...
fix unit test
2008-02-24 12:32:36 -06:00
Doug Coleman
67876e13d9
break sqlite
...
postgresql create/drop/insert/update/delete/select works
2008-02-22 17:06:00 -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
d6ede4dda5
intermediate work on db, everything is broken
2008-02-18 16:52:00 -06:00
Doug Coleman
3028416a4c
checking in db before a major overhaul
2008-02-15 20:37:54 -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