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