Doug Coleman
a7afae250d
clean up code some
...
make \# retries user configurable
2008-06-01 00:48:38 -05:00
Doug Coleman
18f139394e
remove throwable conecpt from db
2008-05-31 23:38:10 -05:00
Slava Pestov
a84880d770
Fix parameter ordering
2008-05-25 19:45:21 -05:00
Slava Pestov
2cbfa9c2d7
Move destructors to core
2008-05-14 23:23:12 -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
b7c1f9dbe8
extra changes:
...
index* -> index-from
last-index* -> last-index-from
1 tail -> rest
1 tail-slice -> rest-slice
subset -> filter
prepose
find* -> find-from
find-last* -> find-last-from
before, after generic, < for integers
make between? work for timestamps
2008-04-25 23:17:08 -05:00
Slava Pestov
d9efbb550d
Fix db inference
2008-04-23 19:40:17 -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
336e30b054
add interval queries for sqlite
2008-04-17 19:43:07 -05:00
Doug Coleman
72080fda4a
construct-boa -> boa
...
construct-empty -> new
2008-04-13 15:06:27 -05:00
Doug Coleman
b0e322bffc
refactor db some
2008-04-07 14:19:29 -05:00
Doug Coleman
ec620ef0c8
inheritance with postgresql
2008-04-05 20:22:33 -05:00
Slava Pestov
adb1dd14d0
Rename tuples vocab to classes.tuple for consistency
2008-03-29 03:34:48 -05:00
Slava Pestov
02727576c2
New slots are now in the core
2008-03-20 15:30:59 -05:00
Doug Coleman
16e6f36fc9
refactor db
...
start on random-id
2008-03-17 00:26:05 -05:00
Doug Coleman
0e4ee18110
updating postgresql
2008-03-10 13:56:58 -05: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
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
Doug Coleman
78266a3fc8
cache statements in db
2008-02-27 19:30:31 -06:00
Doug Coleman
8cdec0202b
fix sqlite
...
remove reset-statement from db vocab
2008-02-27 18:28:32 -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
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
c12600815f
add lots of unit tests to postgresql
...
select queries are generated now
2008-02-19 16:00:50 -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
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
c9a7f35e9c
remove spurious db.sql
2008-02-04 13:32:27 -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
2c1bad2254
improve the db protocol and update sqlite to use it
2008-02-02 23:28:33 -06:00
Doug Coleman
71358d3c4a
first commit of db stuff
2008-02-01 17:43:44 -06:00