John Benediktsson
63b0593824
sequences: swap stack arguments for start/start*/subseq?.
...
It is more natural to be ( seq subseq -- ? ).
2017-01-20 22:49:53 -08:00
Björn Lindqvist
b17590db24
calendar.*: replacing hms>timestamp and timestamp>hms with duration variants
...
hms>duration is better because a timestamp without a date is
invalid. This also makes it so the SQL TIME column maps to duration. Now
we can add some validation so that you aren't allowed to create invalid
timestamps.
2017-01-05 12:38:05 +01:00
Björn Lindqvist
ebdf57d175
db.sqlite: fix the delete constraint for the restrict case
2016-08-25 13:52:44 +02:00
Björn Lindqvist
66083e263c
db.sqlite: fix text of generated triggers
...
An opening brace was missing for some variables
2016-08-25 13:10:42 +02:00
John Benediktsson
6ec952c436
db.errors: move to db.{postgresql,sqlite}.errors.
2016-03-22 12:44:50 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
Doug Coleman
1fcf96cada
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon.
2015-07-25 22:59:56 -07:00
John Benediktsson
7e4d1178c3
interpolate: don't break backwards compatibility.
2015-04-18 20:22:29 -07:00
John Benediktsson
c5ed2c89fe
interpolate: some fixes for recent API change.
2015-04-18 19:36:49 -07:00
Doug Coleman
8b51ddcbe2
sqlite: Fix using.
2012-08-26 11:57:24 -07:00
Doug Coleman
22178a9475
db.sqlite: Fix using.
2012-08-26 01:20:06 -07:00
John Benediktsson
604f242862
db.sqlite: update word documentation.
2011-03-07 15:06:28 -08:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Joe Groff
61d579360d
remove non-primitive-related uses of tuck from basis
2009-11-05 17:03:24 -06:00
Doug Coleman
05ddfb37dc
fixing docs
2009-09-23 12:52:42 -05:00
Doug Coleman
eceed177d6
replace usages of <" with """
2009-09-20 22:42:40 -05:00
sheeple
a1f3e5695b
fix circularity in db
2009-02-20 22:59:01 -06:00
Doug Coleman
b54833c728
remove a bunch of trigger deletion code -- triggers get deleted when tables are dropped
2009-02-20 20:11:26 -06:00
Doug Coleman
6eaa5aee24
fix compile error
2009-02-20 17:29:11 -06:00
Doug Coleman
8b5a2f4a0e
fix sqlite triggers -- NEW.table-id not NEW.foreign-table-id
2009-02-20 14:52:38 -06:00
Doug Coleman
a61bac7ab5
fix sqlite foreign triggers create/delete bug
...
ignore-errors only if there is a sql spec defined for the class until database-specific errors are implemented
2009-02-19 18:26:11 -06:00
Doug Coleman
8993e0536b
rename db-table to db-table-name, use db-table-name instead of class name in creating triggers for sqlite
2009-02-12 17:29:31 -06:00
Daniel Ehrenberg
eaaf2af7b7
Fixing db.sqlite bug: database schema don't need primary keys
2009-02-12 01:39:14 -06:00
Doug Coleman
3c408342ef
renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail
2009-01-29 22:19:07 -06:00
Doug Coleman
2c678e64dc
rename db symbol -> db-connection
2008-12-17 21:04:17 -06:00
Doug Coleman
4329578b2f
add a new db-connection tuple for live database connections instead of reusing the db setup tuple
...
update sqlite and postgresql backends for the change
2008-12-17 19:35:53 -06:00
Doug Coleman
14fb58f448
swap ... 3append -> surround in basis
2008-12-06 18:58:45 -06:00
Doug Coleman
869fbf27a1
remove join-space from db
2008-12-04 00:06:02 -06:00
Doug Coleman
93e84d7bcd
fix some database issues - sqlite booleans, >>group and >>order don't require arrays now, they can be passed strings for a single order or group by
2008-10-18 15:15:27 -05:00
Doug Coleman
2779103b63
add on-update
2008-10-10 15:32:36 -05:00
Doug Coleman
83f1634219
clean up dispose a bit
2008-10-09 15:42:23 -05:00
Doug Coleman
ea69c8996f
use ERROR:, inline database combinator examples
2008-10-08 19:06:19 -05:00
Doug Coleman
dc4e989002
clean up the db code some, more docs
2008-10-03 20:19:20 -05:00
Doug Coleman
695d3dd2d2
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-02 12:52:42 -05:00
Doug Coleman
67683dde20
make-db is gone, use <sqlite-db> or <postgresql-db> instead. docs. use dip instead of >r r>
2008-10-02 12:11:56 -05:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Doug Coleman
f41733faf1
add IGNORE types to tuple slots for select
2008-09-30 11:00:44 -05:00
Doug Coleman
34ce3e13e4
add foreign key integrity to sqlite
2008-09-29 23:43:34 -05:00
Doug Coleman
fa809ef9f4
remove debug info
2008-09-28 17:16:55 -05:00
Doug Coleman
4547b713cf
references with cascade on delete work
2008-09-27 16:26:21 -05:00
Doug Coleman
68b6515ac2
some work on foreign keys
2008-09-27 15:56:43 -05:00
Doug Coleman
dc9f374570
sort of support foreign keys
2008-09-27 14:30:12 -05:00
Doug Coleman
511ecaff59
add composite primary keys to db
2008-09-27 14:07:39 -05:00
Doug Coleman
e270db3768
fix usings
2008-09-24 19:47:32 -05:00
Doug Coleman
aa8c85f010
cleaning up db -- removed some unused words, moved words around
2008-09-09 14:44:14 -05:00
Slava Pestov
aea0fed14c
Fixing basis -> extra dependencies
2008-09-05 19:29:14 -05:00
Doug Coleman
b23ac6f137
fix stack effects, remove two redundant sqlite ffi words, minor cleanups
2008-09-02 22:50:46 -05:00
Doug Coleman
c30a6511d1
move db to basis
2008-09-02 18:26:31 -05:00