QaDeS-qades-sequel 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/CHANGELOG +2322 -0
  2. data/COPYING +19 -0
  3. data/README.rdoc +670 -0
  4. data/Rakefile +180 -0
  5. data/bin/sequel +104 -0
  6. metadata +64 -0
@@ -0,0 +1,2322 @@
1
+ === HEAD
2
+
3
+ * Deprecate Database#query and Dataset#query, require 'sequel/extensions/query' if you want them
4
+
5
+ * Deprecate Dataset#paginate and #each_page, require 'sequel/extensions/pagination' if you want them
6
+
7
+ * Fix ~{:bool_col=>true} and related inversions of boolean values (jeremyevans)
8
+
9
+ * Add disable_insert_returning method to PostgreSQL datasets, so they fallback to just using INSERT (jeremyevans)
10
+
11
+ * Don't use savepoints by default on PostgreSQL, use the :savepoint option to Database#transaction to use a savepoint (jeremyevans)
12
+
13
+ * Deprecate Database#transaction accepting a server symbol argument, use an options hash with the :server option (jeremyevans)
14
+
15
+ * Add Model.use_transactions for setting whether models should use transactions when destroying/saving records (jeremyevans, mjwillson)
16
+
17
+ * Deprecate Model::Validation::Errors, use Model::Errors (jeremyevans)
18
+
19
+ * Deprecate string inflection methods, require 'sequel/extensions/inflector' if you use them (jeremyevans)
20
+
21
+ * Deprecate Model validation class methods, override Model#validate instead or Model.plugin validation_class_methods (jeremyevans)
22
+
23
+ * Deprecate Model schema methods, use Model.plugin :schema (jeremyevans)
24
+
25
+ * Deprecate Model hook class methods, use instance methods instead or Model.plugin :hook_class_methods (jeremyevans)
26
+
27
+ * Deprecate Model.set_sti_key, use Model.plugin :single_table_inheritance (jeremyevans)
28
+
29
+ * Deprecate Model.set_cache, use Model.plugin :caching (jeremyevans)
30
+
31
+ * Move most model instance methods into Model::InstanceMethods, for easier overriding of instance methods for all models (jeremyevans)
32
+
33
+ * Move most model class methods into Model::ClassMethods, for easier overriding of class methods for all models (jeremyevans)
34
+
35
+ * Deprecate String#to_date, #to_datetime, #to_time, and #to_sequel_time, use require 'sequel/extensions/string_date_time' if you want them (jeremyevans)
36
+
37
+ * Deprecate Array#extract_options! and Object#is_one_of? (jeremyevans)
38
+
39
+ * Deprecate Object#meta_def, #meta_eval, and #metaclass (jeremyevans)
40
+
41
+ * Deprecate Module#class_def, #class_attr_overridable, #class_attr_reader, #metaalias, #metaattr_reader, and #metaatt_accessor (jeremyevans)
42
+
43
+ * Speed up the calling of most column accessor methods, and reduce memory overhead of creating them (jeremyevans)
44
+
45
+ * Deprecate Model#set_restricted using Model#[] if no setter method exists, a symbol is used, and the columns are not set (jeremyevans)
46
+
47
+ * Deprecate Model#set_with_params and #update_with_params (jeremyevans)
48
+
49
+ * Deprecate Model#save!, use Model.save(:validate=>false) (jeremyevans)
50
+
51
+ * Deprecate Model#dataset (jeremyevans)
52
+
53
+ * Deprecate Model.is and Model.is_a, use Model.plugin for plugins (jeremyevans)
54
+
55
+ * Deprecate Model.str_columns, Model#str_columns, #set_values, #update_values (jeremyevans)
56
+
57
+ * Deprecate Model.delete_all, .destroy_all, .size, .uniq, and .import (jeremyevans)
58
+
59
+ * Copy all current dataset options when calling Model.db= (jeremyevans)
60
+
61
+ * Deprecate Model.belongs_to, Model.has_many, and Model.has_and_belongs_to_many (jeremyevans)
62
+
63
+ * Remove SQL::SpecificExpression, have subclasses inherit from SQL::Expression instead (jeremyevans)
64
+
65
+ * Deprecate SQL::CastMethods#cast_as (jeremyevans)
66
+
67
+ * Deprecate calling Database#schema without a table argument (jeremyevans)
68
+
69
+ * Remove cached version of @db_schema in model instances to reduce memory and marshalling overhead (tmm1)
70
+
71
+ * Deprecate Dataset#quote_column_ref and Dataset#symbol_to_column_ref (jeremyevans)
72
+
73
+ * Deprecate Dataset#size and Dataset#uniq (jeremyevans)
74
+
75
+ * Deprecate passing options to Dataset#each, #all, #single_record, #single_value, #sql, #select_sql, #update, #update_sql, #delete, #delete_sql, and #exists (jeremyevans)
76
+
77
+ * Deprecate Dataset#[Integer] and Dataset#import (jeremyevans)
78
+
79
+ * Deprecate Dataset#create_view and Dataset#create_or_replace_view (jeremyevans)
80
+
81
+ * Model datasets now have a model accessor that returns the related model (jeremyevans)
82
+
83
+ * Model datasets no longer have :models and :polymorphic_key options (jeremyevans)
84
+
85
+ * Deprecate Dataset.dataset_classes, Dataset#model_classes, Dataset#polymorphic_key, and Dataset#set_model (jeremyevans)
86
+
87
+ * Allow Database#get and Database#select to take a block (jeremyevans)
88
+
89
+ * Deprecate Database#>> (jeremyevans)
90
+
91
+ * Deprecate String#to_blob and Sequel::SQL::Blob#to_blob (jeremyevans)
92
+
93
+ * Deprecate use of Symbol#| for SQL array subscripts, add Symbol#sql_subscript (jeremyevans)
94
+
95
+ * Deprecate Symbol#to_column_ref (jeremyevans)
96
+
97
+ * Deprecate String#expr (jeremyevans)
98
+
99
+ * Deprecate Array#to_sql, String#to_sql, and String#split_sql (jeremyevans)
100
+
101
+ * Deprecate passing an array to Database#<< (jeremyevans)
102
+
103
+ * Deprecate Range#interval (jeremyevans)
104
+
105
+ * Deprecate Enumerable#send_each (jeremyevans)
106
+
107
+ * Deprecate Hash#key on ruby 1.8, change some SQLite adapter constants (jeremyevans)
108
+
109
+ * Deprecate Sequel.open, Sequel.use_parse_tree=?, and the upcase_identifier methods (jeremyevans)
110
+
111
+ * Deprecate virtual row blocks without block arguments, unless Sequel.virtual_row_instance_eval is enabled (jeremyevans)
112
+
113
+ * Support schema parsing in the Oracle adapter (jacaetevha)
114
+
115
+ * Allow virtual row blocks to be instance_evaled, add Sequel.virtual_row_instance_eval= (jeremyevans)
116
+
117
+ === 2.11.0 (2009-03-02)
118
+
119
+ * Optimize Model.[] by using static sql when possible, for a 30-40% speed increase (jeremyevans)
120
+
121
+ * Add Dataset#with_sql, which returns a clone of the datatset with static SQL (jeremyevans)
122
+
123
+ * Refactor Dataset#literal so it doesn't need to be overridden in subadapters, for a 20-25% performance increase (jeremyevans)
124
+
125
+ * Remove SQL::IrregularFunction, no longer used internally (jeremyevans)
126
+
127
+ * Allow String#lit to take arguments and return a SQL::PlaceholderLiteralString (jeremyevans)
128
+
129
+ * Add Model#set_associated_object, used by the many_to_one setter method, for easier overriding (jeremyevans)
130
+
131
+ * Allow use of database independent types when casting (jeremyevans)
132
+
133
+ * Give association datasets knowledge of the model object that created them and the related association reflection (jeremyevans)
134
+
135
+ * Make Dataset#select, #select_more, #order, #order_more, and #get take a block that yields a SQL::VirtualRow, similar to #filter (jeremyevans)
136
+
137
+ * Fix stored procedures in MySQL adapter when multiple arguments are used (clivecrous)
138
+
139
+ * Add :conditions association option, for easier filtering of associated objects (jeremyevans)
140
+
141
+ * Add :clone association option, for making clones of existing associations (jeremyevans)
142
+
143
+ * Handle typecasting invalid date strings (and possible other types) correctly (jeremyevans)
144
+
145
+ * Add :compress=>false option to MySQL adapter to turn off compression of client-server connection (tmm1)
146
+
147
+ * Set SQL_AUTO_IS_NULL=0 on MySQL connections, disable with :auto_is_null=>false (tmm1)
148
+
149
+ * Add :timeout option to MySQL adapter, default to 30 days (tmm1)
150
+
151
+ * Set MySQL encoding using Mysql#options so it works across reconnects (tmm1)
152
+
153
+ * Fully support blobs on SQLite (jeremyevans)
154
+
155
+ * Add String#to_sequel_blob, alias String#to_blob to that (jeremyevans)
156
+
157
+ * Fix default index names when a non-String or Symbol column is used (jeremyevans)
158
+
159
+ * Fix some ruby -w warnings (jeremyevans) (#259)
160
+
161
+ * Fix issues with default column values, table names, and quoting in the rename_column and drop_column support in shared SQLite adapter (jeremyevans)
162
+
163
+ * Add rename_column support to SQLite shared adapter (jmhodges)
164
+
165
+ * Add validates_inclusion_of validation (jdunphy)
166
+
167
+ === 2.10.0 (2009-02-03)
168
+
169
+ * Don't use a default schema any longer in the shared PostgreSQL adapter (jeremyevans)
170
+
171
+ * Make Dataset#quote_identifier return LiteralStrings as-is (jeremyevans)
172
+
173
+ * Support symbol keys and unnested hashes in the sequel command line tool's yaml config support (jeremyevans)
174
+
175
+ * Add schema parsing support to the JDBC adapter (jeremyevans)
176
+
177
+ * Add per-database type translation support for schema changes, translating ruby classes to database specific types (jeremyevans)
178
+
179
+ * Add Sequel::DatabaseConnectionError, for indicating that Sequel wasn't able to connect to the database (jeremyevans)
180
+
181
+ * Add validates_not_string validation, useful in conjunction with raise_on_typecast_failure = false (jeremyevans)
182
+
183
+ * Don't modify Model#new? and Model#changed_columns when saving a record until after the after hooks have been run (tamas, jeremyevans)
184
+
185
+ * Database#quote_identifiers= now affects future schema modification statements, even if it is not used before one of the schema modification statements (jeremyevans)
186
+
187
+ * Fix literalization of blobs when using the PostreSQL JDBC subadapter (jeremyevans)
188
+
189
+ * Fix literalization of date and time types when using the MySQL JDBC subadapter (jeremyevans)
190
+
191
+ * Convert some Java specific types to ruby types on output in the JDBC adapter (jeremyevans)
192
+
193
+ * Add Database#tables method to JDBC adapter (jeremyevans)
194
+
195
+ * Add H2 JDBC subadapter (logan_barnett, david_koontz, james_britt, jeremyevans)
196
+
197
+ * Add identifer_output_method, used for converting identifiers coming out of the database, replacing the lowercase support on some databases (jeremyevans)
198
+
199
+ * Add identifier_input_method, used for converting identifiers going into the database, replacing upcase_identifiers (jeremyevans)
200
+
201
+ * Add :allow_missing validation option, useful if the database provides a good default (jeremyevans)
202
+
203
+ * Fix literalization of SQL::Blobs in DataObjects and JDBC adapter's postgresql subadapters when ruby 1.9 is used (jeremyevans)
204
+
205
+ * When using standard strings in the postgres adapter with the postgres-pr driver, use custom string escaping to prevent errors (jeremyevans)
206
+
207
+ * Before hooks now run in reverse order of being added, so later ones are run first (tamas)
208
+
209
+ * Add Firebird adapter, requires Firebird ruby driver located at http://github.com/wishdev/fb (wishdev)
210
+
211
+ * Don't clobber the following Symbol instance methods when using ruby 1.9: [], <, <=, >, >= (jeremyevans)
212
+
213
+ * Quote the table name and the index for PostgreSQL index creation (jeremyevans)
214
+
215
+ * Add DataObjects adapter, supporting PostgreSQL, MySQL, and SQLite (jeremyevans)
216
+
217
+ * Add ability for Database#create_table to take options, support specifying MySQL engine, charset, and collate per table (pusewicz, jeremyevans)
218
+
219
+ * Add Model.add_hook_type class method, for adding your own hook types, mostly for use by plugin authors (pkondzior, jeremyevans)
220
+
221
+ * Add Sequel.version for getting the internal version of Sequel (pusewicz, jeremyevans)
222
+
223
+ === 2.9.0 (2009-01-12)
224
+
225
+ * Add -L option to sequel command line tool to load all .rb files in the given directory (pkondzior, jeremyevans)
226
+
227
+ * Fix Dataset#destroy for model datasets that can't handle nested queries (jeremyevans)
228
+
229
+ * Improve the error messages in parts of Sequel::Model (jeremyevans, pusewicz)
230
+
231
+ * Much better support for Dataset#{union,except,intersect}, allowing chaining and respecting order (jeremyevans)
232
+
233
+ * Default to logging only WARNING level messages when connecting to PostgreSQL (jeremyevans)
234
+
235
+ * Fix add_foreign_key for MySQL (jeremyevans, aphyr)
236
+
237
+ * Correctly literalize BigDecimal NaN and (+-)Infinity values (jeremyevans) (#256)
238
+
239
+ * Make Sequel raise an Error if you attempt to subclass Sequel::Model before setting up a database connection (jeremyevans)
240
+
241
+ * Add Sequel::BeforeHookFailed exception to be raised when a record fails because a before hook fails (bougyman)
242
+
243
+ * Add Sequel::ValidationFailed exception to be raised when a record fails because a validation fails (bougyman)
244
+
245
+ * Make Database#schema raise an error if given a table that doesn't exist (jeremyevans) (#255)
246
+
247
+ * Make Model#inspect call Model#inspect_values private method for easier overloading (bougyman)
248
+
249
+ * Add methods to create and drop functions, triggers, and procedural languages on PostgreSQL (jeremyevans)
250
+
251
+ * Fix Dataset#count when using UNION, EXCEPT, or INTERSECT (jeremyevans)
252
+
253
+ * Make SQLite keep table's primary key information when dropping columns (jmhodges)
254
+
255
+ * Support dropping indicies on SQLite (jmhodges)
256
+
257
+ === 2.8.0 (2008-12-05)
258
+
259
+ * Support drop column operations inside a transaction on sqlite (jeremyevans)
260
+
261
+ * Support literal strings with placeholders and subselects in prepared statements (jeremyevans)
262
+
263
+ * Have the connection pool remove disconnected connections when the adapter supports it (jeremyevans)
264
+
265
+ * Make Dataset#exists return a LiteralString (jeremyevans)
266
+
267
+ * Support multiple SQL statements in one query in the MySQL adapter (jeremyevans)
268
+
269
+ * Add stored procedure support for the MySQL and JDBC adapters (jeremyevans, krsgoss) (#252)
270
+
271
+ * Support options when altering a column's type (for changing enums, varchar size, etc.) (jeremyevans)
272
+
273
+ * Support AliasedExpressions in tables when using implicitly qualified arguments in joins (jeremyevans)
274
+
275
+ * Support Dataset#except on Oracle (jeremyevans)
276
+
277
+ * Raise errors when EXCEPT/INTERSECT is used when not supported (jeremyevans)
278
+
279
+ * Fix ordering of UNION, INTERSECT, and EXCEPT statements (jeremyevans) (#253)
280
+
281
+ * Support aliasing subselects in the Oracle adapter (jeremyevans)
282
+
283
+ * Add a subadapter for the Progress RDBMS to the ODBC adapter (:db_type=>'progress') (groveriffic) (#251)
284
+
285
+ * Make MySQL and Oracle adapters raise an Error if asked to do a SELECT DISTINCT ON (jeremyevans)
286
+
287
+ * Set standard_conforming_strings = ON by default when using PostgreSQL, turn off with Sequel::Postgres.force_standard_strings = false (jeremyevans) (#247)
288
+
289
+ * Fix Database#rename_table when using PostgreSQL (jeremyevans) (#248)
290
+
291
+ * Whether to upcase or quote identifiers can now be set separately, via Sequel.upcase_identifiers= or the :upcase_identifiers database option (jeremyevans)
292
+
293
+ * Support transactions in the ODBC adapter (dlee)
294
+
295
+ * Support multi_insert_sql and unicode string literals in MSSQL shared adapter (dlee)
296
+
297
+ * Make PostgreSQL use the default schema if parsing the schema for all tables at once, even if :schema=>nil option is used (jeremyevans)
298
+
299
+ * Make MySQL adapter not raise an error when giving an SQL::Identifier object to the schema modification methods such as create_table (jeremyevans)
300
+
301
+ * The keys of the hash returned by Database#schema without a table name are now quoted strings instead of symbols (jeremyevans)
302
+
303
+ * Make Database#schema to handle implicit schemas on all databases and multiple identifier object types (jeremyevans)
304
+
305
+ * Remove Sequel.odbc_mssql method (jeremyevans) (#249)
306
+
307
+ * More optimization of Model#initialize (jeremyevans)
308
+
309
+ * Treat interval as it's own type, not an integer type (jeremyevans)
310
+
311
+ * Allow use of implicitly qualified symbol as argument to Symbol#qualify (:a.qualify(:b__c)=>b.c.a), fixes model associations in different schemas (jeremyevans) (#246)
312
+
313
+ === 2.7.1 (2008-11-04)
314
+
315
+ * Fix PostgreSQL Date optimization so that it doesn't reject dates like 11/03/2008 (jeremyevans)
316
+
317
+ === 2.7.0 (2008-11-03)
318
+
319
+ * Transform AssociationReflection from a single class to a class hierarchy (jeremyevans)
320
+
321
+ * Optimize Date object creation in PostgreSQL adapter (jeremyevans)
322
+
323
+ * Allow easier creation of custom association types, though support for them may still be suboptimal (jeremyevans)
324
+
325
+ * Add :eager_grapher option to associations, which the user can use to override the default eager_graph code (jeremyevans)
326
+
327
+ * Associations are now inherited when a model class is subclassed (jeremyevans)
328
+
329
+ * Instance methods added by associations are now added to an anonymous module the class includes, allowing you to override them and use super (jeremyevans)
330
+
331
+ * Add #add_graph_aliases (select_more for graphs), and allow use of arbitrary expressions when graphing (jeremyevans)
332
+
333
+ * Fix a corner case where the wrong table name is used in eager_graph (jeremyevans)
334
+
335
+ * Make Dataset#join_table take an option hash instead of a table_alias argument, add support for :implicit_qualifier option (jeremyevans)
336
+
337
+ * Add :left_primary_key and :right_primary_key options to many_to_many associations (jeremyevans)
338
+
339
+ * Add :primary_key option to one_to_many and many_to_one associations (jeremyevans)
340
+
341
+ * Make after_load association callbacks take effect when eager loading via eager (jeremyevans)
342
+
343
+ * Add a :uniq association option to many_to_many associations (jeremyevans)
344
+
345
+ * Support using any expression as the argument to Symbol#like (jeremyevans)
346
+
347
+ * Much better support for multiple schemas in PostgreSQL (jeremyevans) (#243)
348
+
349
+ * The first argument to Model#initalize can no longer be nil, it must be a hash if it is given (jeremyevans)
350
+
351
+ * Remove Sequel::Model.lazy_load_schema= setting (jeremyevans)
352
+
353
+ * Lazily load model instance options such as raise_on_save_failure, for better performance (jeremyevans)
354
+
355
+ * Make Model::Validiation::Errors more Rails-compatible (jeremyevans)
356
+
357
+ * Refactor model hooks for performance (jeremyevans)
358
+
359
+ * Major performance enhancement when fetching rows using PostgreSQL (jeremyevans)
360
+
361
+ * Don't typecast serialized columns in models (jeremyevans)
362
+
363
+ * Add Array#sql_array to handle ruby arrays of all two pairs as SQL arrays (jeremyevans) (#245)
364
+
365
+ * Add ComplexExpression#== and #eql?, for checking equality (rubymage) (#244)
366
+
367
+ * Allow full text search on PostgreSQL to include rows where a search column is NULL (jeremyevans)
368
+
369
+ * PostgreSQL full text search queries with multiple columns are joined with space to prevent joining border words to one (michalbugno)
370
+
371
+ * Don't modify a dataset's cached column information if calling #each with an option that modifies the columns (jeremyevans)
372
+
373
+ * The PostgreSQL adapter will now generally default to using a unix socket in /tmp if no host is specified, instead of a tcp socket to localhost (jeremyevans)
374
+
375
+ * Make Dataset#sql call Dataset#select_sql instead of being an alias, to allow for easier subclassing (jeremyevans)
376
+
377
+ * Split Oracle adapter into shared and unshared parts, so Oracle is better supported when using JDBC (jeremyevans)
378
+
379
+ * Fix automatic loading of Oracle driver when using JDBC adapter (bburton333) (#242)
380
+
381
+ === 2.6.0 (2008-10-11)
382
+
383
+ * Make the sqlite adapter respect the Sequel.datetime_class setting, for timestamp and datetime types (jeremyevans)
384
+
385
+ * Enhance the CASE statement support to include an optional expression (jarredholman)
386
+
387
+ * Default to using the simple language if no language is specified for a full text index on PostgreSQL (michalbugno)
388
+
389
+ * Add Model.raise_on_typecast_failure=, which makes it possible to not raise errors on invalid typecasts (michalbugno)
390
+
391
+ * Add schema.rdoc file, which provides an brief description of the various parts of Sequel related to schema modification (jeremyevans)
392
+
393
+ * Fix constraint generation when not using a proc or interpolated string (jeremyevans)
394
+
395
+ * Make eager_graph respect associations' :order options (use :order_eager_graph=>false to disable) (jeremyevans)
396
+
397
+ * Cache negative lookup when eagerly loading many_to_one associations where no objects have an associated object (jeremyevans)
398
+
399
+ * Allow string keys to be used when using Dataset#multi_insert (jeremyevans)
400
+
401
+ * Fix join_table when doing the first join for a dataset where the first source is a dataset when using unqualified columns (jeremyevans)
402
+
403
+ * Fix a few corner cases in eager_graph (jeremyevans)
404
+
405
+ * Support transactions on MSSQL (jeremyevans)
406
+
407
+ * Use string literals in AS clauses on SQLite (jeremyevans) (#241)
408
+
409
+ * AlterTableGenerator#set_column_allow_null was added to SET/DROP NOT NULL for columns (divoxx)
410
+
411
+ * Database#tables now works for MySQL databases using the JDBC adapter (jeremyevans)
412
+
413
+ * Database#drop_view can now take multiple arguments to drop multiple views at once (jeremyevans)
414
+
415
+ * Schema modification methods (e.g. drop_table, create_table!) now remove the cached schema entry (jeremyevans)
416
+
417
+ * Models can now determine their primary keys by looking at the schema (jeremyevans)
418
+
419
+ * No longer include :numeric_precision and :max_chars entries in the schema column hashes, use the :db_type entry instead (jeremyevans)
420
+
421
+ * Make schema parsing on PostgreSQL handle implicit schemas (e.g. schema(:schema__table)), so it works with models for tables outside the public schema (jeremyevans)
422
+
423
+ * Significantly speed up schema parsing on MySQL (jeremyevans)
424
+
425
+ * Include primary key information when parsing the schema (jeremyevans)
426
+
427
+ * Fix schema generation of composite foreign keys on MySQL (clivecrous, jeremyevans)
428
+
429
+ === 2.5.0 (2008-09-03)
430
+
431
+ * Add Dataset #set_defaults and #set_overrides, used for scoping the values used in insert/update statements (jeremyevans)
432
+
433
+ * Allow Models to use the RETURNING clause when inserting records on PostgreSQL (jeremyevans)
434
+
435
+ * Raise Sequel::DatabaseError instead of generic Sequel::Error for database errors, don't swallow tracebacks (jeremyevans)
436
+
437
+ * Use INSERT ... RETURNING ... with PostgreSQL 8.2 and higher (jeremyevans)
438
+
439
+ * Make insert_sql, delete_sql, and update_sql respect the :sql option (jeremyevans)
440
+
441
+ * Default to converting 2 digit years, use Sequel.convert_two_digit_years = false to get back the old behavior (jeremyevans)
442
+
443
+ * Make the PostgreSQL adapter with the pg driver use async_exec, so it doesn't block the entire interpreter (jeremyevans)
444
+
445
+ * Make the schema generators support composite primary and foreign keys and unique constraints (jarredholman)
446
+
447
+ * Work with the 2008.08.17 version of the pg gem (erikh)
448
+
449
+ * Disallow abuse of SQL function syntax for types (use :type=>:varchar, :size=>255 instead of :type=>:varchar[255]) (jeremyevans)
450
+
451
+ * Quote index names when creating or dropping indexes (jeremyevans, SanityInAnarchy)
452
+
453
+ * Don't have column accessor methods override plugin instance methods (jeremyevans)
454
+
455
+ * Allow validation of multiple attributes at once, with built in support for uniqueness checking of multiple columns (jeremyevans)
456
+
457
+ * In PostgreSQL adapter, fix inserting a row with a primary key value inside a transaction (jeremyevans)
458
+
459
+ * Allow before_save and before_update to affect the columns saved by save_changes (jeremyevans)
460
+
461
+ * Make Dataset#single_value work when graphing, which fixes count and paginate on graphed datasets (jeremyevans)
462
+
463
+ === 2.4.0 (2008-08-06)
464
+
465
+ * Handle Java::JavaSql::Date type in the JDBC adapter (jeremyevans)
466
+
467
+ * Add support for read-only slave/writable master databases and database sharding (jeremyevans)
468
+
469
+ * Remove InvalidExpression, InvalidFilter, InvalidJoinType, and WorkerStop exceptions (jeremyevans)
470
+
471
+ * Add prepared statement/bound variable support (jeremyevans)
472
+
473
+ * Fix anonymous column names in the ADO adapter (nusco)
474
+
475
+ * Remove odbc_mssql adapter, use :db_type=>'mssql' option instead (jeremyevans)
476
+
477
+ * Split MSSQL specific syntax into separate file, usable by ADO and ODBC adapters (nusco, jeremyevans)
478
+
479
+ === 2.3.0 (2008-07-25)
480
+
481
+ * Enable almost full support for MySQL using JDBC (jeremyevans)
482
+
483
+ * Fix ODBC adapter's conversion of ::ODBC::Time values (Michael Xavier)
484
+
485
+ * Enable full support for SQLite-JDBC using the JDBC adapter (jeremyevans)
486
+
487
+ * Minor changes to allow for full Ruby 1.9 compatibility (jeremyevans)
488
+
489
+ * Make Database#disconnect work for the ADO adapter (spicyj)
490
+
491
+ * Don't raise an exception in the ADO adapter if the dataset contains no records (nusco)
492
+
493
+ * Enable almost full support of PostgreSQL-JDBC using the JDBC adapter (jeremyevans)
494
+
495
+ * Remove Sequel::Worker (jeremyevans)
496
+
497
+ * Make PostgreSQL adapter not raise an error when inserting records into a table without a primary key (jeremyevans)
498
+
499
+ * Make Database.uri_to_options a private class method (jeremyevans)
500
+
501
+ * Make JDBC load drivers automatically for PostgreSQL, MySQL, SQLite, Oracle, and MSSQL (jeremyevans)
502
+
503
+ * Make Oracle adapter work with a nonstandard Oracle database port (pavel.lukin)
504
+
505
+ * Typecast '' to nil by default for non-string non-blob columns, add typecast_empty_string_to_nil= model class and instance methods (jeremyevans)
506
+
507
+ * Use a simpler select in Dataset#empty?, fixes use with MySQL (jeremyevans)
508
+
509
+ * Add integration test suite, testing sequel against a real database, with nothing mocked (jeremyevans)
510
+
511
+ * Make validates_length_of default tag depend on presence of options passed to it (jeremyevans)
512
+
513
+ * Combine the directory structure for sequel_model and sequel_core, now there is going to be only one gem named sequel (jeremyevans)
514
+
515
+ === 2.2.0 (2008-07-05)
516
+
517
+ * Add :extend association option, extending the dataset with module(s) (jeremyevans)
518
+
519
+ * Add :after_load association callback option, called after associated objects have been loaded from the database (jeremyevans)
520
+
521
+ * Make validation methods support a :tag option, to work correctly with source reloading (jeremyevans)
522
+
523
+ * Add :before_add, :after_add, :before_remove, :after_remove association callback options (jeremyevans)
524
+
525
+ * Break many_to_one association setter method in two parts, for easier overriding (jeremyevans)
526
+
527
+ * Model.validates_presence_of now considers false as present instead of absent (jeremyevans)
528
+
529
+ * Add Model.raise_on_save_failure, raising errors on save failure instead of return false (now nil), default to true (jeremyevans)
530
+
531
+ * Add :eager_loader association option, to specify code to be run when eager loading (jeremyevans)
532
+
533
+ * Make :many_to_one associations support :dataset, :order, :limit association options, as well as block arguments (jeremyevans)
534
+
535
+ * Add :dataset association option, which overrides the default base dataset to use (jeremyevans)
536
+
537
+ * Add :eager_graph association option, works just like :eager except it uses #eager_graph (jeremyevans)
538
+
539
+ * Add :graph_join_table_join_type association option (jeremyevans)
540
+
541
+ * Add :graph_only_conditions and :graph_join_table_only_conditions association options (jeremyevans)
542
+
543
+ * Add :graph_block and :graph_join_table_block association options (jeremyevans)
544
+
545
+ * Set the model's dataset's columns in addition to the model's columns when loading the schema for a model (jeremyevans)
546
+
547
+ * Make caching work correctly with subclasses (jeremyevans)
548
+
549
+ * Add the Model.to_hash dataset method (jeremyevans)
550
+
551
+ * Filter blocks now yield a SQL::VirtualRow argument, which is useful if another library defines operator methods on Symbol (jeremyevans)
552
+
553
+ * Add Symbol#identifier method, to make x__a be treated as "x__a" instead of "x"."a" (jeremyevans)
554
+
555
+ * Dataset#update no longer takes a block, please use a hash argument with the expression syntax instead (jeremyevans)
556
+
557
+ * ParseTree support has been removed from Sequel (jeremyevans)
558
+
559
+ * Database#drop_column is now supported in the SQLite adapter (abhay)
560
+
561
+ * Tinyint columns can now be considered integers instead of booleans by setting Sequel.convert_tinyint_to_bool = false (samsouder)
562
+
563
+ * Allow the use of URL parameters in connection strings (jeremyevans)
564
+
565
+ * Ignore any previously selected columns when using Dataset#graph for the first time (jeremyevans)
566
+
567
+ * Dataset#graph now accepts a block which is passed to join_table (jeremyevans)
568
+
569
+ * Make Dataset#columns ignore any filtering, ordering, and distinct clauses (jeremyevans)
570
+
571
+ * Use the safer connection-specific string escaping methods for PostgreSQL (jeremyevans)
572
+
573
+ * Database#transaction now yields a connection when using the Postgres adapter, just like it does for other adapters (jeremyevans)
574
+
575
+ * Dataset#count now works for a limited dataset (divoxx)
576
+
577
+ * Database#add_index is now supported in the SQLite adapter (abhay)
578
+
579
+ * Sequel's MySQL adapter should no longer conflict with ActiveRecord's use of MySQL (careo)
580
+
581
+ * Treat Hash as expression instead of column alias when used in DISTINCT, ORDER BY, and GROUP BY clauses (jeremyevans)
582
+
583
+ * PostgreSQL bytea fields are now fully supported (dlee)
584
+
585
+ * For PostgreSQL, don't raise an error when assigning a value to a SERIAL PRIMARY KEY field when inserting records (jeremyevans)
586
+
587
+ === 2.1.0 (2008-06-17)
588
+
589
+ * Break association add_/remove_/remove_all_ methods into two parts, for easier overriding (jeremyevans)
590
+
591
+ * Add Model.strict_param_setting, on by default, which raises errors if a missing/restricted method is called via new/set/update/etc. (jeremyevans)
592
+
593
+ * Raise errors when using association methods on objects without valid primary keys (jeremyevans)
594
+
595
+ * The model's primary key is a restricted column by default, Add model.unrestrict_primary_key to get the old behavior (jeremyevans)
596
+
597
+ * Add Model.set_(allowed|restricted)_columns, which affect which columns create/new/set/update/etc. modify (jeremyevans)
598
+
599
+ * Calls to Model.def_dataset_method with a block are cached and reapplied to the new dataset if set_dataset is called, even in a subclass (jeremyevans)
600
+
601
+ * The :reciprocal option to associations should now be the symbol name of the reciprocal association, not an instance variable symbol (jeremyevans)
602
+
603
+ * Add Model#associations, which is a hash holding a cache of associated objects, with each association being a separate key (jeremyevans)
604
+
605
+ * Make all associations support a :graph_select option, specifying a column or array of columns to select when using eager_graph (jeremyevans)
606
+
607
+ * Bring back Model#set and Model#update, now the same as Model#set_with_params and Model#update_with_params (jeremyevans)
608
+
609
+ * Allow model datasets to call to_hash without any arguments, which allows easy creation of identity maps (jeremyevans)
610
+
611
+ * Add Model.set_sti_key, for easily setting up single table inheritance (jeremyevans)
612
+
613
+ * Make all associations support a :read_only option, which doesn't add methods that modify the database (jeremyevans)
614
+
615
+ * Make *_to_many associations support a :limit option, for specifying a limit to the resulting records (and possibly an offset) (jeremyevans)
616
+
617
+ * Make association block argument and :eager option affect the _dataset method (jeremyevans)
618
+
619
+ * Add a :one_to_one option to one_to_many associations, which creates a getter and setter similar to many_to_one (a.k.a. has_one) (jeremyevans)
620
+
621
+ * add_ and remove_ one_to_many association methods now raise an error if the passed object cannot be saved, instead of saving without validation (jeremyevans)
622
+
623
+ * Add support for :if option on validations, using a symbol (specifying an instance method) or a proc (dtsato)
624
+
625
+ * Support bitwise operators for NumericExpressions: &, |, ^, ~, <<, >> (jeremyevans)
626
+
627
+ * No longer raise an error for Dataset#filter(true) or Dataset#filter(false) (jeremyevans)
628
+
629
+ * Allow Dataset #filter, #or, #exclude and other methods that call them to use both the block and regular arguments (jeremyevans)
630
+
631
+ * ParseTree support is now officially deprecated, use Sequel.use_parse_tree = false to use the expression (blockless) filters inside blocks (jeremyevans)
632
+
633
+ * Remove :pool_reuse_connections ConnectionPool/Database option, MySQL users need to be careful with nested queries (jeremyevans)
634
+
635
+ * Allow Dataset#graph :select option to take an array of columns to select (jeremyevans)
636
+
637
+ * Allow Dataset#to_hash to be called with only one argument, allowing for easy creation of lookup tables for a single key (jeremyevans)
638
+
639
+ * Allow join_table to accept a block providing the aliases and previous joins, that allows you to specify arbitrary conditions properly qualified (jeremyevans)
640
+
641
+ * Support NATURAL, CROSS, and USING joins in join_table (jeremyevans)
642
+
643
+ * Make sure HAVING comes before ORDER BY, per the SQL standard and at least MySQL, PostgreSQL, and SQLite (juco)
644
+
645
+ * Add cast_numeric and cast_string methods for use in the Sequel DSL, that have default types and wrap the object in the correct class (jeremyevans)
646
+
647
+ * Add Symbol#qualify, for adding a table/schema qualifier to a column/table name (jeremyevans)
648
+
649
+ * Remove Module#metaprivate, since it duplicates the standard Module#private_class_method (jeremyevans)
650
+
651
+ * Support the SQL CASE expression via Array#case and Hash#case (jeremyevans)
652
+
653
+ * Support the SQL EXTRACT function: :date.extract(:year) (jeremyevans)
654
+
655
+ * Convert numeric fields to BigDecimal in PostgreSQL adapter (jeremyevans)
656
+
657
+ * Add :decimal fields to the schema parser (jeremyevans)
658
+
659
+ * The expr argument in join table now allows the same argument as filter, so it can take a string or a blockless filter expression (brushbox, jeremyevans)
660
+
661
+ * No longer assume the expr argument to join_table references the primary key column (jeremyevans)
662
+
663
+ * Rename the Sequel.time_class setting to Sequel.datetime_class (jeremyevans)
664
+
665
+ * Add savepoint/nesting support to postgresql transactions (elven)
666
+
667
+ * Use the specified table alias when joining a dataset, instead of the automatically generated alias (brushbox)
668
+
669
+ === 2.0.1 (2008-06-04)
670
+
671
+ * Make the choice of Time or DateTime optional for typecasting :datetime types, default to Time (jeremyevans)
672
+
673
+ * Reload database schema for table when calling Model.create_table (jeremyevans)
674
+
675
+ * Have PostgreSQL money type use BigDecimal instead of Float (jeremyevans)
676
+
677
+ * Have the PostgreSQL and MySQL adapters use the Sequel.time_class setting for datetime/timestamp types (jeremyevans)
678
+
679
+ * Add Sequel.time_class and String#to_sequel_time, used for converting time values from the database to either Time (default) or DateTime (jeremyevans)
680
+
681
+ * Make identifier quoting uppercase by default, to work better with the SQL standard, override in PostgreSQL (jeremyevans) (#232)
682
+
683
+ * Add StringExpression#+, for simple SQL string concatenation (:x.sql_string + :y) (jeremyevans)
684
+
685
+ * Make StringMethods.like to a case sensensitive search on MySQL (use ilike for the old behavior) (jeremyevans)
686
+
687
+ * Add StringMethods.ilike, for case insensitive pattern matching (jeremyevans)
688
+
689
+ * Refactor ComplexExpression into three subclasses and a few modules, so operators that don't make sense are not defined for the class (jeremyevans)
690
+
691
+ === 2.0.0 (2008-06-01)
692
+
693
+ * Comprehensive update of all documentation (jeremyevans)
694
+
695
+ * Remove methods deprecated in 1.5.0 (jeremyevans)
696
+
697
+ * Add typecasting on attribute assignment to Sequel::Model objects, optional but enabled by default (jeremyevans)
698
+
699
+ * Returning false in one of the before_ hooks now causes the appropriate method(s) to immediately return false (jeremyevans)
700
+
701
+ * Add remove_all_* association method for *_to_many associations, which removes the association with all currently associated objects (jeremyevans)
702
+
703
+ * Add Model.lazy_load_schema=, when set to true, it loads the schema on first instantiation (jeremyevans)
704
+
705
+ * Add before_validation and after_validation hooks, called whenever the model is validated (jeremyevans)
706
+
707
+ * Add Model.default_foreign_key, a private class method that allows changing the default foreign key that Sequel will use in associations (jeremyevans)
708
+
709
+ * Cache negative lookup when eagerly loading many_to_one associations (jeremyevans)
710
+
711
+ * Make all associations support the :select option, not just many_to_many (jeremyevans)
712
+
713
+ * Allow the use of blocks when eager loading, and add the :eager_block and :allow_eager association options for configuration (jeremyevans)
714
+
715
+ * Add the :graph_join_type, :graph_conditions, and :graph_join_table_conditions association options, used when eager graphing (jeremyevans)
716
+
717
+ * Add AssociationReflection class (subclass of Hash), to make calling a couple of private Model methods unnecessary (jeremyevans)
718
+
719
+ * Change hook methods so that if a tag/method is specified it overwrites an existing hook block with the same tag/method (jeremyevans)
720
+
721
+ * Refactor String inflection support, you must use String.inflections instead of Inflector.inflections now (jeremyevans)
722
+
723
+ * Allow connection to ODBC-MSSQL via a URL (petersumskas) (#230)
724
+
725
+ * Comprehensive update of all documentation, except for the block filters and adapters (jeremyevans)
726
+
727
+ * Handle Date and DateTime value literalization correctly in adapters (jeremyevans)
728
+
729
+ * Literalize DateTime values the same as Time values (jeremyevans)
730
+
731
+ * MySQL tinyints are now returned as boolean values instead of integers (jeremyevans)
732
+
733
+ * Set additional MySQL charset options required for creating tables and databases (tmm1)
734
+
735
+ * Remove methods deprecated in 1.5.0 (jeremyevans)
736
+
737
+ * Add Module#metaattr_accessor for creating attr_accessors for the metaclass (jeremyevans)
738
+
739
+ * Add SQL string concatenation support to blockless filters, via Array#sql_string_join (jeremyevans)
740
+
741
+ * Add Pagination#last_page? and Pagination#first_page? (apeiros)
742
+
743
+ * Add limited column reflection support, tested on PostgreSQL, MySQL, and SQLite (jeremyevans)
744
+
745
+ * Allow the use of :schema__table___table_alias syntax for tables, similar to the column support (jeremyevans)
746
+
747
+ * Merge metaid gem into core_ext.rb and clean it up, so sequel now has no external dependencies (jeremyevans)
748
+
749
+ * Add Dataset#as, so using a dataset as a column with an alias is not deprecated (jeremyevans)
750
+
751
+ * Add Dataset#invert, which returns a dataset with inverted HAVING and WHERE clauses (jeremyevans)
752
+
753
+ * Add blockless filter syntax support (jeremyevans)
754
+
755
+ * Passing an array to Dataset#order and Dataset#select no longer works, you need to pass multiple arguments (jeremyevans)
756
+
757
+ * You should use '?' instead of '(?)' when using interpolated strings with array arguments (jeremyevans)
758
+
759
+ * Dataset.literal now surrounds the literalization of arrays with parentheses (jeremyevans)
760
+
761
+ * Add echo option (back?) to sequel command line tool, via -E or --echo (jeremyevans)
762
+
763
+ * Allow databases to have multiple loggers (jeremyevans)
764
+
765
+ * The sequel command line tool now also accepts a path to a database config YAML file in addition to a URI (mtodd)
766
+
767
+ * Major update of the postgresql adapter (jdavis, jeremyevans) (#225)
768
+
769
+ * Make returning inside of a database transaction commit the transaction (ahoward, jeremyevans)
770
+
771
+ * Dataset#to_table_reference is now protected, and it has a different API (jeremyevans)
772
+
773
+ * Dataset#join_table and related functions now take an explicit optional table_alias argument, you can no longer include the table alias in the table argument (jeremyevans)
774
+
775
+ * Aliased and/or qualified columns with embedded spaces can now be specified as symbols (jeremyevans)
776
+
777
+ * When identifier quoting is enabled, the SQL standard double quote is used by default (jeremyevans)
778
+
779
+ * When identifier quoting is enabled, quote tables as well as columns (jeremyevans)
780
+
781
+ * Make identifier quoting optional, enabled by default (jeremyevans)
782
+
783
+ * Allow Sequel::Database.connect and related methods to take a block that disconnects the database when the block finishes (jeremyevans)
784
+
785
+ * Add Dataset#unfiltered, for removing filters from dataset (jeremyevans)
786
+
787
+ * Add add_foreign_key and add_primary_key methods to the AlterTableGenerator (jeremyevans)
788
+
789
+ * Allow migration files to have more than 3 digits (jeremyevans)
790
+
791
+ * Add methods directly to Dataset instead of including modules (jeremyevans)
792
+
793
+ * Make some Dataset instance methods private: invert_order, insert_default_values_sql (jeremyevans)
794
+
795
+ * Don't add methods that depend on ParseTree unless you can load ParseTree (jeremyevans)
796
+
797
+ * Don't wipeout the cached columns every time a dataset is cloned, but only on changes to :select, :sql, :from, or :join (jeremyevans)
798
+
799
+ * Fix Oracle Adapter (yasushi.abe)
800
+
801
+ * Fixed sqlite uri so that sqlite:// works just like file:// (2 slashes for a relative path, 3 for an absolute) (dlee)
802
+
803
+ * Raise a Sequel::Error if an invalid limit or offset is used (jeremyevans)
804
+
805
+ * Refactor and beef up Dataset#first and Dataset#last, with some change in functionality (jeremyevans)
806
+
807
+ * Add String#to_datetime, for consistency (jeremyevans)
808
+
809
+ * Fix Range#interval so that it returns 1 less for an exclusive range
810
+
811
+ * Change SQLite adapter so it doesn't swallow exceptions other than SQLite3::Exception (such as Interrupt) (jeremyevans)
812
+
813
+ * Change PostgreSQL and MySQL adapters to raise Sequel::Error instead of database specific errors if a database error occurs (jeremyevans)
814
+
815
+ * Using a memory database with SQLite now defaults to a single connection, so all queries it uses run against the same database (jeremyevans)
816
+
817
+ * Fix attempting to query MySQL using the same connection being used to concurrently execute another query (jeremyevans)
818
+
819
+ * Add options to the connection pool to configure reusing connections and converting exceptions (jeremyevans)
820
+
821
+ * Use the database driver provided string quoting methods for MySQL and SQLite (jeremyevans) (#223)
822
+
823
+ * Add ColumnAll#==, for checking the equality of two ColumnAlls (jeremyevans)
824
+
825
+ * Allow an array of arrays instead of a hash when specifying conditions (jeremyevans)
826
+
827
+ * Add Sequel::DBI::Database#lowercase, for lowercasing column names (jamesearl)
828
+
829
+ * Remove Dataset#extend_with_destroy, which may break code that uses Dataset#set_model directly and expects the destroy method to be added (jeremyevans)
830
+
831
+ * Fix some issues when running on Ruby 1.9 (Zverok, jeremyevans)
832
+
833
+ * Make the DBI adapter work (partially) with PostgreSQL (Seb)
834
+
835
+ === 1.5.1 (2008-04-30)
836
+
837
+ * Fix Dataset#eager_graph when not all objects have associated objects (jeremyevans)
838
+
839
+ * Have Dataset#graph give a nil value instead of a hash with all nil values if no matching rows exist in the graphed table (jeremyevans)
840
+
841
+ === 1.5.0 (2008-04-29)
842
+
843
+ * Make the validation errors API compatible with Merb (Inviz)
844
+
845
+ * Add validates_uniqueness_of, for protecting against duplicate entries in the database (neaf, jeremyevans)
846
+
847
+ * Alias Model#dataset= to Model#set_dataset (tmm1)
848
+
849
+ * Make some Model class methods private: def_hook_method, hooks, add_hook, plugin_module, plugin_gem (jeremyevans)
850
+
851
+ * Add the eager! and eager_graph! mutation methods to model datasets (jeremyevans)
852
+
853
+ * Remove Model.database_opened (jeremyevans)
854
+
855
+ * Remove Model.super_dataset (jeremyevans)
856
+
857
+ * Deprecate .create_with_params, .create_with, #set, #update, #update_with, and #new_record from Sequel::Model (jeremyevans)
858
+
859
+ * Add Model.def_dataset_method, for defining methods on the model that reference methods on the dataset (jeremyevans)
860
+
861
+ * Deprecate Model.method_missing, add dataset methods to Model via metaprogramming (jeremyevans)
862
+
863
+ * Remove Model.join, so it is the same as Dataset#join (jeremyevans)
864
+
865
+ * Use reciprocal associations for all types of associations in the getter/setter/add_/remove_ methods (jeremyevans)
866
+
867
+ * Fix many_to_one associations to cache negative lookups (jeremyevans)
868
+
869
+ * Change Model#=== to always be false if the primary key is nil (jeremyevans)
870
+
871
+ * Add Model#hash, which should be unique for a given class and primary key (or values if primary key is nil) (jeremyevans)
872
+
873
+ * Add Model#eql? as a alias to Model#== (jeremyevans)
874
+
875
+ * Make Model#reload clear any cached associations (jeremyevans)
876
+
877
+ * No longer depend on the assistance gem, merge the Inflector and Validations code (jeremyevans)
878
+
879
+ * Add Model#set_with_params, which is Model#update_with_params without the save (jeremyevans)
880
+
881
+ * Fix Model#destroy so that it returns self, not the result of after_destroy (jeremyevans)
882
+
883
+ * Define Model column accessors in set_dataset, so they should always be avaiable, deprecate Model#method_missing (jeremyevans)
884
+
885
+ * Add eager loading of associations via new sequel_core object graphing feature (jeremyevans)
886
+
887
+ * Fix many_to_many associations with classes inside modules without an explicit join table (jeremyevans)
888
+
889
+ * Allow creation of new records that don't have primary keys when the cache is on (jeremyevans) (#213)
890
+
891
+ * Make Model#initialize, Model#set, and Model#update_with_params invulnerable to memory exhaustion (jeremyevans) (#210)
892
+
893
+ * Add Model.str_columns, which gives a list of columns as frozen strings (jeremyevans)
894
+
895
+ * Remove pretty_table.rb from sequel, since it is in sequel_core (jeremyevans)
896
+
897
+ * Set a timeout in the Sqlite adapter, default to 5 seconds (hrvoje.marjanovic) (#218)
898
+
899
+ * Document that calling Sequel::ODBC::Database#execute manually requires you to manually drop the returned object (jeremyevans) (#217)
900
+
901
+ * Paginating an already paginated/limited dataset now raises an error (jeremyevans)
902
+
903
+ * Add support for PostgreSQL partial indexes (dlee)
904
+
905
+ * Added support for arbitrary index types (including spatial indexes) (dlee)
906
+
907
+ * Quote column names in SQL generated for SQLite (tmm1)
908
+
909
+ * Deprecate Object#rollback! (jeremyevans)
910
+
911
+ * Make some Dataset methods private (qualified_column_name, column_list, table_ref, source_list) (jeremyevans)
912
+
913
+ * Deprecate Dataset methods #set_options, #set_row_proc, #remove_row_proc, and #clone_merge (jeremyevans)
914
+
915
+ * Add Symbol#*, a replacement for Symbol#all (jeremyevans)
916
+
917
+ * Deprecate including ColumnMethods in Object, include it in Symbol, String, and Sequel::SQL::Expression (jeremyevans)
918
+
919
+ * Deprecate Symbol#method_missing, and #AS, #DESC, #ASC, #ALL, and #all from ColumnMethods (jeremyevans)
920
+
921
+ * Fix table joining in MySQL (jeremyevans)
922
+
923
+ * Deprecate Sequel.method_missing and Object#Sequel, add real Sequel.adapter methods (jeremyevans)
924
+
925
+ * Move dataset methods applicable only to paginated datasets into Sequel::Dataset::Pagination (jeremyevans)
926
+
927
+ * Make Sequel::Dataset::Sequelizer methods private (jeremyevans)
928
+
929
+ * Deprecate Dataset#method_missing, add real mutation methods (e.g. filter!) (jeremyevans)
930
+
931
+ * Fix connecting to an MSSQL server via ODBC using domain user credentials (jeremyevans) (#216)
932
+
933
+ * No longer depend on the assistance gem, merge in the ConnectionPool and .blank methods (jeremyevans)
934
+
935
+ * No longer depend on ParseTree, RubyInline, or ruby2ruby, but you still need them if you want to use the block filters (jeremyevans)
936
+
937
+ * Fix JDBC adapter by issuing index things start at 1 (pdamer)
938
+
939
+ * Fix connecting to a database via the ADO adapter (now requires options instead of URI) (timuckun, jeremyevans) (#204)
940
+
941
+ * Support storing microseconds in postgres timestamp fields (schnarch...@rootimage.msu.edu) (#215)
942
+
943
+ * Allow joining of multiple datasets, by making the table alias different for each dataset joined (jeremyevans)
944
+
945
+ * SECURITY: Fix backslash escaping of strings (dlee)
946
+
947
+ * Add ability to create a graph of objects from a query, with the result split into corresponding tables (jeremyevans) (#113)
948
+
949
+ * Add attr_accessor for dataset row_proc (jeremyevans)
950
+
951
+ * Don't redefine Dataset#each when adding a transform or row_proc (jeremyevans)
952
+
953
+ * Remove array_keys.rb from sequel_core, it was partially broken (since the arrays came from hashes), and redefined Dataset#each (jeremyevans)
954
+
955
+ * Fix MySQL default values insert (matt.binary) (#196)
956
+
957
+ * Fix ODBC adapter improperly escaping date and timestamp values (leo.borisenko) (#165)
958
+
959
+ * Fix renaming columns on MySQL with type :varchar (jeremyevans) (#206)
960
+
961
+ * Add Sequel::SQL::Function#==, for comparing SQL Functions (jeremyevans) (#209)
962
+
963
+ * Update Informix adapter to work with Ruby/Informix 0.7.0 (gerardo.santana@gmail.com)
964
+
965
+ * Remove sequel_core's knowledge of Sequel::Model (jeremyevans)
966
+
967
+ * Use "\n" instead of $/ (since $/ can be redefined in ways we do not want) (jeremyevans)
968
+
969
+ === 1.4.0 (2008-04-08)
970
+
971
+ * Don't mark a column as changed unless the new value is different from the current value (tamas.denes, jeremyevans) (#203).
972
+
973
+ * Switch gem name from "sequel_model" to just "sequel", which required large version bump (jeremyevans).
974
+
975
+ * Add :select option to many_to_many associations, default to selecting only the associated model table and not the join table (jeremyevans) (#208).
976
+
977
+ * Add :reciprocal one_to_many association option, for setting corresponding many_to_one instance variable (jeremyevans).
978
+
979
+ * Add eager loading implementation (jeremyevans).
980
+
981
+ * Change *_to_many associations so that the all associations are considered :cache=>true (jeremyevans).
982
+
983
+ * Fix associations with block arguments and :cache=>true (jeremyevans).
984
+
985
+ * Merge 3 mysql patches from the bugtracker (mvyver) (#200, #201, #202).
986
+
987
+ * Merge 2 postgresql patches from the bugtracker (a...@mellowtone.co.jp) (#211, 212).
988
+
989
+ * Allow overriding of default posgres spec database via ENV['SEQUEL_PG_SPEC_DB'] (jeremyevans).
990
+
991
+ * Allow using the Sequel::Model as the first argument in a dataset join selection (jeremyevans) (#170).
992
+
993
+ * Add simple callback mechanism to make model eager loading implementation easier (jeremyevans).
994
+
995
+ * Added Sequel::Error::InvalidOperation class for invalid operations (#198).
996
+
997
+ * Implemented MySQL::Database#server_version (#199).
998
+
999
+ * Added spec configuration for MySQL socket file.
1000
+
1001
+ * Fixed transform with array tuples in postgres adapter.
1002
+
1003
+ * Changed spec configuration to Database objects instead of URIs in order to support custom options for spec databases.
1004
+
1005
+ * Renamed schema files.
1006
+
1007
+ * Fixed Dataset#from to work correctly with SQL functions (#193).
1008
+
1009
+ ===Previous to 1.4.0, Sequel model and Sequel core versioning differed, see the bottom of this file for the changelog to Sequel model prior to 1.4.0.
1010
+
1011
+ === 1.3 (2008-03-08)
1012
+
1013
+ * Added configuration file for running specs (#186).
1014
+
1015
+ * Changed Database#drop_index to accept fixed arity (#173).
1016
+
1017
+ * Changed column definition sql to put UNSIGNED constraint before unique in order to satisfy MySQL (#171).
1018
+
1019
+ * Enhanced MySQL adapter to support load data local infile_, added compress option for mysql connection by default (#172).
1020
+
1021
+ * Fixed bug when inserting hashes in array tuples mode.
1022
+
1023
+ * Changed SQLite adapter to catch RuntimeError raised when executing a statement and raise an Error::InvalidStatement with the offending SQL and error message (#188).
1024
+
1025
+ * Added Error::InvalidStatement class.
1026
+
1027
+ * Fixed Dataset#reverse to not raise for unordered dataset (#189).
1028
+
1029
+ * Added Dataset#unordered method and changed #order to remove order if nil is specified (#190).
1030
+
1031
+ * Fixed reversing order of ASC expression (#164).
1032
+
1033
+ * Added support for :null => true option when defining table columns (#192).
1034
+
1035
+ * Fixed Symbol#method_missing to accept variable arity (#185).
1036
+
1037
+ === 1.2.1 (2008-02-29)
1038
+
1039
+ * Added add_constraint and drop_constraint functionality to Database#alter_table (#182).
1040
+
1041
+ * Enhanced Dataset#multi_insert to accept datasets (#179).
1042
+
1043
+ * Added MySQL::Database#use method for switching database (#180).
1044
+
1045
+ * Enhanced Database.uri_to_options to accept uri strings (#178).
1046
+
1047
+ * Added Dataset#columns! method that always makes a roundtrip to the DB (#177).
1048
+
1049
+ * Added new Dataset#each_page method that iterates over all pages in the result set (#175).
1050
+
1051
+ * Added Dataset#reverse alias to Dataset#reverse_order (#174).
1052
+
1053
+ * Fixed Dataset#transform_load and #transform_save to create a trasnformed copy of the supplied hash instead of transforming it in place (#184).
1054
+
1055
+ * Implemented MySQL::Dataset#replace (#163).
1056
+
1057
+ === 1.2 (2008-02-15)
1058
+
1059
+ * Added support for :varchar[100] like type declarations in #create_table.
1060
+
1061
+ * Fixed #rename_column in mysql adapter to support types like varchar(255) (#159).
1062
+
1063
+ * Added support for order and limit in DELETE statement in MySQL adapter (#160).
1064
+
1065
+ * Added checks to Dataset#multi_insert to prevent work if no values are given (#162).
1066
+
1067
+ * Override ruby2ruby implementation of Proc#to_sexp which leaks memory (#161).
1068
+
1069
+ * Added log option, help for sequel script (#157).
1070
+
1071
+ === 1.1 (2008-02-15)
1072
+
1073
+ * Fixed Dataset#join_table to support joining of datasets (#156).
1074
+
1075
+ * Changed Dataset#empty? to use EXISTS condition instead of counting records, for much better performance (#158).
1076
+
1077
+ * Implemented insertion of multiple records in a single statement for postgres adapter. This feature is available only in postgres 8.2 and newer.
1078
+
1079
+ * Implemented Postgres::Database#server_version.
1080
+
1081
+ * Implemented Database#get, short for dataset.get(...).
1082
+
1083
+ * Refactored Dataset#multi_insert, added #import alias, added support for calling #multi_insert using array of columns and array of value arrays (thanks David Lee).
1084
+
1085
+ * Implemented Dataset#get, a replacement for select(column).first[column].
1086
+
1087
+ * Implemented Dataset#grep method, poor man's text search.
1088
+
1089
+ === 1.0.10 (2008-02-13)
1090
+
1091
+ * Fixed Datset#group_and_count to work inside a query block (#152).
1092
+
1093
+ * Changed datasets with transforms to automatically transform hash filters (#155).
1094
+
1095
+ * Changed Marshal stock transform to use Base64 encoding with backward-compatibility to support existing marshaled values (#154).
1096
+
1097
+ * Added support for inserting multiple records in a single statement using #multi_insert in MySQL adapter (#153).
1098
+
1099
+ * Added support for :slice option (same as :commit_every) in Dataset#multi_insert.
1100
+
1101
+ * Changed Dataset#all to accept opts and iteration block.
1102
+
1103
+ === 1.0.9 (2008-02-10)
1104
+
1105
+ * Implemented Dataset#inspect and Database#inspect (#151).
1106
+
1107
+ * Added full-text searching for odbc_mssql adapter (thanks Joseph Love).
1108
+
1109
+ * Added AlterTableGenerator#add_full_text_index method.
1110
+
1111
+ * Implemented full_text indexing and searching for PostgreSQL adapter (thanks David Lee).
1112
+
1113
+ * Implemented full_text indexing and searching for MySQL adapter (thanks David Lee).
1114
+
1115
+ * Fixed Dataset#insert_sql to work with array subscript references (thanks Jim Morris).
1116
+
1117
+ === 1.0.8 (2008-02-08)
1118
+
1119
+ * Added support for multiple choices in string matching expressions (#147).
1120
+
1121
+ * Renamed Dataset#clone_merge to Dataset#clone, works with or without options for merging (#148).
1122
+
1123
+ * Fixed MySQL::Database#<< method to always free the result in order to allow multiple calls in a row (#149). Same also for PostgreSQL adapter.
1124
+
1125
+ === 1.0.7 (2008-02-05)
1126
+
1127
+ * Added support for conditional filters (using if else statements) inside block filters (thanks Kee).
1128
+
1129
+ === 1.0.6 (2008-02-05)
1130
+
1131
+ * Removed code pollution introduced in revs 814, 817 (really bad patch, IMO).
1132
+
1133
+ * Fixed joining datasets using aliased tables (#140).
1134
+
1135
+ * Added support additional field types in postgresql adapter (#146).
1136
+
1137
+ * Added support for date field types in postgresql adapter (#145).
1138
+
1139
+ * Fixed Dataset#count to work correctly for grouped datasets (#144).
1140
+
1141
+ * Added Dataset#select_more, Dataset#order_more methods (#129).
1142
+
1143
+ === 1.0.5 (2008-01-25)
1144
+
1145
+ * Added support for instantiating models by using the load constructor method.
1146
+
1147
+ === 1.0.4.1 (2008-01-24)
1148
+
1149
+ * Fixed bin/sequel to require sequel_model if available.
1150
+
1151
+ === 1.0.4 (2008-01-24)
1152
+
1153
+ * Added Dataset#select_all method.
1154
+
1155
+ * Changed ODBC::Database to support connection using driver and database name, also added support for untitled columns in ODBC::Dataset (thanks Leonid Borisenko).
1156
+
1157
+ * Fixed MySQL adapter to correctly format foreign key definitions (#123).
1158
+
1159
+ * Changed MySQL::Dataset to allow HAVING clause on ungrouped datasets, and put HAVING clause before ORDER BY clause (#133).
1160
+
1161
+ * Changed Dataset#group_and_count to accept multiple columns (#134).
1162
+
1163
+ * Fixed database spec to open YAML file in binary mode (#131).
1164
+
1165
+ * Cleaned up gem spec (#132).
1166
+
1167
+ * Added Dataset#table_exists? convenience method.
1168
+
1169
+ === 1.0.3 (2008-01-17)
1170
+
1171
+ * Added support for UNSIGNED constraint, used in MySQL? (#127).
1172
+
1173
+ * Implemented constraint definitions inside Database#create_table.
1174
+
1175
+ * Fixed postgres adapter to define PGconn#async_exec as alias to #exec if not defined (for pure-ruby postgres driver).
1176
+
1177
+ * Added String#to_date. Updated mysql adapter to use String#to_date for mysql date types (thanks drfreeze).
1178
+
1179
+ === 1.0.2 (2008-01-14)
1180
+
1181
+ * Removed ConnectionPool, NumericExtensions. Added dependency on assistance.
1182
+
1183
+ === 1.0.1 (2008-01-12)
1184
+
1185
+ * Changed postgres adapter to quote column references using double quotes.
1186
+
1187
+ * Applied patch for oracle adapter: fix behavior of limit and offset, transactions, #table_exists?, #tables and additional specs (thanks Liming Lian #122).
1188
+
1189
+ * Allow for additional filters on a grouped dataset (#119 and #120)
1190
+
1191
+ * Changed mysql adapter to default to localhost if :host option is not specified (#114).
1192
+
1193
+ * Refactored Sequelizer to use Proc#to_sexp (method provided by r2r).
1194
+
1195
+ * Enhanced Database.connect to accept options with string keys, so it can now accept options loaded from YAML files. Database.connect also automatically converts :username option into :user for compatibility with existing YAML configuration files for AR and DataMapper.
1196
+
1197
+ === 1.0.0.1 (2008-01-03)
1198
+
1199
+ * Changed MySQL adapter to support specifying socket option.
1200
+
1201
+ * Added support for limiting and paginating datasets with fixed SQL, gotten with DB#fetch (thanks Ruy Diaz).
1202
+
1203
+ * Added new Dataset#from_self method that returns a dataset selecting from the original dataset.
1204
+
1205
+ === 1.0 (2008-01-02)
1206
+
1207
+ * Removed deprecated adapter stubs.
1208
+
1209
+ * Removed Sequel::Model() stub.
1210
+
1211
+ * Changed name to sequel_core.
1212
+
1213
+ * 100% code coverage.
1214
+
1215
+ * Fixed error behavior when sequel_model is not available.
1216
+
1217
+ * Fixed error behavior when parse_tree or ruby2ruby are not available.
1218
+
1219
+ === 0.5.0.2 (2008-01-01)
1220
+
1221
+ * Fixed String#to_time to raise error correctly for invalid time stamps.
1222
+
1223
+ * Improved code coverage - now at 99.2%.
1224
+
1225
+ === 0.5.0.1 (2007-12-31)
1226
+
1227
+ * Added a stub for Sequel::Model that auto-loads sequel_model.
1228
+
1229
+ * Changed Sequel.method_missing and Database.adapter_class to raise AdapterNotFound if an adapter could not be loaded.
1230
+
1231
+ * Fixed behavior of error trap in sequel command line tool.
1232
+
1233
+ === 0.5 (2007-12-30)
1234
+
1235
+ * Removed model code into separate sub-project. Rearranged trunk into core, model and model_plugins.
1236
+
1237
+ === 0.4.5 (2007-12-25)
1238
+
1239
+ * Added rdoc for new alter_table functionality (#109).
1240
+
1241
+ * Fixed update_sql with array sub-item keys (#110).
1242
+
1243
+ * Refactored model specs.
1244
+
1245
+ * Added Model#update as alias to #set.
1246
+
1247
+ * Refactored validations code. Renamed Model.validations? into Model.has_validations?.
1248
+
1249
+ * Added initial Model validations (Thanks Lance Carlson)
1250
+
1251
+ * Added Database#set_column_default method (thanks Jim Morris.)
1252
+
1253
+ * Removed warning on uninitialized @transform value (thanks Jim Morris).
1254
+
1255
+ === 0.4.4.2 (2007-12-20)
1256
+
1257
+ * Fixed parsing errors in Ruby 1.9.
1258
+
1259
+ * Fixed sync problem in connection_pool_spec.
1260
+
1261
+ * Changed String#to_time to raise Error::InvalidValue if Time.parse fails.
1262
+
1263
+ * Refactored sequel error classes.
1264
+
1265
+ === 0.4.4.1 (2007-12-19)
1266
+
1267
+ * Fixed schema generation code to use field quoting and support adapter-specific literalization of default values (#108).
1268
+
1269
+ === 0.4.4 (2007-12-17)
1270
+
1271
+ * Implemented Database#rename_table (#104).
1272
+
1273
+ * Fixed drop_index in mysql adapter (#103).
1274
+
1275
+ * Added ALTER TABLE specs for postgres, sqlite and mysql adapters. Added custom alter_table behavior for sqlite and mysql adapters (#101, #102).
1276
+
1277
+ * Added direct Database API for altering tables.
1278
+
1279
+ * Added Database#alter_table method with support for adding, dropping, renaming, modifying columns and adding and droppping indexes.
1280
+
1281
+ * Added #unique schema method for defining unique indexes (thanks Dado).
1282
+
1283
+ * Implemented unfolding of #each calls inside sequelizer blocks (thanks Jim Morris).
1284
+
1285
+ === 0.4.3 (2007-12-15)
1286
+
1287
+ * Fixed Dataset#update to accept strings (#98).
1288
+
1289
+ * Fixed Model.[] to raise for boolean argument (#97).
1290
+
1291
+ * Added Database#add_index method (thanks coda.hale).
1292
+
1293
+ * Added error reporting for filtering on comparison not in a block (thanks Jim Morris).
1294
+
1295
+ * Added support for inline index definition (thanks Dado).
1296
+
1297
+ * Added Database#create_table! method for forcibly creating a table (thanks Dado).
1298
+
1299
+ * Added support for using Dataset#update with block.
1300
+
1301
+ * Changed subscript access to use | operator.
1302
+
1303
+ * Fixed subscript access in sequelizer.
1304
+
1305
+ * Added support for subscript access using Symbol#/ operator.
1306
+
1307
+ === 0.4.2.2 (2007-12-10)
1308
+
1309
+ * Improved code coverage.
1310
+
1311
+ * Fixed Dataset#count to work properly with datasets with fixed SQL (when using #fetch).
1312
+
1313
+ * Added Model.create_with_params method that filters the given parameters accordring to the model's columns (thanks Aman Gupta).
1314
+
1315
+ === 0.4.2.1 (2007-12-09)
1316
+
1317
+ * Refactored and fixed Dataset#reverse_order to work with field quoting (thanks Christian).
1318
+
1319
+ * Fixed problem with field quoting in insert statements.
1320
+
1321
+ * Changed sequelizer code to silently fail on any error when requiring parsetree and ruby2ruby.
1322
+
1323
+ * Added Database#create_view, #create_or_replace_view and #drop_view methods. Also implemented Dataset#create_view and #create_or_replace_view convenience methods.
1324
+
1325
+ * Keep DRY by re-using Model#[]= from method_missing.
1326
+
1327
+ * Added Model.fetch alias for DB.fetch.set_model(Model)
1328
+
1329
+ === 0.4.2 (2007-12-07)
1330
+
1331
+ * Implemented Model#save_changes.
1332
+
1333
+ * Extended Model#save to accept specific columns to update.
1334
+
1335
+ * Implemented experimental JDBC adapter.
1336
+
1337
+ * Added adapter skeleton as starting point for new adapters.
1338
+
1339
+ * Cleaned-up adapters and moved automatic requiring of 'sequel' to adapter stubs.
1340
+
1341
+ === 0.4.1.3 (2007-12-05)
1342
+
1343
+ * Better plugin conventions.
1344
+
1345
+ * Added experimental OpenBase adapter.
1346
+
1347
+ * Fixed Sequel.<xxx> methods to accept options hash as well as database name. Fixed Sequel.connect to accept options hash as well as URI (Wayne).
1348
+
1349
+ === 0.4.1.2 (2007-12-04)
1350
+
1351
+ * Added release rake task (using RubyForge).
1352
+
1353
+ * Changed Model.is to accept variable arity.
1354
+
1355
+ * Implemented plugin loading for model classes.
1356
+
1357
+ * Fixed odbc-mssql and odbc adapters (thanks Dusty.)
1358
+
1359
+ * Implemented odbc-mssql adapter (thanks Dusty.)
1360
+
1361
+ === 0.4.1.1 (2007-11-27)
1362
+
1363
+ * Fixed #first and #last functionality in Informix::Dataset (thanks Gerardo Santana).
1364
+
1365
+ === 0.4.1 (2007-11-25)
1366
+
1367
+ * Put adapter files in lib/sequel/adapters. Requiring sequel/<adapter> is now deprecated. Users can now just require 'sequel' and adapters are automagically loaded (#93).
1368
+
1369
+ === 0.4.0 (2007-11-24)
1370
+
1371
+ * Reorganized lib directory structure.
1372
+
1373
+ * Added support for dbi-xxx URI schemes (#86).
1374
+
1375
+ * Fixed problem in Database#uri where setting the password would raise an error (#87).
1376
+
1377
+ * Improved Dataset#insert_sql to correctly handle string keys (#92).
1378
+
1379
+ * Improved error-handling for worker threads. Errors are saved to an array and are accessible through #errors (#91).
1380
+
1381
+ * Dataset#uniq/distinct can now accept a column list for DISTINCT ON clauses.
1382
+
1383
+ * Fixed Model.all.
1384
+
1385
+ * Fixed literalization of strings with escape sequences in postgres adapter (#90).
1386
+
1387
+ * Added support for literalizing BigDecimal values (#89).
1388
+
1389
+ * Fixed column qualification for joined datasets (thanks Christian).
1390
+
1391
+ * Implemented experimental informix adapter.
1392
+
1393
+ === 0.3.4.1 (2007-11-10)
1394
+
1395
+ * Changed Dataset#select_sql to support queries without a FROM clause.
1396
+
1397
+ === 0.3.4 (2007-11-10)
1398
+
1399
+ * Fixed MySQL adapter to allow calling stored procedures (thanks Sebastian).
1400
+
1401
+ * Changed Dataset#each to always return self.
1402
+
1403
+ * Fixed SQL functions without arguments in block filters.
1404
+
1405
+ * Implemented super-cool Symbol#cast_as method.
1406
+
1407
+ * Fixed error message in command-line tool if failed to load adapter (#85).
1408
+
1409
+ * Refactored code relating to column references for better extendibility (#88).
1410
+
1411
+ * Tiny fix to Model#run_hooks.
1412
+
1413
+ === 0.3.3 (2007-11-04)
1414
+
1415
+ * Revised code to generate SQL statements without trailing semicolons.
1416
+
1417
+ * Added Sequel::Worker implementation of a simple worker thread for asynchronous execution.
1418
+
1419
+ * Added spec for Oracle adapter.
1420
+
1421
+ * Fixed Oracle adapter to format INSERT statements without semicolons (thanks Liming Lian).
1422
+
1423
+ * Renamed alias to Array#keys as Array#columns instead of Array#fields.
1424
+
1425
+ * Renamed FieldCompositionMethods as ColumnCompositionMethods.
1426
+
1427
+ * Implemented Sequel::NumericExtensions to provide stuff like 30.days.ago.
1428
+
1429
+ === 0.3.2 (2007-11-01)
1430
+
1431
+ * Added #to_column_name as alias to #to_field_name, #column_title as alias to #field_title.
1432
+
1433
+ * Added Dataset#interval method for getting interval between minimum/maximum values for a column.
1434
+
1435
+ * Fixed Oracle::Database#execute (#84).
1436
+
1437
+ * Added group_and_count as general implementation for count_by_xxx.
1438
+
1439
+ * Added count_by magic method.
1440
+
1441
+ * Added Dataset#range method for getting the minimum/maximum values for a column.
1442
+
1443
+ * Fixed timestamp translation in SQLite adapter (#83).
1444
+
1445
+ * Experimental DB2 adapter.
1446
+
1447
+ * Added Dataset#set as alias to Dataset#update.
1448
+
1449
+ * Removed long deprecated expressions.rb code.
1450
+
1451
+ * Better documentation.
1452
+
1453
+ * Implemented Dataset magic methods: order_by_xxx, group_by_xxx, filter_by_xxx, all_by_xxx, first_by_xxx, last_by_xxx.
1454
+
1455
+ * Changed Model.create and Model.new to accept a block.
1456
+
1457
+ === 0.3.1 (2007-10-30)
1458
+
1459
+ * Typo fixes (#79).
1460
+
1461
+ * Added require 'yaml' to dataset.rb (#78).
1462
+
1463
+ * Changed postgres adapter to use the ruby-postgres library's type conversion if available (#76).
1464
+
1465
+ * Fixed string literalization in mysql adapter for strings with comment backslashes in them (#75).
1466
+
1467
+ * Fixed ParseTree dependency to work with version 2.0.0 and later (#74).
1468
+
1469
+ * foreign_key definitions now accept :key option for specifying the remote key (#73).
1470
+
1471
+ * Fixed Model#method_missing to not raise error for columns not in the table but for which a value exists (#77).
1472
+
1473
+ * New documentation for Model.
1474
+
1475
+ * Implemented Oracle adapter based on ruby-oci8 library.
1476
+
1477
+ * Implemented Model#pk_hash. Is it really necessary?
1478
+
1479
+ * Deprecated Model#pkey. Implemented better Model#pk method.
1480
+
1481
+ * Specs and docs for Model.one_to_one, Model.one_to_many macros.
1482
+
1483
+ === 0.3.0.1 (2007-10-20)
1484
+
1485
+ * Changed Database#fetch to return a modified dataset.
1486
+
1487
+ === 0.3 (2007-10-20)
1488
+
1489
+ * Added stock transforms to Dataset#transform. Refactored Model.serialize.
1490
+
1491
+ * Added Database#logger= method for setting the database logger object.
1492
+
1493
+ * Fixed Model.[] to act as shortcut to Model.find when a hash is given (#71).
1494
+
1495
+ * Added support for old and new decimal types in MySQL adapter, and updated MYSQL_TYPES with MySQL 5.0 constants (#72).
1496
+
1497
+ * Implemented Database#disconnect method for all adapters.
1498
+
1499
+ * Fixed small bug in ArrayKeys module.
1500
+
1501
+ * Implemented model caching by primary key.
1502
+
1503
+ * Separated Model.find and Model.[] functionality. Model.find takes a filter. Model.[] is strictly for finding by primary keys.
1504
+
1505
+ * Enhanced Dataset#first to accept a filter block. Model#find can also now accept a filter block.
1506
+
1507
+ * Changed Database#[] to act as shortcut to #fetch if a string is given.
1508
+
1509
+ * Renamed Database#each to #fetch. If no block is given, the method returns an enumerator.
1510
+
1511
+ * Changed Dataset#join methods to correctly literalize values in join conditions (#70).
1512
+
1513
+ * Fixed #filter with ranges to correctly literalize field names (#69).
1514
+
1515
+ * Implemented Database#each method for quickly retrieving records with arbitrary SQL (thanks Aman Gupta).
1516
+
1517
+ * Fixed bug in postgres adapter where a LiteralString would be literalized as a regular String.
1518
+
1519
+ * Fixed SQLite insert with subquery (#68).
1520
+
1521
+ * Reverted back to hashes as default mode. Added Sequel.use_array_tuples and Sequel.use_hash_tuples methods.
1522
+
1523
+ * Fixed problem with arrays with keys when using #delete.
1524
+
1525
+ * Implemented ArrayKeys as substitute for ArrayFields.
1526
+
1527
+ * Added Dataset#each_hash method.
1528
+
1529
+ * Rewrote SQLite::Database#transaction to use sqlite3-ruby library implementation of transactions.
1530
+
1531
+ * Fixed Model.destroy_all to work correctly in cases where no before_destroy hook is defined and an after_destroy hook is defined.
1532
+
1533
+ * Restored Model.has_hooks? implementation.
1534
+
1535
+ * Changed Database#<< to strip comments and whitespace only when an array is given.
1536
+
1537
+ * Changed Schema::Generator#primary_key to accept calls with the type argument omitted.
1538
+
1539
+ * Hooks can now be prepended or appended by choice.
1540
+
1541
+ * Changed Model.subset to define filter method on the underlying dataset instead of the model class.
1542
+
1543
+ * Fixed Dataset#transform to work with array fields.
1544
+
1545
+ * Added Dataset#to_csv method.
1546
+
1547
+ * PrettyTable can now extract column names from arrayfields.
1548
+
1549
+ * Converted ado, dbi, odbc adapters to use arrayfields instead of hashes.
1550
+
1551
+ * Fixed composite key support.
1552
+
1553
+ * Fixed Dataset#insert_sql, update_sql to support array fields.
1554
+
1555
+ * Converted sqlite, mysql, postgres adapters to use arrayfields instead of hashes.
1556
+
1557
+ * Extended Dataset#from to auto alias sub-queries.
1558
+
1559
+ * Extended Dataset#from to accept hash for aliasing tables.
1560
+
1561
+ * Added before_update, after_update hooks.
1562
+
1563
+ === 0.2.1.1 (2007-10-07)
1564
+
1565
+ * Added Date literalization to sqlite adapter (#60).
1566
+
1567
+ * Changed Model.serialize to allow calling it after the class is defined (#59).
1568
+
1569
+ * Fixed after_create hooks to allow calling save inside the hook (#58).
1570
+
1571
+ * Fixed MySQL quoting of sql functions (#57).
1572
+
1573
+ * Implemented rollback! global method for cancelling transactions in progress.
1574
+
1575
+ * Fixed =~ operator in Sequelizer.
1576
+
1577
+ * Fixed ODBC::Dataset#fetch_rows (thanks Dusty).
1578
+
1579
+ * Renamed Model.recreate_table to create_table!. recreate_table is deprecated and will issue a warning (#56).
1580
+
1581
+ === 0.2.1 (2007-09-24)
1582
+
1583
+ * Added default implementation of Model.primary_key_hash.
1584
+
1585
+ * Fixed Sequel::Model() to set dataset for inherited classes.
1586
+
1587
+ * Rewrote Model.serialize to use Dataset#transform.
1588
+
1589
+ * Implemented Dataset#transform.
1590
+
1591
+ * Added gem spec for Windows (without ParseTree dependency).
1592
+
1593
+ * Added support for dynamic strings in Sequelizer (#49).
1594
+
1595
+ * Query branch merged into trunk.
1596
+
1597
+ * Implemented self-changing methods.
1598
+
1599
+ * Add support for ternary operator to Sequelizer.
1600
+
1601
+ * Fixed sequelizer to evaluate expressions if they don't involve symbols or literal strings.
1602
+
1603
+ * Added protection against using #each, #delete, #insert, #update inside query blocks.
1604
+
1605
+ * Improved Model#method_missing to deal with invalid attributes.
1606
+
1607
+ * Implemented Dataset#query.
1608
+
1609
+ * Added Dataset#group_by as alias for Dataset#group.
1610
+
1611
+ * Added Dataset#order_by as alias for Dataset#order.
1612
+
1613
+ * More model refactoring. Added support for composite keys.
1614
+
1615
+ * Added Dataset#empty? method (#46).
1616
+
1617
+ * Fixed Symbol#to_field_name to support names with numbers and upper-case characters (#45).
1618
+
1619
+ * Added install_no_doc rake task.
1620
+
1621
+ * Partial refactoring of model code.
1622
+
1623
+ * Refactored dataset-model association and added Dataset#set_row_filter method.
1624
+
1625
+ * Added support for case-sensitive regexps to mysql adapter.
1626
+
1627
+ * Changed mysql adapter to support encoding option as well.
1628
+
1629
+ * Added charset/encoding option to postgres adapter.
1630
+
1631
+ * Implemented Model.serialize (thanks Aman Gupta.)
1632
+
1633
+ * Changed Model.create to INSERT DEFAULT VALUES instead of (id) VALUES (null) (brings back #41.)
1634
+
1635
+ * Fixed Model.new to work without arguments.
1636
+
1637
+ * Added Model.no_primary_key method to allow models without primary keys.
1638
+
1639
+ * Added Model#this method (#42 thanks Duane Johnson).
1640
+
1641
+ * Fixed Dataset#insert_sql to use DEFAULT VALUES clause if argument is an empty hash.
1642
+
1643
+ * Fixed Model.create to work correctly when no argument is passed (#41).
1644
+
1645
+ === 0.2.0.2 (2007-09-07)
1646
+
1647
+ * Dataset#insert can now accept subqueries.
1648
+
1649
+ * Changed Migrator.apply to return the version.
1650
+
1651
+ * Changed Sequel::Model() to cache intermediate classes so descendant classes can be reopened (#39).
1652
+
1653
+ * Added :charset option to MySQL adapter (#40).
1654
+
1655
+ * Fixed Dataset#exclude to add parens around NOT expression (#38).
1656
+
1657
+ * Fixed use of sub-queries with all comparison operators in block filters (#38).
1658
+
1659
+ * Fixed arithmetic expressions in block filters to not be literalized.
1660
+
1661
+ * Changed Symbol#method_missing to return LiteralString.
1662
+
1663
+ * Changed PrettyTable to right-align numbers.
1664
+
1665
+ * Fixed Model.create_table (thanks Duane Johnson.)
1666
+
1667
+ === 0.2.0.1 (2007-09-04)
1668
+
1669
+ * Improved support for invoking methods with inline procs inside block filters.
1670
+
1671
+ === 0.2.0 (2007-09-02)
1672
+
1673
+ * Fixed Model.drop_table (thanks Duane Johnson.)
1674
+
1675
+ * Dataset#each can now return rows for arbitrary SQL by specifying :sql option.
1676
+
1677
+ * Added spec for postgres adapter.
1678
+
1679
+ * Fixed Model.method_missing to work with new SQL generation.
1680
+
1681
+ * Fixed #compare_expr to support regexps.
1682
+
1683
+ * Fixed postgres, mysql adapters to support regexps.
1684
+
1685
+ * More specs for block filters. Updated README.
1686
+
1687
+ * Added support for globals and $X macros in block filters.
1688
+
1689
+ * Fixed Sequelizer to not fail if ParseTree or Ruby2Ruby gems are missing.
1690
+
1691
+ * Renamed String#expr into String#lit (#expr should be deprecated in future versions).
1692
+
1693
+ * Renamed Sequel::ExpressionString into LiteralString.
1694
+
1695
+ * Fixed Symbol#[] to return an ExpressionString, so as not to be literalized.
1696
+
1697
+ * Renamed Dataset::Expressions to Dataset::Sequelizer.
1698
+
1699
+ * Renamed Expressions#format_re_expression to match_expr.
1700
+
1701
+ * Renamed Expressions#format_eq_expression to compare_expr.
1702
+
1703
+ * Added support for Regexp in MySQL adapter.
1704
+
1705
+ * Refactored Regexp expressions into a separate #format_re_expression method.
1706
+
1707
+ * Added support for arithmetic in proc filters.
1708
+
1709
+ * Added support for nested proc expressions, more specs.
1710
+
1711
+ * Added support for SQL function using symbols, e.g. :sum[:x].
1712
+
1713
+ * Fixed deadlock bug in ConnectionPool.
1714
+
1715
+ * Removed deprecated old expressions.rb.
1716
+
1717
+ * Rewrote Proc filter feature using ParseTree.
1718
+
1719
+ * Added support for additional functions on columns using Symbol#method_missing.
1720
+
1721
+ * Added support for supplying filter block to DB#[] method, to allow stuff like DB[:nodes] {:path =~ /^icex1/}.
1722
+
1723
+ === 0.1.9.12 (2007-08-26)
1724
+
1725
+ * Added spec for PrettyTable.
1726
+
1727
+ * Added specs for Schema::Generator and Model (#36 thanks technoweenie).
1728
+
1729
+ * Fixed Sequel::Model.set_schema (#36 thanks technoweenie.)
1730
+
1731
+ * Added support for no options on Schema::Generator#foreign_key (#36 thanks technoweenie.)
1732
+
1733
+ * Implemented (restored?) Schema::Generator#primary_key_name (#36 thanks technoweenie.)
1734
+
1735
+ * Better spec code coverage.
1736
+
1737
+ === 0.1.9.11 (2007-08-24)
1738
+
1739
+ * Changed Dataset#set_model to allow supplying additional arguments to the model's initialize method (#35). Thanks Sunny Hirai.
1740
+
1741
+ === 0.1.9.10 (2007-08-22)
1742
+
1743
+ * Changed schema generation code to generate separate statements for CREATE TABLE and each CREATE INDEX (#34).
1744
+
1745
+ * Refactored Dataset::SQL#field_name for better support of different field quoting standards by specific adapters.
1746
+
1747
+ * Added #current_page_record_count for paginated datasets.
1748
+
1749
+ * Removed Database#literal and included Dataset::SQL instead.
1750
+
1751
+ * Sequel::Dataset:SQL#field_name can now take a hash (as well as #select and any method that uses #field_name) for aliasing column names. E.g. DB[:test].select(:_qqa => 'Date').sql #=> 'SELECT _qqa AS Date FROM test'.
1752
+
1753
+ * Moved SingleThreadedPool to lib/sequel/connection_pool.rb.
1754
+
1755
+ * Changed SQLite::Dataset to return affected rows for #delete and #update (#33).
1756
+
1757
+ * ADO adapter: Added use of Enumerable for Recordset#Fields, playing it safe and moving to the first row before getting results, and changing the auto_increment constant to work for MSSQL.
1758
+
1759
+ === 0.1.9.9 (2007-08-18)
1760
+
1761
+ * New ADO adapter by cdcarter (#31).
1762
+
1763
+ * Added automatic column aliasing to #avg, #sum, #min and #max (#30).
1764
+
1765
+ * Fixed broken Sequel::DBI::Dataset#fetch_rows (#29 thanks cdcarter.)
1766
+
1767
+ === 0.1.9.8 (2007-08-15)
1768
+
1769
+ * Fixed DBI adapter.
1770
+
1771
+ === 0.1.9.7 (2007-08-15)
1772
+
1773
+ * Added support for executing batch statements in sqlite adapter.
1774
+
1775
+ * Changed #current_page_record_range to return 0..0 for an invalid page.
1776
+
1777
+ * Fixed joining of aliased tables.
1778
+
1779
+ * Improved Symbol#to_field_name to prevent false positives.
1780
+
1781
+ * Implemented Dataset#multi_insert with :commit_every option.
1782
+
1783
+ * More docs for Dataset#set_model.
1784
+
1785
+ * Implemented automatic creation of convenience methods for each adapter (e.g. Sequel.sqlite etc.)
1786
+
1787
+ === 0.1.9.6 (2007-08-13)
1788
+
1789
+ * Refactored schema definition code. Gets rid of famous primary_key problem as well as other issues (e.g. issue #22).
1790
+
1791
+ * Added #pagination_record_count, #page_range and #current_page_record_range for paginated datasets.
1792
+
1793
+ * Changed MySQL adapter to automatically reconnect (issue #26).
1794
+
1795
+ * Changed Sequel() to accept variable arity.
1796
+
1797
+ * Added :elements option to column definition, in order to support ENUM and SET types.
1798
+
1799
+ === 0.1.9.5 (2007-08-12)
1800
+
1801
+ * Fixed migration docs.
1802
+
1803
+ * Removed dependency on PGconn in Schema class.
1804
+
1805
+ === 0.1.9.4 (2007-08-11)
1806
+
1807
+ * Added Sequel.dbi convenience method for using DBI connection strings to open DBI databases.
1808
+
1809
+ === 0.1.9.3 (2007-08-10)
1810
+
1811
+ * Added support for specifying field size in schema definitions (thanks Florian Aßmann.)
1812
+
1813
+ * Added migration code based on work by Florian Aßmann.
1814
+
1815
+ * Reintroduced metaid dependency. No need to keep a local copy of it.
1816
+
1817
+ === 0.1.9.2 (2007-07-24)
1818
+
1819
+ * Removed metaid dependency. Re-factored requires in lib/sequel.rb.
1820
+
1821
+ === 0.1.9.1 (2007-07-22)
1822
+
1823
+ * Improved robustness of MySQL::Dataset#field_name.
1824
+
1825
+ * Added Sequel.single_threaded= convenience method.
1826
+
1827
+ === 0.1.9 (2007-07-21)
1828
+
1829
+ * Fixed #update_sql and #insert_sql to support field quoting by calling #field_name.
1830
+
1831
+ * Implemented automatic data type conversion in mysql adapter.
1832
+
1833
+ * Added support for boolean literals in mysql adapter.
1834
+
1835
+ * Added support for ORDER and LIMIT clauses in UPDATE statements in mysql adapter.
1836
+
1837
+ * Implemented correct field quoting (using back-ticks) in mysql adapter.
1838
+
1839
+ * Wrote basic MySQL spec.
1840
+
1841
+ * Fixd MySQL::Dataset to return correct data types with symbols as hash keys.
1842
+
1843
+ * Removed discunctional MySQL::Database#transaction.
1844
+
1845
+ * Added support for single threaded operation.
1846
+
1847
+ * Fixed bug in Dataset#format_eq_expression where Range objects would not be literalized correctly.
1848
+
1849
+ * Added parens around postgres LIKE expressions using regexps.
1850
+
1851
+ === 0.1.8 (2007-07-10)
1852
+
1853
+ * Implemented Dataset#columns for retrieving the columns in the result set.
1854
+
1855
+ * Updated Model with changes to how model-associated datasets work.
1856
+
1857
+ * Beefed-up specs. Coverage is now at 95.0%.
1858
+
1859
+ * Added support for polymorphic datasets.
1860
+
1861
+ * The adapter dataset interface was simplified and standardized. Only four methods need be overriden: fetch_rows, update, insert and delete.
1862
+
1863
+ * The Dataset class was refactored. The bulk of the dataset code was moved into separate modules.
1864
+
1865
+ * Renamed Dataset#hash_column to Dataset#to_hash.
1866
+
1867
+ * Added some common pragmas to sqlite adapter.
1868
+
1869
+ * Added Postgres::Dataset#analyze for EXPLAIN ANALYZE queries.
1870
+
1871
+ * Fixed broken Postgres::Dataset#explain.
1872
+
1873
+ === 0.1.7
1874
+
1875
+ * Removed db.synchronize wrapping calls in sqlite adapter.
1876
+
1877
+ * Implemented Model.join method to restrict returned columns to the model table (thanks Pedro Gutierrez).
1878
+
1879
+ * Implemented Dataset#paginate method.
1880
+
1881
+ * Fixed after_destroy hook.
1882
+
1883
+ * Improved Dataset#first and #last to accept a filter hash.
1884
+
1885
+ * Added Dataset#[]= method.
1886
+
1887
+ * Added Sequel() convenience method.
1888
+
1889
+ * Fixed Dataset#first to include a LIMIT clause for a single record.
1890
+
1891
+ * Small fix to Postgres driver to return a primary_key value for the inserted record if it is specified in the insertion values (thanks Florian Aßmann and Pedro Gutierrez).
1892
+
1893
+ * Fixed Symbol#DESC to support qualified notation (thanks Pedro Gutierrez).
1894
+
1895
+ === 0.1.6
1896
+
1897
+ * Fixed Model#method_missing to raise for an invalid attribute.
1898
+
1899
+ * Fixed PrettyTable to print model objects (thanks snok.)
1900
+
1901
+ * Fixed ODBC timestamp conversion to return DateTime rather than Time object (thanks snok.)
1902
+
1903
+ * Fixed Model.method_missing (thanks snok.)
1904
+
1905
+ * Model.method_missing now creates stubs for calling Model.dataset methods. Methods like Model.each etc are removed.
1906
+
1907
+ * Changed default join type to INNER JOIN (thanks snok.)
1908
+
1909
+ * Added support for literal expressions, e.g. DB[:items].filter(:col1 => 'col2 - 10'.expr).
1910
+
1911
+ * Added Dataset#and.
1912
+
1913
+ * SQLite adapter opens a memory DB if no database is specified, e.g. Sequel.open 'sqlite:/'.
1914
+
1915
+ * Added Dataset#or, pretty nifty.
1916
+
1917
+ === 0.1.5
1918
+
1919
+ * Fixed Dataset#join to support multiple joins. Added #left_outer_join, #right_outer_join, #full_outer_join, #inner_join methods.
1920
+
1921
+ === 0.1.4
1922
+
1923
+ * Added String#split_sql.
1924
+
1925
+ * Implemented Array#to_sql and String#to_sql. Database#to_sql can now take an array of strings and convert into an SQL string. Comments and excessive white-space are removed.
1926
+
1927
+ * Improved Schema generator to support data types as method names:
1928
+ DB.create_table :test do
1929
+ integer :abc
1930
+ text :def
1931
+ ...
1932
+ end
1933
+
1934
+ * Implemented ODBC adapter.
1935
+
1936
+ === 0.1.3
1937
+
1938
+ * Implemented DBI adapter.
1939
+
1940
+ * Refactored database connection code. Now handled through Database#connect.
1941
+
1942
+ === 0.1.2
1943
+
1944
+ * The first opened database is automatically assigned to to Model.db.
1945
+
1946
+ * Removed SequelConnectionError. Exception class errors are converted to RuntimeError.
1947
+
1948
+ * Added support for UNION, INTERSECT and EXCEPT set operations.
1949
+
1950
+ * Fixed Dataset#single_record to return nil if no record is found.
1951
+
1952
+ * Updated specs to conform to RSpec 1.0.
1953
+
1954
+ * Added Model#find_or_create method.
1955
+
1956
+ * Fixed MySQL::Dataset#query_single (thanks Dries Harnie.)
1957
+
1958
+ * Added Model.subset method. Fixed Model.filter and Model.exclude to accept blocks.
1959
+
1960
+ * Added Database#uri method.
1961
+
1962
+ * Refactored and removed deprecated code in postgres adapter.
1963
+
1964
+ ===0.1.1
1965
+
1966
+ * More documentation for Dataset.
1967
+
1968
+ * Added Dataset#size as alias to Dataset#count.
1969
+
1970
+ * Changed Database#<< to call execute (instead of being an alias). Thus it will work for descendants as well.
1971
+
1972
+ * Fixed Sequel.open to accept variable arity.
1973
+
1974
+ * Refactored Model#refresh, Model.create. Removed Model#reload.
1975
+
1976
+ * Refactored Model hooks.
1977
+
1978
+ * Cleaned up Dataset API.
1979
+
1980
+ === 0.1.0
1981
+
1982
+ * Changed Database#create_table to only accept a block. Nobody's gonna use the other way.
1983
+
1984
+ * Removed Dataset#[]= method. Too confusing and not really useful.
1985
+
1986
+ * Fixed ConnectionPool#hold to wrap exceptions only once.
1987
+
1988
+ * Dataset#where_list Renamed Dataset#expression_list.
1989
+
1990
+ * Added support for qualified fields in Proc expressions (e.g. filter {items.id == 1}.)
1991
+
1992
+ * Added like? and in? Proc expression operators.
1993
+
1994
+ * Added require 'date' in dataset.rb. Is this a 1.8.5 thing?
1995
+
1996
+ * Refactored Dataset to use literal strings instead of format strings (slight performance improvement and better readability.)
1997
+
1998
+ * Added support for literalizing Date objects.
1999
+
2000
+ * Refactored literalization of Time objects.
2001
+
2002
+ === 0.0.20
2003
+
2004
+ * Refactored Dataset where clause construction to use expressions.
2005
+
2006
+ * Implemented Proc expressions (adapted from a great idea by Sam Smoot.)
2007
+
2008
+ * Fixed Model#map.
2009
+
2010
+ * Documentation for ConnectionPool.
2011
+
2012
+ * Specs for Database.
2013
+
2014
+ === 0.0.19
2015
+
2016
+ * More specs for Dataset.
2017
+
2018
+ * Fixed Dataset#invert_order to work correctly with strings.
2019
+
2020
+ * Fixed Model#== to check equality of values.
2021
+
2022
+ * Added Model#exclude and Model#order.
2023
+
2024
+ * Fixed Dataset#order and Dataset#group to behave correctly when supplied with qualified field name symbols.
2025
+
2026
+ * Removed Database#literal. Shouldn't have been there.
2027
+
2028
+ * Added SQLite::Dataset#explain. Returns an array of opcode hashes.
2029
+
2030
+ * Specs for ConnectionPool.
2031
+
2032
+ === 0.0.18
2033
+
2034
+ * Implemented SequelError and SequelConnectionError classes. ConnectionPool#hold now catches any connection errors and reraises them SequelConnectionError.
2035
+
2036
+ * Removed duplication in Database#[].
2037
+
2038
+ * :from and :select options are now always arrays (patch by Alex Bradbury.)
2039
+
2040
+ * Fixed Dataset#exclude to work correctly (patch and specs by Alex Bradbury.)
2041
+
2042
+ === 0.0.17
2043
+
2044
+ * Fixed Postgres::Database#tables to return table names as symbols (caused problem when using Database#table_exists?).
2045
+
2046
+ * Fixed Dataset#from to have variable arity, like Dataset#select and Dataset#where (patch by Alex Bradbury.)
2047
+
2048
+ * Added support for GROUP BY and HAVING clauses (patches by Alex Bradbury.) Refactored Dataset#filter.
2049
+
2050
+ * More specs.
2051
+
2052
+ * Refactored Dataset#where for better composability.
2053
+
2054
+ * Added Dataset#[]= method.
2055
+
2056
+ * Added support for DISTINCT and OFFSET clauses (patches by Alex Bradbury.) Dataset#limit now accepts ranges. Added Dataset#uniq and distinct methods.
2057
+
2058
+ === 0.0.16
2059
+
2060
+ * More documentation.
2061
+
2062
+ * Added support for subqueries in Dataset#literal.
2063
+
2064
+ * Added support for Model.all_by_XXX methods through Model.method_missing.
2065
+
2066
+ * Added basic SQL logging to Database.
2067
+
2068
+ * Added Enumerable#send_each convenience method.
2069
+
2070
+ * Changed Dataset#destroy to return the number of deleted records.
2071
+
2072
+ === 0.0.15
2073
+
2074
+ * Improved Dataset#insert_sql to allow arrays as well as hashes.
2075
+
2076
+ * Database#drop_table now accepts a list of table names.
2077
+
2078
+ * Added Model#id to to return the id column.
2079
+
2080
+ === 0.0.14
2081
+
2082
+ * Fixed Model's attribute accessors (hopefully for the last time).
2083
+
2084
+ * Changed Model.db and Model.db= to allow different databases for different model classes.
2085
+
2086
+ * Fixed bug in aggregate methods (max, min, etc) for datasets using record classes.
2087
+
2088
+ === 0.0.13
2089
+
2090
+ * Fixed Model#method_missing to do both find, filter and attribute accessors. duh.
2091
+
2092
+ * Fixed bug in Dataset#literal when quoting arrays of strings (thanks Douglas Koszerek.)
2093
+
2094
+ === 0.0.12
2095
+
2096
+ * Model#save now correctly performs an INSERT for new objects.
2097
+
2098
+ * Added Model#reload for reloading an object from the database.
2099
+
2100
+ * Added Dataset#naked method for getting a version of a dataset that fetches records as hashes.
2101
+
2102
+ * Implemented attribute accessors for column values ala ActiveRecord models.
2103
+
2104
+ * Fixed filtering using nil values (e.g. dataset.filter(:parent_id => nil)).
2105
+
2106
+ === 0.0.11
2107
+
2108
+ * Renamed Model.schema to Model.set_schema and Model.get_schema to Model.schema.
2109
+
2110
+ * Improved Model class to allow descendants of model clases (thanks Pedro Gutierrez.)
2111
+
2112
+ * Removed require 'postgres' in schema.rb (thanks Douglas Koszerek.)
2113
+
2114
+ === 0.0.10
2115
+
2116
+ * Added some examples.
2117
+
2118
+ * Added Dataset#print method for pretty-printing tables.
2119
+
2120
+ === 0.0.9
2121
+
2122
+ * Fixed Postgres::Database#tables and #locks methods.
2123
+
2124
+ * Added PGconn#last_insert_id method that should support all 7.x and 8.x versions of Postgresql.
2125
+
2126
+ * Added Dataset#exists method for EXISTS where clauses.
2127
+
2128
+ * Changed behavior of Dataset#literal to regard symbols as field names.
2129
+
2130
+ * Refactored and DRY'd Dataset#literal and overrides therof. Added support for subqueries in where clause.
2131
+
2132
+ === 0.0.8
2133
+
2134
+ * Fixed Dataset#reverse_order to provide chainability. This method can be called without arguments to invert the current order or with arguments to provide a descending order.
2135
+
2136
+ * Fixed literal representation of literals in SQLite adapter (thanks Christian Neukirchen!)
2137
+
2138
+ * Refactored insert code in Postgres adapter (in preparation for fetching the last insert id for pre-8.1 versions).
2139
+
2140
+ === 0.0.7
2141
+
2142
+ * Fixed bug in Model.schema, duh!
2143
+
2144
+ === 0.0.6
2145
+
2146
+ * Added Dataset#sql as alias to Dataset#select_sql.
2147
+
2148
+ * Dataset#where and Dataset#exclude can now be used for refining dataset conditions, enabling stuff like posts.where(:title => 'abcdef').exclude(:user_id => 3).
2149
+
2150
+ * Implemented Dataset#exclude method.
2151
+
2152
+ * Added Sequel::Schema#auto_primary_key method for setting an automatic primary key to be added to every table definition. Changed the schema generator to not define a primary key by default.
2153
+
2154
+ * Changed Sequel::Database#table_exists? to rely on the tables method if it is available.
2155
+
2156
+ * Implemented SQLite::Database#tables.
2157
+
2158
+ === 0.0.5
2159
+
2160
+ * Added Dataset#[] method. Refactored Model#find and Model#[].
2161
+
2162
+ * Renamed Pool#conn_maker to Pool#connection_proc.
2163
+
2164
+ * Added automatic require 'sequel' to all adapters for convenience.
2165
+
2166
+ === 0.0.4
2167
+
2168
+ * Added preliminary MySQL support.
2169
+
2170
+ * Code cleanup.
2171
+
2172
+ === 0.0.3
2173
+
2174
+ * Add Dataset#sum method.
2175
+
2176
+ * Added support for exclusive ranges (thanks Christian Neukirchen.)
2177
+
2178
+ * Added sequel console for quick'n'dirty access to databases.
2179
+
2180
+ * Fixed small bug in Dataset#qualified_field_name for better join support.
2181
+
2182
+ === 0.0.2
2183
+
2184
+ * Added Sequel.open as alias to Sequel.connect.
2185
+
2186
+ * Refactored Dataset#where_equal_condition into Dataset#where_condition, allowing arrays and ranges, e.g. posts.filter(:stamp => (3.days.ago)..(1.day.ago)), or posts.filter(:category => ['ruby', 'postgres', 'linux']).
2187
+
2188
+ * Added Model#[]= method for changing column values and Model#save
2189
+ method for saving them.
2190
+
2191
+ * Added Dataset#destroy for deleting each record individually as support for models. Renamed Model#delete to Model#destroy (and Model#destroy_all) ala ActiveRecord.
2192
+
2193
+ * Refactored Dataset#first and Dataset#last code. These methods can now accept the number of records to fetch.
2194
+
2195
+ === 0.0.1
2196
+
2197
+ * More documentation for Dataset.
2198
+
2199
+ * Renamed Database#query to Database#dataset.
2200
+
2201
+ * Added Dataset#insert_multiple for inserting multiple records.
2202
+
2203
+ * Added Dataset#<< as shorthand for inserting records.
2204
+
2205
+ * Added Database#<< method for executing arbitrary SQL.
2206
+
2207
+ * Imported Sequel code.
2208
+
2209
+
2210
+ == Sequel::Model CHANGELOG 0.1 - 0.5.0.2
2211
+
2212
+ === 0.5.0.2 (2008-03-12)
2213
+
2214
+ * More fixes for Model.associate to accept strings and symbols as class references.
2215
+
2216
+ === 0.5.0.1 (2008-03-09)
2217
+
2218
+ * Fixed Model.associate to accept class and class name in :class option.
2219
+
2220
+ === 0.5 (2008-03-08)
2221
+
2222
+ * Merged new associations branch into trunk.
2223
+
2224
+ * Rewrote RDoc for associations.
2225
+
2226
+ * Added has_and_belongs_to_many alias for many_to_many.
2227
+
2228
+ * Added support for optional dataset block.
2229
+
2230
+ * Added :order option to order association datasets.
2231
+
2232
+ * Added :cache option to return and cache array of objects for association.
2233
+
2234
+ * Changed one_to_many, many_to_many associations to return dataset by default.
2235
+
2236
+ * Added has_many, belongs_to aliases.
2237
+
2238
+ * Refactored associations code.
2239
+
2240
+ * Added deprecations for old-style relations.
2241
+
2242
+ * Completed specs for new associations code.
2243
+
2244
+ * New associations code by Jeremy Evans (replaces relations code.)
2245
+
2246
+ === 0.4.2 (2008-02-29)
2247
+
2248
+ * Fixed one_to_many implicit key to work correctly for namespaced classes (#167).
2249
+
2250
+ * Fixed Model.db= to affect the underlying dataset (#183).
2251
+
2252
+ * Fixed Model.implicit_table_name to disregard namespaces.
2253
+
2254
+ === 0.4.1 (2008-02-10)
2255
+
2256
+ * Implemented Model#inspect (#151).
2257
+
2258
+ * Changed Model#method_missing to short-circuit and bypass checking #columns if the values hash already contains the relevant column (#150).
2259
+
2260
+ * Updated to reflect changes in sequel_core (Dataset#clone_merge renamed to Dataset#clone).
2261
+
2262
+ === 0.4 (2008-02-05)
2263
+
2264
+ * Fixed Model#set to work with string keys (#143).
2265
+
2266
+ * Fixed Model.create to correctly initialize instances marked as new (#135).
2267
+
2268
+ * Fixed Model#initialize to convert string keys into symbol keys. This also fixes problem with validating objects initialized with string keys (#136).
2269
+
2270
+ === 0.3.3 (2008-01-25)
2271
+
2272
+ * Finalized support for virtual attributes.
2273
+
2274
+ === 0.3.2.1 (2008-01-24)
2275
+
2276
+ * Fixed Model.dataset to correctly set the dataset if using implicit naming or inheriting the superclass dataset (thanks celldee).
2277
+
2278
+ === 0.3.2 (2008-01-24)
2279
+
2280
+ * Added Model#update_with_params method with support for virtual attributes and auto-filtering of unrelated parameters, and changed Model.create_with_params to support virtual attributes (#128).
2281
+
2282
+ * Cleaned up gem spec (#132).
2283
+
2284
+ * Removed validations code. Now relying on validations in assistance gem.
2285
+
2286
+ === 0.3.1 (2008-01-21)
2287
+
2288
+ * Changed Model.dataset to use inflector to pluralize the class name into the table name. Works in similar fashion to table names in AR or DM.
2289
+
2290
+ === 0.3 (2008-01-18)
2291
+
2292
+ * Implemented Validatable::Errors class.
2293
+
2294
+ * Added Model#reload as alias to Model#refresh.
2295
+
2296
+ * Changed Model.create to accept a block (#126).
2297
+
2298
+ * Rewrote validations.
2299
+
2300
+ * Fixed Model#initialize to accept nil values (#115).
2301
+
2302
+ === 0.2 (2008-01-02)
2303
+
2304
+ * Removed deprecated Model.recreate_table method.
2305
+
2306
+ * Removed deprecated :class and :on options from one_to_many macro.
2307
+
2308
+ * Removed deprecated :class option from one_to_one macro.
2309
+
2310
+ * Removed deprecated Model#pkey method.
2311
+
2312
+ * Changed dependency to sequel_core.
2313
+
2314
+ * Removed examples from sequel core.
2315
+
2316
+ * Additional specs. We're now at 100% coverage.
2317
+
2318
+ * Refactored hooks code. Hooks are now inheritable, and can be defined by supplying a block or a method name, or by overriding the hook instance method. Hook chains can now be broken by returning false (#111, #112).
2319
+
2320
+ === 0.1 (2007-12-30)
2321
+
2322
+ * Moved model code from sequel into separate model sub-project.