Commit graph

25 commits

Author SHA1 Message Date
Aubrey Holland
857c5cf93c add mongo_mapper support 2009-12-23 13:54:17 -05:00
yozhyk
670dc0f71d added TRUNCADE CASCADE for Postgres (for truncating tables with FKs) 2009-12-21 13:13:36 +08:00
snusnu
1a37b0daed now compatible with datamapper 0.10.0
* I'm not sure though, if this is the right patch to make this work,
  since it depends on private 'quote_name' api. However, I assume
  that 'quote_table_name' was private api too.

* TODO: find out if this is backwards compatible
2009-12-21 13:13:15 +08:00
Adam Meehan
2548bd7125 truncation support for SQL Server adapter
Signed-off-by: Ben Mabey <ben@benmabey.com>
2009-08-04 22:13:20 +08:00
Ben Mabey
3a5d52dba5 removed extraneous TruncationBase class definition. 2009-05-08 19:57:54 -06:00
Ben Mabey
1f1c3452c5 Extracted TruncationBase into own file and only require it for the
strategies that need it.
2009-05-08 18:17:46 -06:00
Ben Mabey
612f33c738 whitespace 2009-05-08 18:03:29 -06:00
snusnu
971cdc9460 introduced common base class for truncation strategies. 2009-05-07 05:06:49 +02:00
snusnu
5bf0863cc5 use DataMapper.repository instead of repository. 2009-05-07 04:40:40 +02:00
snusnu
03fcbd6f79 obvious fixes for postgres adapter. still not tested. 2009-05-07 04:39:47 +02:00
snusnu
8767175833 support truncation with datamapper on mysql and sqlite3 2009-05-07 04:23:31 +02:00
snusnu
63147b21ce basic support for transaction/truncation with datamapper 2009-05-05 17:06:02 +02:00
Michael MacDonald
509eed908f Added quoting of table names for truncation 2009-05-01 10:53:01 +10:00
Alberto Perdomo
80408434da Added truncation support for Postgresql. 2009-03-11 18:46:00 +00:00
Kamal Fariz Mahyuddin
6a646819d7 Add JdbcAdapter#truncate_table 2009-03-05 18:05:38 +08:00
Ben Mabey
066ba919ad DatabaseCleaner() method was cool, but really isn't needed... 2009-03-04 22:17:32 -07:00
Ben Mabey
3fc800e17a added clean_with shortcut method 2009-03-04 22:16:04 -07:00
Ben Mabey
43ad34fc2b added DatabaseCleaner() method to return a strategy 2009-03-04 22:11:58 -07:00
Ben Mabey
a96c0d5f93 truncation AR strategy now takes :only and :except so you can manage the tables you want to truncate 2009-03-04 21:31:12 -07:00
Ben Mabey
9fa3eb0818 allow setting of orm and skip autodetect 2009-03-04 14:00:20 -07:00
Ben Mabey
27e8b337f7 configuration change 2009-03-04 13:33:58 -07:00
Ben Mabey
55bc444994 added truncation strategy for AR. improved error messaging 2009-03-04 13:18:13 -07:00
Ben Mabey
5e8df327d8 cucumber feature and example app done. Got the AR transaction strategy done as well. 2009-03-03 21:53:21 -07:00
Ben Mabey
13a59fc3af initial work done. Have failing example feauture and main config module done. 2009-03-01 01:45:58 -07:00
Ben Mabey
00299245c8 Initial commit to database_cleaner. 2009-02-26 21:42:20 -07:00