forked from jeremyevans/sequel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
2764 lines (1385 loc) · 107 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=== HEAD
* Add sql_expr extension, which adds the sql_expr to all objects, giving them easy access to Sequel's DSL (jeremyevans)
* Add active_model plugin, which gives Sequel::Model an ActiveModel compliant API, passes the ActiveModel::Lint tests (jeremyevans)
* Fix MySQL commands out of sync error when using queries with multiple result sets without retrieving all result sets (jeremyevans)
* Allow splitting of multiple result sets into separate arrays when using multiple statements in a single query in the native MySQL adapter (jeremyevans)
* Don't include primary key indexes when parsing MSSQL indexes on JDBC (jeremyevans)
* Make Dataset#insert_select return nil on PostgreSQL if disable_insert_returning is used (jeremyevans)
* Speed up execution of prepared statements with bound variables on MySQL ([email protected])
* Add association_dependencies plugin, for deleting, destroying, or nullifying associated objects when destroying a model object (jeremyevans)
* Add :validate association option, set to false to not validate when implicitly saving associated objects (jeremyevans)
* Add subclasses plugin, for recording all of a models subclasses and descendent classes (jeremyevans)
* Add looser_typecasting extension, for using .to_f and .to_i instead of Kernel.Float and Kernel.Integer when typecasting floats and integers (jeremyevans)
* Catch database errors when preparing statements or setting variable values when using the native MySQL adapter (jeremyevans)
* Add typecast_on_load plugin, for fixing bad database typecasting when loading model objects (jeremyevans)
* Detect more types of MySQL disconnection errors (jeremyevans)
* Add Sequel.convert_exception_class for wrapping exceptions (jeremyevans)
* Model#modified? now always considers new records as modified (jeremyevans)
* Typecast before checking current model attribute value, instead of after (jeremyevans)
* Don't attempt to use unparseable defaults as literals when dumping the schema for a MySQL database (jeremyevans)
* Handle MySQL enum defaults in the schema dumper (jeremyevans)
* Support Database#server_version on MSSQL (dlee, jeremyevans)
* Support updating and deleting joined datasets on MSSQL (jfirebaugh)
* Support the OUTPUT SQL clause on MSSQL delete, insert, and update statements (jfirebaugh)
* Refactor generation of delete, insert, select, and update statements (jfirebaugh, jeremyevans)
* Do a better job of parsing defaults on MSSQL (jfirebaugh)
=== 3.4.0 (2009-09-02)
* Allow datasets without tables to work correctly on Oracle (mikegolod)
* Add #invert, #asc, and #desc to OrderedExpression (dlee)
* Allow validates_unique to take a block used to scope the uniqueness constraint (drfreeze, jeremyevans)
* Automatically save a new many_to_many associated object when associating the object via add_* (jeremyevans)
* Add a nested_attributes plugin for modifying associated objects directly through a model object (jeremyevans)
* Add an instance_hooks plugin for adding hooks to specific model instances (jeremyevans)
* Add a boolean_readers plugin for creating attribute? methods for boolean columns (jeremyevans)
* Add Dataset#ungrouped which removes existing grouping (jeremyevans)
* Make Dataset#group with nil or no arguments to remove existing grouping (dlee)
* Fix using multiple emulated ALTER TABLE statements (e.g. drop_column) in a single alter_table block on SQLite (jeremyevans)
* Don't allow inserting on a grouped dataset or a dataset that selects from multiple tables (jeremyevans)
* Allow class Item < Sequel::Model(DB2) to work (jeremyevans)
* Add Dataset#truncate for truncating tables (jeremyevans)
* Add Database#run method for executing arbitrary SQL on a database (jeremyevans)
* Handle index parsing correctly for tables in a non-default schema on JDBC (jfirebaugh)
* Handle unique index parsing correctly when connecting to MSSQL via JDBC (jfirebaugh)
* Add support for converting Time/DateTime to local or UTC time upon storage, retrieval, or typecasting (jeremyevans)
* Accept a hash when typecasting values to date, time, and datetime types (jeremyevans)
* Make JDBC adapter prepared statements support booleans, blobs, and potentially any type of object (jfirebaugh)
* Refactor the inflection support and modify the default inflections (jeremyevans, dlee)
* Make the serialization and lazy_attribute plugins add accessor methods to modules included in the class (jeremyevans)
* Make Database#schema on JDBC include a :column_size entry specifying the maximum length/precision for the column (jfirebaugh)
* Make Database#schema on JDBC accept a :schema option (dlee)
* Fix Dataset#import when called with a dataset (jeremyevans)
* Give a much more descriptive error message if the mysql.rb driver is detected (jeremyevans)
* Make postgres adapter work with a modified postgres-pr that raises PGError (jeremyevans)
* Make ODBC adapter respect Sequel.datetime_class (jeremyevans)
* Add support for generic concepts of CURRENT_{DATE,TIME,TIMESTAMP} (jeremyevans)
* Add a timestamps plugin for automatically creating hooks for create and update timestamps (jeremyevans)
* Add support for serializing to json (derdewey)
=== 3.3.0 (2009-08-03)
* Add an assocation_proxies plugin that uses proxies for associations (jeremyevans)
* Have the add/remove/remove_all methods take additional arguments and pass them to the internal methods (clivecrous)
* Move convert_tinyint_to_bool method from Sequel to Sequel::MySQL (jeremyevans)
* Model associations now default to associating to classes in the same scope (jeremyevans, nougad) (#274)
* Add Dataset#unlimited, similar to unfiltered and unordered (jeremyevans)
* Make Dataset#from_self take an options hash and respect an :alias option, giving the alias to use (Phrogz)
* Make the JDBC adapter accept a :convert_types option to turn off Java type conversion and double performance (jeremyevans)
* Slight increase in ConnectionPool performance (jeremyevans)
* SQL::WindowFunction can now be aliased/casted etc. just like SQL::Function (jeremyevans)
* Model#save no longer attempts to update primary key columns (jeremyevans)
* Sequel will now unescape values provided in connection strings (e.g. ado:///db?host=server%5cinstance) (jeremyevans)
* Significant improvements to the ODBC and ADO adapters in general (jeremyevans)
* The ADO adapter no longer attempts to use database transactions, since they never worked (jeremyevans)
* Much better support for Microsoft SQL Server using the ADO, ODBC, and JDBC adapters (jeremyevans)
* Support rename_column, set_column_null, set_column_type, and add_foreign_key on H2 (jeremyevans)
* Support adding a column with a primary key or unique constraint to an existing table on SQLite (jeremyevans)
* Support altering a column's type, null status, or default on SQLite (jeremyevans)
* Fix renaming a NOT NULL column without a default on MySQL (nougad, jeremyevans) (#273)
* Don't swallow DatabaseConnectionErrors when creating model subclasses (tommy.midttveit)
=== 3.2.0 (2009-07-02)
* In the STI plugin, don't overwrite the STI field if it is already set (jeremyevans)
* Add support for Common Table Expressions, which use the SQL WITH clause (jeremyevans)
* Add SQL::WindowFunction, expand virtual row blocks to support them and other constructions (jeremyevans)
* Add Model#autoincrementing_primary_key, for when the autoincrementing key isn't the same as the primary key (jeremyevans)
* Add Dataset#ungraphed, to remove the splitting of results into subhashes or associated records (jeremyevans)
* Support :opclass option for PostgreSQL indexes (tmi, jeremyevans)
* Make parsing of server's version more reliable for PostgreSQL (jeremyevans)
* Add Dataset#qualify, which is qualify_to with a first_source default (jeremyevans)
* Add :ruby_default to parsed schema information, which contains a ruby object representing the database default (jeremyevans)
* Fix changing a column's name, type, or null status on MySQL when column has a string default (jeremyevans)
* Remove Dataset#to_table_reference protected method, no longer used (jeremyevans)
* Fix thread-safety issue in stored procedure code (jeremyevans)
* Remove SavepointTransactions module, integrate into Database code (jeremyevans)
* Add supports_distinct_on? method (jeremyevans)
* Remove SQLStandardDateFormat, replace with requires_sql_standard_datetimes? method (jeremyevans)
* Remove UnsupportedIsTrue module, replace with supports_is_true? method (jeremyevans)
* Remove UnsupportedIntersectExcept(All)? modules, replace with methods (jeremyevans)
* Make Database#indexes work on PostgreSQL versions prior to 8.3 (tested on 7.4) (jeremyevans)
* Fix bin/sequel using a YAML file on 1.9 (jeremyevans)
* Allow connection pool options to be specified in connection string (jeremyevans)
* Handle :user and :password options in the JDBC adapter (jeremyevans)
* Fix warnings when using the ODBC adapter (jeremyevans)
* Add opening_databases.rdoc file for describing how to connect to a database (mwlang, jeremyevans)
* Significantly increase JDBC select performance (jeremyevans)
* Slightly increase SQLite select performance using the native adapter (jeremyevans)
* Majorly increase MySQL select performance using the native adapter (jeremyevans)
* Pass through unsigned/elements/size and other options when altering columns on MySQL (tmm1)
* Allow on_duplicate_key_update to affect Dataset#insert on MySQL (tmm1)
* Support using a given table and column to store schema versions, using new Migrator.run method (bougyman, jeremyevans)
* Fix foreign key table constraints on MySQL (jeremyevans)
* Remove Dataset#table_exists?, use Database#table_exists? instead (jeremyevans)
* Fix graphing of datasets with dataset sources (jeremyevans) (#271)
* Raise a Sequel::Error if Sequel.connect is called with something other than a Hash or String (jeremyevans) (#272)
* Add -N option to bin/sequel to not test the database connection (jeremyevans)
* Make Model.grep call Dataset#grep instead of Enumerable#grep (jeremyevans)
* Support the use of Regexp as first argument to StringExpression.like (jeremyevans)
* Fix Database#indexes on PostgreSQL when the schema used is a symbol (jeremyevans)
=== 3.1.0 (2009-06-04)
* Require the classes match to consider an association a reciprocal (jeremyevans) (#270)
* Make Migrator work correctly with file names like 001_873465873465873465_some_name.rb (jeremyevans) (#267)
* Add Dataset#qualify_to and #qualify_to_first_source, for qualifying unqualified identifiers in the dataset (jeremyevans)
* All the use of #sql_subscript on most SQL::* objects, and support non-integer subscript values (jeremyevans)
* Add reflection.rdoc file which explains and gives examples of many of Sequel's reflection methods (jeremyevans)
* Add many_through_many plugin, allowing you to construct an association to multiple objects through multiple join tables (jeremyevans)
* Add the :cartesian_product_number option to associations, for specifying if they can cause a cartesian product (jeremyevans)
* Make :eager_graph association option work correctly when lazily loading many_to_many associations (jeremyevans)
* Make eager_unique_table_alias consider joined tables as well as tables in the FROM clause (jeremyevans)
* Make add_graph_aliases work correctly even if set_graph_aliases hasn't been used (jeremyevans)
* Fix using :conditions that are a placeholder string in an association (e.g. :conditions=>['a = ?', 42]) (jeremyevans)
* On MySQL, make Dataset#insert_ignore affect #insert as well as #multi_insert and #import (jeremyevans, tmm1)
* Add -t option to bin/sequel to output the full backtrace if an exception is raised (jeremyevans)
* Make schema_dumper extension ignore errors with indexes unless it is dumping in the database-specific type format (jeremyevans)
* Don't dump partial indexes in the MySQL adapter (jeremyevans)
* Add :ignore_index_errors option to Database#create_table and :ignore_errors option to Database#add_index (jeremyevans)
* Make graphing a complex dataset work correctly (jeremyevans)
* Fix MySQL command out of sync errors, disconnect from database if they occur (jeremyevans)
* In the schema_dumper extension, do a much better job of parsing defaults from the database (jeremyevans)
* On PostgreSQL, assume the public schema if one is not given and there is no default in Database#tables (jeremyevans)
* Ignore a :default value if creating a String :text=>true or File column on MySQL, since it doesn't support defaults on text/blob columns (jeremyevans)
* On PostgreSQL, do not raise an error when attempting to reset the primary key sequence for a table without a primary key (jeremyevans)
* Allow plugins to have a configure method that is called on every attempt to load them (jeremyevans)
* Attempting to load an already loaded plugin no longer calls the plugin's apply method (jeremyevans)
* Make plugin's plugin_opts methods return an array of arguments if multiple arguments were given, instead of just the first argument (jeremyevans)
* Keep track of loaded plugins at Model.plugins, allows plugins to depend on other plugins (jeremyevans)
* Make Dataset#insert on PostgreSQL work with static SQL (jeremyevans)
* Add lazy_attributes plugin, for creating attributes that can be lazily loaded from the database (jeremyevans)
* Add tactical_eager_loading plugin, similar to DataMapper's strategic eager loading (jeremyevans)
* Don't raise an error when loading a plugin with DatasetMethods where none of the methods are public (jeremyevans)
* Add identity_map plugin, for creating temporary thread-local identity maps with some caching (jeremyevans)
* Support savepoints when using MySQL and SQLite (jeremyevans)
* Add -C option to bin/sequel that copies one database to another (jeremyevans)
* In the schema_dumper extension, don't include defaults that contain literal strings unless the DBs are the same (jeremyevans)
* Only include valid non-partial indexes of simple column references in the PostgreSQL adapter (jeremyevans)
* Add -h option to bin/sequel for outputting the usage, alias for -? (jeremyevans)
* Add -d and -D options to bin/sequel for dumping schema migrations (jeremyevans)
* Support eager graphing for model tables that lack primary keys (jeremyevans)
* Add Model.create_table? to the schema plugin, similar to Database#create_table? (jeremyevans)
* Add Database#create_table?, which creates the table if it doesn't already exist (jeremyevans)
* Handle ordered and limited datasets correctly when using UNION, INTERSECT, or EXCEPT (jeremyevans)
* Fix unlikely threading bug with class level validations (jeremyevans)
* Make the schema_dumper extension dump tables in alphabetical order in migrations (jeremyevans)
* Add Sequel.extension method for loading extensions, so you don't have to use require (jeremyevans)
* Allow bin/sequel to respect multiple -L options instead of ignoring all but the last one (jeremyevans)
* Add :command_timeout and :provider options to ADO adapter (hgimenez)
* Fix exception messages when Sequel.string_to_* fail (jeremyevans)
* Fix String :type=>:text generic type in the Firebird adapter (wishdev)
* Add Sequel.amalgalite adapter method (jeremyevans)
=== 3.0.0 (2009-05-04)
* Remove dead threads from connection pool if the pool is full and a connection is requested (jeremyevans)
* Add autoincrementing primary key support in the Oracle adapter, using a sequence and trigger (jeremyevans, Mike Golod)
* Make Model#save use the same server it uses for saving as for retrieving the saved record (jeremyevans)
* Add Database#database_type method, for identifying which type of database the object is connecting to (jeremyevans)
* Add ability to reset primary key sequences in the PostgreSQL adapter (jeremyevans)
* Fix parsing of non-simple sequence names (that contain uppercase, spaces, etc.) in the PostgreSQL adapter (jeremyevans)
* Support dumping indexes in the schema_dumper extension (jeremyevans)
* Add index parsing to PostgreSQL, MySQL, SQLite, and JDBC adapters (jeremyevans)
* Correctly quote SQL Array references, and handle qualified identifiers with them (e.g. :table__column.sql_subscript(1)) (jeremyevans)
* Allow dropping an index with a name different than the default name (jeremyevans)
* Allow Dataset#from to remove existing FROM tables when called without an argument, instead of raising an error later (jeremyevans)
* Fix string quoting on Oracle so it doesn't double backslashes (jeremyevans)
* Alias the count function call in Dataset#count, fixes use on MSSQL (akitaonrails, jeremyevans)
* Allow QualifiedIdentifiers to be qualified, to allow :column.qualify(:table).qualify(:schema) (jeremyevans)
* Allow :db_type=>'mssql' option to be respected when using the DBI adapter (akitaonrails)
* Add schema_dumper extension, for dumping schema of tables (jeremyevans)
* Allow generic database types specified as ruby types to take options (jeremyevans)
* Change Dataset#exclude to invert given hash argument, not negate it (jeremyevans)
* Make Dataset#filter and related methods treat multiple arguments more intuitively (jeremyevans)
* Fix full text searching with multiple search terms on MySQL (jeremyevans)
* Fix altering a column name, type, default, or NULL/NOT NULL status on MySQL (jeremyevans)
* Fix index type syntax on MySQL (jeremyevans)
* Add temporary table support, via :temp option to Database#create_table (EppO, jeremyevans)
* Add Amalgalite adapter (jeremyevans)
* Remove Sequel::Metaprogramming#metaattr_accessor and metaattr_reader (jeremyevans)
* Remove Dataset#irregular_function_sql (jeremyevans)
* Add Dataset#full_text_sql to the MySQL adapter (dusty)
* Fix schema type parsing of decimal types on MySQL (jeremyevans)
* Make Dataset#quote_identifier work with SQL::Identifiers (jeremyevans)
* Remove methods and features deprecated in 2.12.0 (jeremyevans)
=== 2.12.0 (2009-04-03)
* Deprecate Java::JavaSQL::Timestamp#usec (jeremyevans)
* Fix Model.[] optimization introduced in 2.11.0 for databases that don't use LIMIT (jacaetevha)
* Don't use the model association plugin if SEQUEL_NO_ASSOCIATIONS constant or environment variable is defined (jeremyevans)
* Don't require core_sql if SEQUEL_NO_CORE_EXTENSIONS constant or environment variable is defined (jeremyevans)
* Add validation_helpers model plugin, which adds instance level validation support similar to previously standard validations, with a different API (jeremyevans)
* Split multi_insert into 2 methods with separate APIs, multi_insert for hashes, import for arrays of columns and values (jeremyevans)
* Deprecate Dataset#transform and Model.serialize, and model serialization plugin (jeremyevans)
* Add multi_insert_update to the MySQL adapter, used for setting specific update behavior when an error occurs when using multi_insert (dusty)
* Add multi_insert_ignore to the MySQL adapter, used for skipping errors on row inserts when using multi_insert (dusty)
* Add Sequel::MySQL.convert_invalid_date_time accessor for dealing with dates like "0000-00-00" and times like "25:00:00" (jeremyevans, epugh)
* Eliminate internal dependence on core_sql extensions (jeremyevans)
* Deprecate Migration and Migrator, require 'sequel/extensions/migration' if you want them (jeremyevans)
* Denamespace Sequel::Error decendants (e.g. use Sequel::Rollback instead of Sequel::Error::Rollback) (jeremyevans)
* Deprecate Error::InvalidTransform, Error::NoExistingFilter, and Error::InvalidStatement (jeremyevans)
* Deprecate Dataset#[] when called without an argument, and Dataset#map when called with an argument and a block (jeremyevans)
* Fix aliasing columns in the JDBC adapter (per.melin) (#263)
* Make Database#rename_table remove the cached schema entry for the table (jeremyevans)
* Make Database schema sql methods private (jeremyevans)
* Deprecate Database #multi_threaded? and #logger (jeremyevans)
* Make Dataset#where always affect the WHERE clause (jeremyevans)
* Deprecate Object#blank? and related extensions, require 'sequel/extensions/blank' to get them back (jeremyevans)
* Move lib/sequel_core into lib/sequel and lib/sequel_model into lib/sequel/model (jeremyevans)
* Remove Sequel::Schema::SQL module, move methods into Sequel::Database (jeremyevans)
* Support creating and dropping schema qualified views (jeremyevans)
* Fix saving a newly inserted record in an after_create or after_save hook (jeremyevans)
* Deprecate Dataset#print and PrettyTable, require 'sequel/extensions/pretty_table' if you want them (jeremyevans)
* Deprecate Database#query and Dataset#query, require 'sequel/extensions/query' if you want them (jeremyevans)
* Deprecate Dataset#paginate and #each_page, require 'sequel/extensions/pagination' if you want them (jeremyevans)
* Fix ~{:bool_col=>true} and related inversions of boolean values (jeremyevans)
* Add disable_insert_returning method to PostgreSQL datasets, so they fallback to just using INSERT (jeremyevans)
* Don't use savepoints by default on PostgreSQL, use the :savepoint option to Database#transaction to use a savepoint (jeremyevans)
* Deprecate Database#transaction accepting a server symbol argument, use an options hash with the :server option (jeremyevans)
* Add Model.use_transactions for setting whether models should use transactions when destroying/saving records (jeremyevans, mjwillson)
* Deprecate Model::Validation::Errors, use Model::Errors (jeremyevans)
* Deprecate string inflection methods, require 'sequel/extensions/inflector' if you use them (jeremyevans)
* Deprecate Model validation class methods, override Model#validate instead or Model.plugin validation_class_methods (jeremyevans)
* Deprecate Model schema methods, use Model.plugin :schema (jeremyevans)
* Deprecate Model hook class methods, use instance methods instead or Model.plugin :hook_class_methods (jeremyevans)
* Deprecate Model.set_sti_key, use Model.plugin :single_table_inheritance (jeremyevans)
* Deprecate Model.set_cache, use Model.plugin :caching (jeremyevans)
* Move most model instance methods into Model::InstanceMethods, for easier overriding of instance methods for all models (jeremyevans)
* Move most model class methods into Model::ClassMethods, for easier overriding of class methods for all models (jeremyevans)
* Deprecate String#to_date, #to_datetime, #to_time, and #to_sequel_time, use require 'sequel/extensions/string_date_time' if you want them (jeremyevans)
* Deprecate Array#extract_options! and Object#is_one_of? (jeremyevans)
* Deprecate Object#meta_def, #meta_eval, and #metaclass (jeremyevans)
* Deprecate Module#class_def, #class_attr_overridable, #class_attr_reader, #metaalias, #metaattr_reader, and #metaatt_accessor (jeremyevans)
* Speed up the calling of most column accessor methods, and reduce memory overhead of creating them (jeremyevans)
* Deprecate Model#set_restricted using Model#[] if no setter method exists, a symbol is used, and the columns are not set (jeremyevans)
* Deprecate Model#set_with_params and #update_with_params (jeremyevans)
* Deprecate Model#save!, use Model.save(:validate=>false) (jeremyevans)
* Deprecate Model#dataset (jeremyevans)
* Deprecate Model.is and Model.is_a, use Model.plugin for plugins (jeremyevans)
* Deprecate Model.str_columns, Model#str_columns, #set_values, #update_values (jeremyevans)
* Deprecate Model.delete_all, .destroy_all, .size, and .uniq (jeremyevans)
* Copy all current dataset options when calling Model.db= (jeremyevans)
* Deprecate Model.belongs_to, Model.has_many, and Model.has_and_belongs_to_many (jeremyevans)
* Remove SQL::SpecificExpression, have subclasses inherit from SQL::Expression instead (jeremyevans)
* Deprecate SQL::CastMethods#cast_as (jeremyevans)
* Deprecate calling Database#schema without a table argument (jeremyevans)
* Remove cached version of @db_schema in model instances to reduce memory and marshalling overhead (tmm1)
* Deprecate Dataset#quote_column_ref and Dataset#symbol_to_column_ref (jeremyevans)
* Deprecate Dataset#size and Dataset#uniq (jeremyevans)
* Deprecate passing options to Dataset#each, #all, #single_record, #single_value, #sql, #select_sql, #update, #update_sql, #delete, #delete_sql, and #exists (jeremyevans)
* Deprecate Dataset#[Integer] (jeremyevans)
* Deprecate Dataset#create_view and Dataset#create_or_replace_view (jeremyevans)
* Model datasets now have a model accessor that returns the related model (jeremyevans)
* Model datasets no longer have :models and :polymorphic_key options (jeremyevans)
* Deprecate Dataset.dataset_classes, Dataset#model_classes, Dataset#polymorphic_key, and Dataset#set_model (jeremyevans)
* Allow Database#get and Database#select to take a block (jeremyevans)
* Deprecate Database#>> (jeremyevans)
* Deprecate String#to_blob and Sequel::SQL::Blob#to_blob (jeremyevans)
* Deprecate use of Symbol#| for SQL array subscripts, add Symbol#sql_subscript (jeremyevans)
* Deprecate Symbol#to_column_ref (jeremyevans)
* Deprecate String#expr (jeremyevans)
* Deprecate Array#to_sql, String#to_sql, and String#split_sql (jeremyevans)
* Deprecate passing an array to Database#<< (jeremyevans)
* Deprecate Range#interval (jeremyevans)
* Deprecate Enumerable#send_each (jeremyevans)
* Deprecate Hash#key on ruby 1.8, change some SQLite adapter constants (jeremyevans)
* Deprecate Sequel.open, Sequel.use_parse_tree=?, and the upcase_identifier methods (jeremyevans)
* Deprecate virtual row blocks without block arguments, unless Sequel.virtual_row_instance_eval is enabled (jeremyevans)
* Support schema parsing in the Oracle adapter (jacaetevha)
* Allow virtual row blocks to be instance_evaled, add Sequel.virtual_row_instance_eval= (jeremyevans)
=== 2.11.0 (2009-03-02)
* Optimize Model.[] by using static sql when possible, for a 30-40% speed increase (jeremyevans)
* Add Dataset#with_sql, which returns a clone of the datatset with static SQL (jeremyevans)
* Refactor Dataset#literal so it doesn't need to be overridden in subadapters, for a 20-25% performance increase (jeremyevans)
* Remove SQL::IrregularFunction, no longer used internally (jeremyevans)
* Allow String#lit to take arguments and return a SQL::PlaceholderLiteralString (jeremyevans)
* Add Model#set_associated_object, used by the many_to_one setter method, for easier overriding (jeremyevans)
* Allow use of database independent types when casting (jeremyevans)
* Give association datasets knowledge of the model object that created them and the related association reflection (jeremyevans)
* Make Dataset#select, #select_more, #order, #order_more, and #get take a block that yields a SQL::VirtualRow, similar to #filter (jeremyevans)
* Fix stored procedures in MySQL adapter when multiple arguments are used (clivecrous)
* Add :conditions association option, for easier filtering of associated objects (jeremyevans)
* Add :clone association option, for making clones of existing associations (jeremyevans)
* Handle typecasting invalid date strings (and possible other types) correctly (jeremyevans)
* Add :compress=>false option to MySQL adapter to turn off compression of client-server connection (tmm1)
* Set SQL_AUTO_IS_NULL=0 on MySQL connections, disable with :auto_is_null=>false (tmm1)
* Add :timeout option to MySQL adapter, default to 30 days (tmm1)
* Set MySQL encoding using Mysql#options so it works across reconnects (tmm1)
* Fully support blobs on SQLite (jeremyevans)
* Add String#to_sequel_blob, alias String#to_blob to that (jeremyevans)
* Fix default index names when a non-String or Symbol column is used (jeremyevans)
* Fix some ruby -w warnings (jeremyevans) (#259)
* Fix issues with default column values, table names, and quoting in the rename_column and drop_column support in shared SQLite adapter (jeremyevans)
* Add rename_column support to SQLite shared adapter (jmhodges)
* Add validates_inclusion_of validation (jdunphy)
=== 2.10.0 (2009-02-03)
* Don't use a default schema any longer in the shared PostgreSQL adapter (jeremyevans)
* Make Dataset#quote_identifier return LiteralStrings as-is (jeremyevans)
* Support symbol keys and unnested hashes in the sequel command line tool's yaml config support (jeremyevans)
* Add schema parsing support to the JDBC adapter (jeremyevans)
* Add per-database type translation support for schema changes, translating ruby classes to database specific types (jeremyevans)
* Add Sequel::DatabaseConnectionError, for indicating that Sequel wasn't able to connect to the database (jeremyevans)
* Add validates_not_string validation, useful in conjunction with raise_on_typecast_failure = false (jeremyevans)
* Don't modify Model#new? and Model#changed_columns when saving a record until after the after hooks have been run (tamas, jeremyevans)
* Database#quote_identifiers= now affects future schema modification statements, even if it is not used before one of the schema modification statements (jeremyevans)
* Fix literalization of blobs when using the PostreSQL JDBC subadapter (jeremyevans)
* Fix literalization of date and time types when using the MySQL JDBC subadapter (jeremyevans)
* Convert some Java specific types to ruby types on output in the JDBC adapter (jeremyevans)
* Add Database#tables method to JDBC adapter (jeremyevans)
* Add H2 JDBC subadapter (logan_barnett, david_koontz, james_britt, jeremyevans)
* Add identifer_output_method, used for converting identifiers coming out of the database, replacing the lowercase support on some databases (jeremyevans)
* Add identifier_input_method, used for converting identifiers going into the database, replacing upcase_identifiers (jeremyevans)
* Add :allow_missing validation option, useful if the database provides a good default (jeremyevans)
* Fix literalization of SQL::Blobs in DataObjects and JDBC adapter's postgresql subadapters when ruby 1.9 is used (jeremyevans)
* When using standard strings in the postgres adapter with the postgres-pr driver, use custom string escaping to prevent errors (jeremyevans)
* Before hooks now run in reverse order of being added, so later ones are run first (tamas)
* Add Firebird adapter, requires Firebird ruby driver located at http://github.com/wishdev/fb (wishdev)
* Don't clobber the following Symbol instance methods when using ruby 1.9: [], <, <=, >, >= (jeremyevans)
* Quote the table name and the index for PostgreSQL index creation (jeremyevans)
* Add DataObjects adapter, supporting PostgreSQL, MySQL, and SQLite (jeremyevans)
* Add ability for Database#create_table to take options, support specifying MySQL engine, charset, and collate per table (pusewicz, jeremyevans)
* Add Model.add_hook_type class method, for adding your own hook types, mostly for use by plugin authors (pkondzior, jeremyevans)
* Add Sequel.version for getting the internal version of Sequel (pusewicz, jeremyevans)
=== 2.9.0 (2009-01-12)
* Add -L option to sequel command line tool to load all .rb files in the given directory (pkondzior, jeremyevans)
* Fix Dataset#destroy for model datasets that can't handle nested queries (jeremyevans)
* Improve the error messages in parts of Sequel::Model (jeremyevans, pusewicz)
* Much better support for Dataset#{union,except,intersect}, allowing chaining and respecting order (jeremyevans)
* Default to logging only WARNING level messages when connecting to PostgreSQL (jeremyevans)
* Fix add_foreign_key for MySQL (jeremyevans, aphyr)
* Correctly literalize BigDecimal NaN and (+-)Infinity values (jeremyevans) (#256)
* Make Sequel raise an Error if you attempt to subclass Sequel::Model before setting up a database connection (jeremyevans)
* Add Sequel::BeforeHookFailed exception to be raised when a record fails because a before hook fails (bougyman)
* Add Sequel::ValidationFailed exception to be raised when a record fails because a validation fails (bougyman)
* Make Database#schema raise an error if given a table that doesn't exist (jeremyevans) (#255)
* Make Model#inspect call Model#inspect_values private method for easier overloading (bougyman)
* Add methods to create and drop functions, triggers, and procedural languages on PostgreSQL (jeremyevans)
* Fix Dataset#count when using UNION, EXCEPT, or INTERSECT (jeremyevans)
* Make SQLite keep table's primary key information when dropping columns (jmhodges)
* Support dropping indicies on SQLite (jmhodges)
=== 2.8.0 (2008-12-05)
* Support drop column operations inside a transaction on sqlite (jeremyevans)
* Support literal strings with placeholders and subselects in prepared statements (jeremyevans)
* Have the connection pool remove disconnected connections when the adapter supports it (jeremyevans)
* Make Dataset#exists return a LiteralString (jeremyevans)
* Support multiple SQL statements in one query in the MySQL adapter (jeremyevans)
* Add stored procedure support for the MySQL and JDBC adapters (jeremyevans, krsgoss) (#252)
* Support options when altering a column's type (for changing enums, varchar size, etc.) (jeremyevans)
* Support AliasedExpressions in tables when using implicitly qualified arguments in joins (jeremyevans)
* Support Dataset#except on Oracle (jeremyevans)
* Raise errors when EXCEPT/INTERSECT is used when not supported (jeremyevans)
* Fix ordering of UNION, INTERSECT, and EXCEPT statements (jeremyevans) (#253)
* Support aliasing subselects in the Oracle adapter (jeremyevans)
* Add a subadapter for the Progress RDBMS to the ODBC adapter (:db_type=>'progress') (groveriffic) (#251)
* Make MySQL and Oracle adapters raise an Error if asked to do a SELECT DISTINCT ON (jeremyevans)
* Set standard_conforming_strings = ON by default when using PostgreSQL, turn off with Sequel::Postgres.force_standard_strings = false (jeremyevans) (#247)
* Fix Database#rename_table when using PostgreSQL (jeremyevans) (#248)
* Whether to upcase or quote identifiers can now be set separately, via Sequel.upcase_identifiers= or the :upcase_identifiers database option (jeremyevans)
* Support transactions in the ODBC adapter (dlee)
* Support multi_insert_sql and unicode string literals in MSSQL shared adapter (dlee)
* Make PostgreSQL use the default schema if parsing the schema for all tables at once, even if :schema=>nil option is used (jeremyevans)
* Make MySQL adapter not raise an error when giving an SQL::Identifier object to the schema modification methods such as create_table (jeremyevans)
* The keys of the hash returned by Database#schema without a table name are now quoted strings instead of symbols (jeremyevans)
* Make Database#schema to handle implicit schemas on all databases and multiple identifier object types (jeremyevans)
* Remove Sequel.odbc_mssql method (jeremyevans) (#249)
* More optimization of Model#initialize (jeremyevans)
* Treat interval as it's own type, not an integer type (jeremyevans)
* 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)
=== 2.7.1 (2008-11-04)
* Fix PostgreSQL Date optimization so that it doesn't reject dates like 11/03/2008 (jeremyevans)
=== 2.7.0 (2008-11-03)
* Transform AssociationReflection from a single class to a class hierarchy (jeremyevans)
* Optimize Date object creation in PostgreSQL adapter (jeremyevans)
* Allow easier creation of custom association types, though support for them may still be suboptimal (jeremyevans)
* Add :eager_grapher option to associations, which the user can use to override the default eager_graph code (jeremyevans)
* Associations are now inherited when a model class is subclassed (jeremyevans)
* Instance methods added by associations are now added to an anonymous module the class includes, allowing you to override them and use super (jeremyevans)
* Add #add_graph_aliases (select_more for graphs), and allow use of arbitrary expressions when graphing (jeremyevans)
* Fix a corner case where the wrong table name is used in eager_graph (jeremyevans)
* Make Dataset#join_table take an option hash instead of a table_alias argument, add support for :implicit_qualifier option (jeremyevans)
* Add :left_primary_key and :right_primary_key options to many_to_many associations (jeremyevans)
* Add :primary_key option to one_to_many and many_to_one associations (jeremyevans)
* Make after_load association callbacks take effect when eager loading via eager (jeremyevans)
* Add a :uniq association option to many_to_many associations (jeremyevans)
* Support using any expression as the argument to Symbol#like (jeremyevans)
* Much better support for multiple schemas in PostgreSQL (jeremyevans) (#243)
* The first argument to Model#initalize can no longer be nil, it must be a hash if it is given (jeremyevans)
* Remove Sequel::Model.lazy_load_schema= setting (jeremyevans)
* Lazily load model instance options such as raise_on_save_failure, for better performance (jeremyevans)
* Make Model::Validiation::Errors more Rails-compatible (jeremyevans)
* Refactor model hooks for performance (jeremyevans)
* Major performance enhancement when fetching rows using PostgreSQL (jeremyevans)
* Don't typecast serialized columns in models (jeremyevans)
* Add Array#sql_array to handle ruby arrays of all two pairs as SQL arrays (jeremyevans) (#245)
* Add ComplexExpression#== and #eql?, for checking equality (rubymage) (#244)
* Allow full text search on PostgreSQL to include rows where a search column is NULL (jeremyevans)
* PostgreSQL full text search queries with multiple columns are joined with space to prevent joining border words to one (michalbugno)
* Don't modify a dataset's cached column information if calling #each with an option that modifies the columns (jeremyevans)
* 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)
* Make Dataset#sql call Dataset#select_sql instead of being an alias, to allow for easier subclassing (jeremyevans)
* Split Oracle adapter into shared and unshared parts, so Oracle is better supported when using JDBC (jeremyevans)
* Fix automatic loading of Oracle driver when using JDBC adapter (bburton333) (#242)
=== 2.6.0 (2008-10-11)
* Make the sqlite adapter respect the Sequel.datetime_class setting, for timestamp and datetime types (jeremyevans)
* Enhance the CASE statement support to include an optional expression (jarredholman)
* Default to using the simple language if no language is specified for a full text index on PostgreSQL (michalbugno)
* Add Model.raise_on_typecast_failure=, which makes it possible to not raise errors on invalid typecasts (michalbugno)
* Add schema.rdoc file, which provides an brief description of the various parts of Sequel related to schema modification (jeremyevans)
* Fix constraint generation when not using a proc or interpolated string (jeremyevans)
* Make eager_graph respect associations' :order options (use :order_eager_graph=>false to disable) (jeremyevans)
* Cache negative lookup when eagerly loading many_to_one associations where no objects have an associated object (jeremyevans)
* Allow string keys to be used when using Dataset#multi_insert (jeremyevans)
* Fix join_table when doing the first join for a dataset where the first source is a dataset when using unqualified columns (jeremyevans)
* Fix a few corner cases in eager_graph (jeremyevans)
* Support transactions on MSSQL (jeremyevans)
* Use string literals in AS clauses on SQLite (jeremyevans) (#241)
* AlterTableGenerator#set_column_allow_null was added to SET/DROP NOT NULL for columns (divoxx)
* Database#tables now works for MySQL databases using the JDBC adapter (jeremyevans)
* Database#drop_view can now take multiple arguments to drop multiple views at once (jeremyevans)
* Schema modification methods (e.g. drop_table, create_table!) now remove the cached schema entry (jeremyevans)
* Models can now determine their primary keys by looking at the schema (jeremyevans)
* No longer include :numeric_precision and :max_chars entries in the schema column hashes, use the :db_type entry instead (jeremyevans)
* 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)
* Significantly speed up schema parsing on MySQL (jeremyevans)
* Include primary key information when parsing the schema (jeremyevans)
* Fix schema generation of composite foreign keys on MySQL (clivecrous, jeremyevans)
=== 2.5.0 (2008-09-03)
* Add Dataset #set_defaults and #set_overrides, used for scoping the values used in insert/update statements (jeremyevans)
* Allow Models to use the RETURNING clause when inserting records on PostgreSQL (jeremyevans)
* Raise Sequel::DatabaseError instead of generic Sequel::Error for database errors, don't swallow tracebacks (jeremyevans)
* Use INSERT ... RETURNING ... with PostgreSQL 8.2 and higher (jeremyevans)
* Make insert_sql, delete_sql, and update_sql respect the :sql option (jeremyevans)
* Default to converting 2 digit years, use Sequel.convert_two_digit_years = false to get back the old behavior (jeremyevans)
* Make the PostgreSQL adapter with the pg driver use async_exec, so it doesn't block the entire interpreter (jeremyevans)
* Make the schema generators support composite primary and foreign keys and unique constraints (jarredholman)
* Work with the 2008.08.17 version of the pg gem (erikh)
* Disallow abuse of SQL function syntax for types (use :type=>:varchar, :size=>255 instead of :type=>:varchar[255]) (jeremyevans)
* Quote index names when creating or dropping indexes (jeremyevans, SanityInAnarchy)
* Don't have column accessor methods override plugin instance methods (jeremyevans)
* Allow validation of multiple attributes at once, with built in support for uniqueness checking of multiple columns (jeremyevans)
* In PostgreSQL adapter, fix inserting a row with a primary key value inside a transaction (jeremyevans)
* Allow before_save and before_update to affect the columns saved by save_changes (jeremyevans)
* Make Dataset#single_value work when graphing, which fixes count and paginate on graphed datasets (jeremyevans)
=== 2.4.0 (2008-08-06)
* Handle Java::JavaSql::Date type in the JDBC adapter (jeremyevans)
* Add support for read-only slave/writable master databases and database sharding (jeremyevans)
* Remove InvalidExpression, InvalidFilter, InvalidJoinType, and WorkerStop exceptions (jeremyevans)
* Add prepared statement/bound variable support (jeremyevans)
* Fix anonymous column names in the ADO adapter (nusco)
* Remove odbc_mssql adapter, use :db_type=>'mssql' option instead (jeremyevans)
* Split MSSQL specific syntax into separate file, usable by ADO and ODBC adapters (nusco, jeremyevans)
=== 2.3.0 (2008-07-25)
* Enable almost full support for MySQL using JDBC (jeremyevans)
* Fix ODBC adapter's conversion of ::ODBC::Time values (Michael Xavier)
* Enable full support for SQLite-JDBC using the JDBC adapter (jeremyevans)
* Minor changes to allow for full Ruby 1.9 compatibility (jeremyevans)
* Make Database#disconnect work for the ADO adapter (spicyj)
* Don't raise an exception in the ADO adapter if the dataset contains no records (nusco)
* Enable almost full support of PostgreSQL-JDBC using the JDBC adapter (jeremyevans)
* Remove Sequel::Worker (jeremyevans)
* Make PostgreSQL adapter not raise an error when inserting records into a table without a primary key (jeremyevans)
* Make Database.uri_to_options a private class method (jeremyevans)
* Make JDBC load drivers automatically for PostgreSQL, MySQL, SQLite, Oracle, and MSSQL (jeremyevans)
* Make Oracle adapter work with a nonstandard Oracle database port (pavel.lukin)
* Typecast '' to nil by default for non-string non-blob columns, add typecast_empty_string_to_nil= model class and instance methods (jeremyevans)
* Use a simpler select in Dataset#empty?, fixes use with MySQL (jeremyevans)
* Add integration test suite, testing sequel against a real database, with nothing mocked (jeremyevans)
* Make validates_length_of default tag depend on presence of options passed to it (jeremyevans)
* Combine the directory structure for sequel_model and sequel_core, now there is going to be only one gem named sequel (jeremyevans)
=== 2.2.0 (2008-07-05)
* Add :extend association option, extending the dataset with module(s) (jeremyevans)
* Add :after_load association callback option, called after associated objects have been loaded from the database (jeremyevans)
* Make validation methods support a :tag option, to work correctly with source reloading (jeremyevans)
* Add :before_add, :after_add, :before_remove, :after_remove association callback options (jeremyevans)
* Break many_to_one association setter method in two parts, for easier overriding (jeremyevans)
* Model.validates_presence_of now considers false as present instead of absent (jeremyevans)
* Add Model.raise_on_save_failure, raising errors on save failure instead of return false (now nil), default to true (jeremyevans)
* Add :eager_loader association option, to specify code to be run when eager loading (jeremyevans)
* Make :many_to_one associations support :dataset, :order, :limit association options, as well as block arguments (jeremyevans)
* Add :dataset association option, which overrides the default base dataset to use (jeremyevans)
* Add :eager_graph association option, works just like :eager except it uses #eager_graph (jeremyevans)
* Add :graph_join_table_join_type association option (jeremyevans)
* Add :graph_only_conditions and :graph_join_table_only_conditions association options (jeremyevans)
* Add :graph_block and :graph_join_table_block association options (jeremyevans)
* Set the model's dataset's columns in addition to the model's columns when loading the schema for a model (jeremyevans)
* Make caching work correctly with subclasses (jeremyevans)
* Add the Model.to_hash dataset method (jeremyevans)
* Filter blocks now yield a SQL::VirtualRow argument, which is useful if another library defines operator methods on Symbol (jeremyevans)
* Add Symbol#identifier method, to make x__a be treated as "x__a" instead of "x"."a" (jeremyevans)
* Dataset#update no longer takes a block, please use a hash argument with the expression syntax instead (jeremyevans)
* ParseTree support has been removed from Sequel (jeremyevans)