viking-sequel 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. data/CHANGELOG +3134 -0
  2. data/COPYING +19 -0
  3. data/README.rdoc +723 -0
  4. data/Rakefile +193 -0
  5. data/bin/sequel +196 -0
  6. data/doc/advanced_associations.rdoc +644 -0
  7. data/doc/cheat_sheet.rdoc +218 -0
  8. data/doc/dataset_basics.rdoc +106 -0
  9. data/doc/dataset_filtering.rdoc +158 -0
  10. data/doc/opening_databases.rdoc +296 -0
  11. data/doc/prepared_statements.rdoc +104 -0
  12. data/doc/reflection.rdoc +84 -0
  13. data/doc/release_notes/1.0.txt +38 -0
  14. data/doc/release_notes/1.1.txt +143 -0
  15. data/doc/release_notes/1.3.txt +101 -0
  16. data/doc/release_notes/1.4.0.txt +53 -0
  17. data/doc/release_notes/1.5.0.txt +155 -0
  18. data/doc/release_notes/2.0.0.txt +298 -0
  19. data/doc/release_notes/2.1.0.txt +271 -0
  20. data/doc/release_notes/2.10.0.txt +328 -0
  21. data/doc/release_notes/2.11.0.txt +215 -0
  22. data/doc/release_notes/2.12.0.txt +534 -0
  23. data/doc/release_notes/2.2.0.txt +253 -0
  24. data/doc/release_notes/2.3.0.txt +88 -0
  25. data/doc/release_notes/2.4.0.txt +106 -0
  26. data/doc/release_notes/2.5.0.txt +137 -0
  27. data/doc/release_notes/2.6.0.txt +157 -0
  28. data/doc/release_notes/2.7.0.txt +166 -0
  29. data/doc/release_notes/2.8.0.txt +171 -0
  30. data/doc/release_notes/2.9.0.txt +97 -0
  31. data/doc/release_notes/3.0.0.txt +221 -0
  32. data/doc/release_notes/3.1.0.txt +406 -0
  33. data/doc/release_notes/3.10.0.txt +286 -0
  34. data/doc/release_notes/3.2.0.txt +268 -0
  35. data/doc/release_notes/3.3.0.txt +192 -0
  36. data/doc/release_notes/3.4.0.txt +325 -0
  37. data/doc/release_notes/3.5.0.txt +510 -0
  38. data/doc/release_notes/3.6.0.txt +366 -0
  39. data/doc/release_notes/3.7.0.txt +179 -0
  40. data/doc/release_notes/3.8.0.txt +151 -0
  41. data/doc/release_notes/3.9.0.txt +233 -0
  42. data/doc/schema.rdoc +36 -0
  43. data/doc/sharding.rdoc +113 -0
  44. data/doc/virtual_rows.rdoc +205 -0
  45. data/lib/sequel.rb +1 -0
  46. data/lib/sequel/adapters/ado.rb +90 -0
  47. data/lib/sequel/adapters/ado/mssql.rb +30 -0
  48. data/lib/sequel/adapters/amalgalite.rb +176 -0
  49. data/lib/sequel/adapters/db2.rb +139 -0
  50. data/lib/sequel/adapters/dbi.rb +113 -0
  51. data/lib/sequel/adapters/do.rb +188 -0
  52. data/lib/sequel/adapters/do/mysql.rb +49 -0
  53. data/lib/sequel/adapters/do/postgres.rb +91 -0
  54. data/lib/sequel/adapters/do/sqlite.rb +40 -0
  55. data/lib/sequel/adapters/firebird.rb +283 -0
  56. data/lib/sequel/adapters/informix.rb +77 -0
  57. data/lib/sequel/adapters/jdbc.rb +587 -0
  58. data/lib/sequel/adapters/jdbc/as400.rb +58 -0
  59. data/lib/sequel/adapters/jdbc/h2.rb +133 -0
  60. data/lib/sequel/adapters/jdbc/mssql.rb +57 -0
  61. data/lib/sequel/adapters/jdbc/mysql.rb +78 -0
  62. data/lib/sequel/adapters/jdbc/oracle.rb +50 -0
  63. data/lib/sequel/adapters/jdbc/postgresql.rb +108 -0
  64. data/lib/sequel/adapters/jdbc/sqlite.rb +55 -0
  65. data/lib/sequel/adapters/mysql.rb +421 -0
  66. data/lib/sequel/adapters/odbc.rb +143 -0
  67. data/lib/sequel/adapters/odbc/mssql.rb +42 -0
  68. data/lib/sequel/adapters/openbase.rb +64 -0
  69. data/lib/sequel/adapters/oracle.rb +131 -0
  70. data/lib/sequel/adapters/postgres.rb +504 -0
  71. data/lib/sequel/adapters/shared/mssql.rb +490 -0
  72. data/lib/sequel/adapters/shared/mysql.rb +498 -0
  73. data/lib/sequel/adapters/shared/oracle.rb +195 -0
  74. data/lib/sequel/adapters/shared/postgres.rb +830 -0
  75. data/lib/sequel/adapters/shared/progress.rb +44 -0
  76. data/lib/sequel/adapters/shared/sqlite.rb +389 -0
  77. data/lib/sequel/adapters/sqlite.rb +224 -0
  78. data/lib/sequel/adapters/utils/stored_procedures.rb +84 -0
  79. data/lib/sequel/connection_pool.rb +99 -0
  80. data/lib/sequel/connection_pool/sharded_single.rb +84 -0
  81. data/lib/sequel/connection_pool/sharded_threaded.rb +211 -0
  82. data/lib/sequel/connection_pool/single.rb +29 -0
  83. data/lib/sequel/connection_pool/threaded.rb +150 -0
  84. data/lib/sequel/core.rb +293 -0
  85. data/lib/sequel/core_sql.rb +241 -0
  86. data/lib/sequel/database.rb +1079 -0
  87. data/lib/sequel/database/schema_generator.rb +327 -0
  88. data/lib/sequel/database/schema_methods.rb +203 -0
  89. data/lib/sequel/database/schema_sql.rb +320 -0
  90. data/lib/sequel/dataset.rb +32 -0
  91. data/lib/sequel/dataset/actions.rb +441 -0
  92. data/lib/sequel/dataset/features.rb +86 -0
  93. data/lib/sequel/dataset/graph.rb +254 -0
  94. data/lib/sequel/dataset/misc.rb +119 -0
  95. data/lib/sequel/dataset/mutation.rb +64 -0
  96. data/lib/sequel/dataset/prepared_statements.rb +227 -0
  97. data/lib/sequel/dataset/query.rb +709 -0
  98. data/lib/sequel/dataset/sql.rb +996 -0
  99. data/lib/sequel/exceptions.rb +51 -0
  100. data/lib/sequel/extensions/blank.rb +43 -0
  101. data/lib/sequel/extensions/inflector.rb +242 -0
  102. data/lib/sequel/extensions/looser_typecasting.rb +21 -0
  103. data/lib/sequel/extensions/migration.rb +239 -0
  104. data/lib/sequel/extensions/named_timezones.rb +61 -0
  105. data/lib/sequel/extensions/pagination.rb +100 -0
  106. data/lib/sequel/extensions/pretty_table.rb +82 -0
  107. data/lib/sequel/extensions/query.rb +52 -0
  108. data/lib/sequel/extensions/schema_dumper.rb +271 -0
  109. data/lib/sequel/extensions/sql_expr.rb +122 -0
  110. data/lib/sequel/extensions/string_date_time.rb +46 -0
  111. data/lib/sequel/extensions/thread_local_timezones.rb +48 -0
  112. data/lib/sequel/metaprogramming.rb +9 -0
  113. data/lib/sequel/model.rb +120 -0
  114. data/lib/sequel/model/associations.rb +1514 -0
  115. data/lib/sequel/model/base.rb +1069 -0
  116. data/lib/sequel/model/default_inflections.rb +45 -0
  117. data/lib/sequel/model/errors.rb +39 -0
  118. data/lib/sequel/model/exceptions.rb +21 -0
  119. data/lib/sequel/model/inflections.rb +162 -0
  120. data/lib/sequel/model/plugins.rb +70 -0
  121. data/lib/sequel/plugins/active_model.rb +59 -0
  122. data/lib/sequel/plugins/association_dependencies.rb +103 -0
  123. data/lib/sequel/plugins/association_proxies.rb +41 -0
  124. data/lib/sequel/plugins/boolean_readers.rb +53 -0
  125. data/lib/sequel/plugins/caching.rb +141 -0
  126. data/lib/sequel/plugins/class_table_inheritance.rb +214 -0
  127. data/lib/sequel/plugins/composition.rb +138 -0
  128. data/lib/sequel/plugins/force_encoding.rb +72 -0
  129. data/lib/sequel/plugins/hook_class_methods.rb +126 -0
  130. data/lib/sequel/plugins/identity_map.rb +116 -0
  131. data/lib/sequel/plugins/instance_filters.rb +98 -0
  132. data/lib/sequel/plugins/instance_hooks.rb +57 -0
  133. data/lib/sequel/plugins/lazy_attributes.rb +77 -0
  134. data/lib/sequel/plugins/many_through_many.rb +208 -0
  135. data/lib/sequel/plugins/nested_attributes.rb +206 -0
  136. data/lib/sequel/plugins/optimistic_locking.rb +81 -0
  137. data/lib/sequel/plugins/rcte_tree.rb +281 -0
  138. data/lib/sequel/plugins/schema.rb +66 -0
  139. data/lib/sequel/plugins/serialization.rb +166 -0
  140. data/lib/sequel/plugins/single_table_inheritance.rb +74 -0
  141. data/lib/sequel/plugins/subclasses.rb +45 -0
  142. data/lib/sequel/plugins/tactical_eager_loading.rb +61 -0
  143. data/lib/sequel/plugins/timestamps.rb +87 -0
  144. data/lib/sequel/plugins/touch.rb +118 -0
  145. data/lib/sequel/plugins/typecast_on_load.rb +72 -0
  146. data/lib/sequel/plugins/validation_class_methods.rb +405 -0
  147. data/lib/sequel/plugins/validation_helpers.rb +223 -0
  148. data/lib/sequel/sql.rb +1020 -0
  149. data/lib/sequel/timezones.rb +161 -0
  150. data/lib/sequel/version.rb +12 -0
  151. data/lib/sequel_core.rb +1 -0
  152. data/lib/sequel_model.rb +1 -0
  153. data/spec/adapters/firebird_spec.rb +407 -0
  154. data/spec/adapters/informix_spec.rb +97 -0
  155. data/spec/adapters/mssql_spec.rb +403 -0
  156. data/spec/adapters/mysql_spec.rb +1019 -0
  157. data/spec/adapters/oracle_spec.rb +286 -0
  158. data/spec/adapters/postgres_spec.rb +969 -0
  159. data/spec/adapters/spec_helper.rb +51 -0
  160. data/spec/adapters/sqlite_spec.rb +432 -0
  161. data/spec/core/connection_pool_spec.rb +808 -0
  162. data/spec/core/core_sql_spec.rb +417 -0
  163. data/spec/core/database_spec.rb +1662 -0
  164. data/spec/core/dataset_spec.rb +3827 -0
  165. data/spec/core/expression_filters_spec.rb +595 -0
  166. data/spec/core/object_graph_spec.rb +296 -0
  167. data/spec/core/schema_generator_spec.rb +159 -0
  168. data/spec/core/schema_spec.rb +830 -0
  169. data/spec/core/spec_helper.rb +56 -0
  170. data/spec/core/version_spec.rb +7 -0
  171. data/spec/extensions/active_model_spec.rb +76 -0
  172. data/spec/extensions/association_dependencies_spec.rb +127 -0
  173. data/spec/extensions/association_proxies_spec.rb +50 -0
  174. data/spec/extensions/blank_spec.rb +67 -0
  175. data/spec/extensions/boolean_readers_spec.rb +92 -0
  176. data/spec/extensions/caching_spec.rb +250 -0
  177. data/spec/extensions/class_table_inheritance_spec.rb +252 -0
  178. data/spec/extensions/composition_spec.rb +194 -0
  179. data/spec/extensions/force_encoding_spec.rb +117 -0
  180. data/spec/extensions/hook_class_methods_spec.rb +470 -0
  181. data/spec/extensions/identity_map_spec.rb +202 -0
  182. data/spec/extensions/inflector_spec.rb +181 -0
  183. data/spec/extensions/instance_filters_spec.rb +55 -0
  184. data/spec/extensions/instance_hooks_spec.rb +133 -0
  185. data/spec/extensions/lazy_attributes_spec.rb +153 -0
  186. data/spec/extensions/looser_typecasting_spec.rb +39 -0
  187. data/spec/extensions/many_through_many_spec.rb +884 -0
  188. data/spec/extensions/migration_spec.rb +332 -0
  189. data/spec/extensions/named_timezones_spec.rb +72 -0
  190. data/spec/extensions/nested_attributes_spec.rb +396 -0
  191. data/spec/extensions/optimistic_locking_spec.rb +100 -0
  192. data/spec/extensions/pagination_spec.rb +99 -0
  193. data/spec/extensions/pretty_table_spec.rb +91 -0
  194. data/spec/extensions/query_spec.rb +85 -0
  195. data/spec/extensions/rcte_tree_spec.rb +205 -0
  196. data/spec/extensions/schema_dumper_spec.rb +357 -0
  197. data/spec/extensions/schema_spec.rb +127 -0
  198. data/spec/extensions/serialization_spec.rb +209 -0
  199. data/spec/extensions/single_table_inheritance_spec.rb +96 -0
  200. data/spec/extensions/spec_helper.rb +91 -0
  201. data/spec/extensions/sql_expr_spec.rb +89 -0
  202. data/spec/extensions/string_date_time_spec.rb +93 -0
  203. data/spec/extensions/subclasses_spec.rb +52 -0
  204. data/spec/extensions/tactical_eager_loading_spec.rb +65 -0
  205. data/spec/extensions/thread_local_timezones_spec.rb +45 -0
  206. data/spec/extensions/timestamps_spec.rb +150 -0
  207. data/spec/extensions/touch_spec.rb +155 -0
  208. data/spec/extensions/typecast_on_load_spec.rb +69 -0
  209. data/spec/extensions/validation_class_methods_spec.rb +984 -0
  210. data/spec/extensions/validation_helpers_spec.rb +438 -0
  211. data/spec/integration/associations_test.rb +281 -0
  212. data/spec/integration/database_test.rb +26 -0
  213. data/spec/integration/dataset_test.rb +963 -0
  214. data/spec/integration/eager_loader_test.rb +734 -0
  215. data/spec/integration/model_test.rb +130 -0
  216. data/spec/integration/plugin_test.rb +814 -0
  217. data/spec/integration/prepared_statement_test.rb +213 -0
  218. data/spec/integration/schema_test.rb +361 -0
  219. data/spec/integration/spec_helper.rb +73 -0
  220. data/spec/integration/timezone_test.rb +55 -0
  221. data/spec/integration/transaction_test.rb +122 -0
  222. data/spec/integration/type_test.rb +96 -0
  223. data/spec/model/association_reflection_spec.rb +175 -0
  224. data/spec/model/associations_spec.rb +2633 -0
  225. data/spec/model/base_spec.rb +418 -0
  226. data/spec/model/dataset_methods_spec.rb +78 -0
  227. data/spec/model/eager_loading_spec.rb +1391 -0
  228. data/spec/model/hooks_spec.rb +240 -0
  229. data/spec/model/inflector_spec.rb +26 -0
  230. data/spec/model/model_spec.rb +593 -0
  231. data/spec/model/plugins_spec.rb +236 -0
  232. data/spec/model/record_spec.rb +1500 -0
  233. data/spec/model/spec_helper.rb +97 -0
  234. data/spec/model/validations_spec.rb +153 -0
  235. data/spec/rcov.opts +6 -0
  236. data/spec/spec_config.rb.example +10 -0
  237. metadata +346 -0
@@ -0,0 +1,3134 @@
1
+ === HEAD
2
+
3
+ * Fix Database#rename_table on Microsoft SQL Server (rohit.namjoshi) (#293)
4
+
5
+ * Add Dataset#provides_accurate_rows_matched?, for seeing if update and delete are likely to return correct numbers (jeremyevans)
6
+
7
+ * Add require_modification to Sequel::Model, for checking that model instance updating and deleting affects a single row (jeremyevans)
8
+
9
+ * Fix leak of ResultSets when getting metadata in the jdbc adapter (jrun)
10
+
11
+ * Make Dataset#filter and related methods just clone receiver if given an empty argument, such as {}, [], or '' (jeremyevans)
12
+
13
+ * Add instance_filters plugin, for adding arbitrary filters when updating/destroying the instance (jeremyevans)
14
+
15
+ * No longer create the #{plugin}_opts methods for plugins (jeremyevans)
16
+
17
+ * Support :auto_vacuum, :foreign_keys, :synchronous, and :temp_store Database options on SQLite, for thread-safe PRAGMA setting (jeremyevans)
18
+
19
+ * Add foreign_keys accessor to SQLite Database objects (enabled by default), which modifies the foreign_keys PRAGMA available in 3.6.19+ (jeremyevans)
20
+
21
+ * Add an Database#sqlite_version method when connecting to SQLite, used to determine feature support (jeremyevans)
22
+
23
+ * Fix rolling back transactions when connecting to Oracle via JDBC (jeremyevans)
24
+
25
+ * Fix syntax errors when connecting to MSSQL via the dbi adapter (jeremyevans) (#292)
26
+
27
+ * Add support for an :after_connect option when connection, called with each new connection made (jeremyevans)
28
+
29
+ * Add support for a :test option when connecting to be automatically test the connection (jeremyevans)
30
+
31
+ * Add Dataset#select_append, which always appends to the existing SELECTed columns (jeremyevans)
32
+
33
+ * Emulate DISTINCT ON on MySQL using GROUP BY (jeremyevans)
34
+
35
+ * Make MSSQL shared adapter emulate set_column_null alter table op better with types containing sizes (jeremyevans) (#291)
36
+
37
+ * Add :config_default_group and :config_local_infile options to the native MySQL adapter (jeremyevans)
38
+
39
+ * Add log_warn_duration attribute to Database, queries that take longer than it will be logged at warn level (jeremyevans)
40
+
41
+ * Switch Database logging to use log_yield instead of log_info, queries that raise errors are now logged at error level (jeremyevans)
42
+
43
+ * Update active_model plugin to work with the ActiveModel::Lint 3.0.0beta2 specs (jeremyevans)
44
+
45
+ * Support JNDI connection strings in the JDBC adapter (jrun)
46
+
47
+ === 3.10.0 (2010-04-02)
48
+
49
+ * Make one_to_one setter and *_to_many remove_all methods apply the association options (jeremyevans)
50
+
51
+ * Make nested_attributes plugin handle invalid many_to_one associations better (john_firebaugh)
52
+
53
+ * Remove private methods from Sequel::BasicObject on ruby 1.8 (i.e. most Kernel methods) (jeremyevans)
54
+
55
+ * Add Sequel::BasicObject.remove_methods!, useful on 1.8 if libraries required after Sequel add methods to Object (jeremyevans)
56
+
57
+ * Change Sequel.connect with a block to return the block's value (jonas11235)
58
+
59
+ * Add an rcte_tree plugin, which uses recursive common table expressions for loading trees stored as adjacency lists (jeremyevans)
60
+
61
+ * Make typecast_on_load plugin also typecast when refreshing the object (either explicitly or implicitly after creation) (jeremyevans)
62
+
63
+ * Fix schema parsing and dumping of tinyint columns when connecting to MySQL via the do adapter (ricardochimal)
64
+
65
+ * Fix transactions when connecting to Oracle via JDBC (jeremyevans)
66
+
67
+ * Fix plugin loading when plugin module name is the same as an already defined top level constant (jeremyevans)
68
+
69
+ * Add an AS400 JDBC subadapter (need jt400.jar in classpath) (jeremyevans, bhauff)
70
+
71
+ * Fix the emulated MSSQL offset support when core extensions are not used (jeremyevans)
72
+
73
+ * Make Sequel::BasicObject work correctly on Rubinius (kronos)
74
+
75
+ * Add the :eager_loader_key option to associations, useful for custom eager loaders (jeremyevans)
76
+
77
+ * Dataset#group_and_count no longer orders by the count (jeremyevans)
78
+
79
+ * Fix Dataset#limit on MSSQL 2000 (jeremyevans)
80
+
81
+ * Support eagerly load nested associations when lazily loading *_to_one associations using the :eager option (jeremyevans)
82
+
83
+ * Fix the one_to_one setter to work with a nil argument (jeremyevans)
84
+
85
+ * Cache one_to_one associations like many_to_one associations instead of one_to_many associations (jeremyevans)
86
+
87
+ * Use the singular form for one_to_one association names instead of the plural form (john_firebaugh)
88
+
89
+ * Add real one_to_one associations, using the :one_to_one option of one_to_many is now an error (jeremyevans)
90
+
91
+ * Add Model#lock! which uses Dataset#for_update to lock model rows (jeremyevans)
92
+
93
+ * Add Dataset#for_update as a standard dataset method (jeremyevans)
94
+
95
+ * Add composition plugin, simlar to ActiveRecord's composed_of (jeremyevans)
96
+
97
+ * Combine multiple complex expressions for simpler SQL and object tree (jeremyevans)
98
+
99
+ * Add Dataset#first_source_table, for the unaliased version of the table for the first source (jeremyevans)
100
+
101
+ * Raise a more explicit error if attempting to use the sqlite adapter with sqlite3 instead of sqlite3-ruby (jeremyevans)
102
+
103
+ === 3.9.0 (2010-03-04)
104
+
105
+ * Allow loading adapters and extensions from outside of the Sequel lib directory (jeremyevans)
106
+
107
+ * Make limit and offset work as bound variables in prepared statements (jeremyevans)
108
+
109
+ * In the single_table_inheritance plugin, handle case where the sti_key is nil or '' specially (jeremyevans) (#287)
110
+
111
+ * Handle IN/NOT IN with an empty array (jeremyevans)
112
+
113
+ * Emulate IN/NOT IN with multiple columns where the database doesn't support it and a dataset is given (jeremyevans)
114
+
115
+ * Add Dataset#unused_table_alias, for generating a table alias that has not yet been used in the query (jeremyevans)
116
+
117
+ * Support an empty database argument in bin/sequel, useful for testing things without a real database (jeremyevans)
118
+
119
+ * Support for schemas and aliases when eager graphing (jeremyevans)
120
+
121
+ * Handle using an SQL::Identifier as an 4th option to Dataset#join_table (jeremyevans)
122
+
123
+ * Move gem spec from Rakefile to a .gemspec file, for compatibility with gem build and builder (jeremyevans) (#285)
124
+
125
+ * Fix MSSQL 2005+ offset emulation on ruby 1.9 (jeremyevans)
126
+
127
+ * Make active_model plugin work with ActiveModel 3.0 beta Lint specs, now requires active_model (jeremyevans)
128
+
129
+ * Correctly create foreign key constraints on MySQL with the InnoDB engine, but you must specify the :key option (jeremyevans)
130
+
131
+ * Add an optimistic_locking plugin for models, similar to ActiveRecord's optimistic locking support (jeremyevans)
132
+
133
+ * Handle implicitly qualified symbols in UPDATE statements, useful for updating joined datasets (jeremyevans)
134
+
135
+ * Have schema_dumper extension pass options hash to Database#tables (jeremyevans) (#283)
136
+
137
+ * Make all internal uses of require thread-safe (jeremyevans)
138
+
139
+ * Refactor connection pool into 4 separate pools, increase performance for unsharded setups (jeremyevans)
140
+
141
+ * Change a couple instance_evaled lambdas into procs, for 1.9.2 compatibility (jeremyevans)
142
+
143
+ * Raise error message earlier if DISTINCT ON is used on SQLite (jeremyevans)
144
+
145
+ * Speed up prepared statements on SQLite (jeremyevans)
146
+
147
+ * Correctly handle ODBC timestamps when database_timezone is nil (jeremyevans)
148
+
149
+ * Add Sequel::ValidationFailed#errors (tmm1)
150
+
151
+ === 3.8.0 (2010-01-04)
152
+
153
+ * Catch cases in the postgres adapter where exceptions weren't converted or raised appropriately (jeremyevans)
154
+
155
+ * Don't double escape backslashes in string literals in the mssql shared adapter (john_firebaugh)
156
+
157
+ * Fix order of ORDER and HAVING clauses in the mssql shared adapter (mluu)
158
+
159
+ * Add validates_type to the validation_helpers plugin (mluu)
160
+
161
+ * Attempt to detect database disconnects in the JDBC adapter (john_firebaugh)
162
+
163
+ * Add Sequel::SQL::Expression#==, so arbtirary expressions can be compared by value (dlee)
164
+
165
+ * Respect the :size option for the generic File type on MySQL to create tinyblob, mediumblob, and longblob (ibc)
166
+
167
+ * Don't use the OUTPUT clause on SQL Server versions that don't support it (pre-2005) (jeremyevans) (#281)
168
+
169
+ * Raise DatabaseConnectionErrors in the single-threaded connection pool if unable to connect (jeremyevans)
170
+
171
+ * Fix handling of non-existent server in single-threaded connection pool (jeremyevans)
172
+
173
+ * Default to using mysqlplus driver in the native mysql adapter, fall back to mysql driver (ibc, jeremyevans)
174
+
175
+ * Handle 64-bit integers in JDBC prepared statements (paulfras)
176
+
177
+ * Improve blob support when using the H2 JDBC subadapter (nullstyle, jeremyevans, paulfras)
178
+
179
+ * Add Database#each_server, which yields a new Database object for each server in the connection pool which is connected to only that server (jeremyevans)
180
+
181
+ * Add Dataset#each_server, which yields a dataset for each server in the connection pool which is will execute on that server (jeremyevans)
182
+
183
+ * Remove meta_eval and metaclass private methods from Sequel::Metaprogramming (jeremyevans)
184
+
185
+ * Merge Dataset::FROM_SELF_KEEP_OPTS into Dataset::NON_SQL_OPTIONS (jeremyevans)
186
+
187
+ * Add Database#remove_servers for removing servers from the pool on the fly (jeremyevans)
188
+
189
+ * When disconnecting servers, if there are any connections to the server currently in use, schedule them to be disconnected (jeremyevans)
190
+
191
+ * Allow disconnecting specific server(s)/shard(s) in Database#disconnect via a :servers option (jeremyevans)
192
+
193
+ * Handle multiple statements in a single query in the native MySQL adapter in all cases, not just when selecting via Dataset#each (jeremyevans)
194
+
195
+ * In the boolean_readers plugin, don't raise an error if the model's columns can't be determined (jeremyevans)
196
+
197
+ * In the identity_map plugin, remove instances from the cache if they are deleted/destroyed (jeremyevans)
198
+
199
+ * Add Database#add_servers, for adding new servers/shards on the fly (chuckremes, jeremyevans)
200
+
201
+ === 3.7.0 (2009-12-01)
202
+
203
+ * Add Dataset#sequence to the shared Oracle Adapter, for returning autogenerated primary key values on insert (jeremyevans) (#280)
204
+
205
+ * Bring support for modifying joined datasets into Sequel proper, supported on MySQL and PostgreSQL (jeremyevans)
206
+
207
+ * No longer use native autoreconnection in the mysql adapter (jeremyevans)
208
+
209
+ * Add NULL, NOTNULL, TRUE, SQLTRUE, FALSE, and SQLFALSE constants (jeremyevans)
210
+
211
+ * Add Dataset #select_map, #select_order_map, and #select_hash (jeremyevans)
212
+
213
+ * Make Dataset#group_and_count handle arguments other than Symbols (jeremyevans)
214
+
215
+ * Add :only_if_modified option to validates_unique method in validation_helpers plugin (jeremyevans)
216
+
217
+ * Allow specifying the dataset alias via :alias option when using union/intersect/except (jeremyevans)
218
+
219
+ * Allow Model#destroy to take an options hash and respect a :transaction option (john_firebaugh)
220
+
221
+ * If a transaction is being used, raise_on_save_failure is false, and a before hook returns false, rollback the transaction (john_firebaugh, jeremyevans)
222
+
223
+ * In the schema_dumper, explicitly specify the :type option if it isn't Integer (jeremyevans)
224
+
225
+ * On postgres, use bigserial type if :type=>Bignum is given as an option to primary_key (jeremyevans)
226
+
227
+ * Use READ_DEFAULT_GROUP in the mysql adapter to load the options in the client section of the my.cnf file (crohr)
228
+
229
+ === 3.6.0 (2009-11-02)
230
+
231
+ * Make the MSSQL shared adapter correctly parse the column schema information for tables in the non-default database schema (rohit.namjoshi)
232
+
233
+ * Use save_changes instead of save when updating existing associated objects in the nested_attributes plugin (jeremyevans)
234
+
235
+ * Allow Model#save_changes to accept an option hash that is passed to save, so you can save changes without validating (jeremyevans)
236
+
237
+ * Make nested_attributes plugin add newly created objects to cached association array immediately (jeremyevans)
238
+
239
+ * Make add_ association method not add the associated object to the cached array if it's already there (jeremyevans)
240
+
241
+ * Add Model#modified! for explicitly marking an object as modified, so save_changes/update will run callbacks even if no columns have been modified (jeremyevans)
242
+
243
+ * Add support for a :fields option in the nested attributes plugin, and only allow updating of the fields specified (jeremyevans)
244
+
245
+ * Don't allow modifying keys related to the association when updating existing objects in the nested_attributes plugin (jeremyevans)
246
+
247
+ * Add associated_object_keys method to AssociationReflection objects, specifying the key(s) in the associated model table related to the association (jeremyevans)
248
+
249
+ * Support the memcached protocol in the caching plugin via the new :ignore_exceptions option (EppO, jeremyevans)
250
+
251
+ * Don't modify array with a string and placeholders passed to Dataset#filter or related methods (jeremyevans)
252
+
253
+ * Speed up Amalgalite adapter (copiousfreetime)
254
+
255
+ * Fix bound variables on PostgreSQL when using nil and potentially other values (jeremyevans)
256
+
257
+ * Allow easier overriding of default options used in the validation_helpers plugin (jeremyevans)
258
+
259
+ * Have Dataset#literal_other call sql_literal on the object if it responds to it (heda, michaeldiamond)
260
+
261
+ * Fix Dataset#explain in the amalgalite adapter (jeremyevans)
262
+
263
+ * Have Model.table_name respect table aliases (jeremyevans)
264
+
265
+ * Allow marshalling of saved model records after calling #marshallable! (jeremyevans)
266
+
267
+ * one_to_many association methods now make sure that the removed object is currently associated to the receiver (jeremyevans)
268
+
269
+ * Model association add_ and remove_ methods now have more descriptive error messages (jeremyevans)
270
+
271
+ * Model association add_ and remove_ methods now make sure passed object is of the correct class (jeremyevans)
272
+
273
+ * Model association remove_ methods now accept a primary key value and disassociate the associated model object (natewiger, jeremyevans)
274
+
275
+ * Model association add_ methods now accept a hash and create a new associated model object (natewiger, jeremyevans)
276
+
277
+ * Dataset#window for PostgreSQL datasets now respects previous windows (jeremyevans)
278
+
279
+ * Dataset#simple_select_all? now ignores options that don't affect the SQL being issued (jeremyevans)
280
+
281
+ * Account for table aliases in eager_graph (mluu)
282
+
283
+ * Add support for MSSQL clustered index creation (mluu)
284
+
285
+ * Implement insert_select in the MSSQL adapter via OUTPUT. Can be disabled via disable_insert_output. (jfirebaugh, mluu)
286
+
287
+ * Correct error handling when beginning a transaction fails (jfirebaugh, mluu)
288
+
289
+ * Correct JDBC binding for Time objects in prepared statements (jfirebaugh, jeremyevans)
290
+
291
+ * Emulate JOIN USING clause poorly using JOIN ON if the database doesn't support JOIN USING (e.g. MSSQL, H2) (jfirebaugh, jeremyevans)
292
+
293
+ * Support column aliases in Dataset#group_and_count (jfirebaugh)
294
+
295
+ * Support preparing insert statements of the form insert(1,2,3) and insert(columns, values) (jfirebaugh)
296
+
297
+ * Fix add_index for tables in non-default schema (jfirebaugh)
298
+
299
+ * Allow named placeholders in placeholder literal strings (jeremyevans)
300
+
301
+ * Allow the force_encoding plugin to work when refreshing (jeremyevans)
302
+
303
+ * Add Dataset#bind for setting bound variable values before calling #call (jeremyevans)
304
+
305
+ * Add additional join methods to Dataset: (cross|natural|(natural_)?(full|left|right))_join (jeremyevans)
306
+
307
+ * Fix use a dataset aggregate methods (e.g. sum) on limited/grouped/etc. datasets (jeremyevans)
308
+
309
+ * Clear changed_columns when saving new model objects with a database adapter that supports insert_select, such as postgres (jeremyevans)
310
+
311
+ * Fix Dataset#replace with default values on MySQL, and respect insert-related options (jeremyevans)
312
+
313
+ * Fix Dataset#lock on PostgreSQL (jeremyevans)
314
+
315
+ * Fix Dataset#explain on SQLite (jeremyevans)
316
+
317
+ * Add Dataset#use_cursor to the native postgres adapter, for processing large datasets (jeremyevans)
318
+
319
+ * Don't ignore Class.inherited in Sequel::Model.inherited (antage) (#277)
320
+
321
+ * Optimize JDBC::MySQL::DatabaseMethods#last_insert_id to prevent additional queries (tmm1)
322
+
323
+ * Fix use of MSSQL with ruby 1.9 (cult hero)
324
+
325
+ * Don't try to load associated objects when the current object has NULL for one of the key fields (jeremyevans)
326
+
327
+ * No longer require GROUP BY to use HAVING, except on SQLite (jeremyevans)
328
+
329
+ * Add emulated support for the lack of multiple column IN/NOT IN support in MSSQL and SQLite (jeremyevans)
330
+
331
+ * Add emulated support for #ilike on MSSQL and H2 (jeremyevans)
332
+
333
+ * Add a :distinct option for all associations, which uses the SQL DISTINCT clause (jeremyevans)
334
+
335
+ * Don't require :: prefix for constant lookups in instance_evaled virtual row blocks on ruby 1.9 (jeremyevans)
336
+
337
+ === 3.5.0 (2009-10-01)
338
+
339
+ * Correctly literalize timezones in timestamps when using Oracle (jeremyevans)
340
+
341
+ * Add class_table_inheritance plugin, supporting inheritance in the database using a table-per-model-class approach (jeremyevans)
342
+
343
+ * Allow easier overriding of model code to insert and update individual records (jeremyevans)
344
+
345
+ * Allow graphing to work on previously joined datasets, and eager graphing of models backed by joined datasets (jeremyevans)
346
+
347
+ * Fix MSSQL emulated offset support for datasets with row_procs (e.g. Model datasets) (jeremyevans)
348
+
349
+ * Support composite keys with set_primary_key when called with an array of multiple symbols (jeremyevans)
350
+
351
+ * Fix select_more and order_more to not affect receiver (tamas.denes, jeremyevans)
352
+
353
+ * Support composite keys in model associations, including many_through_many plugin support (jeremyevans)
354
+
355
+ * Add the force_encoding plugin for forcing encoding of strings for models (requires ruby 1.9) (jeremyevans)
356
+
357
+ * Support DataObjects 0.10 (previous DataObjects versions are now unsupported) (jeremyevans)
358
+
359
+ * Allow the user to specify the ADO connection string via the :conn_string option (jeremyevans)
360
+
361
+ * Add thread_local_timezones extension for allow per-thread overrides of the global timezone settings (jeremyevans)
362
+
363
+ * Add named_timezones extension for using named timezones such as "America/Los_Angeles" using TZInfo (jeremyevans)
364
+
365
+ * Pass through unsigned/elements/size and other options when altering columns on MySQL (tmm1)
366
+
367
+ * Replace Dataset#virtual_row_block_call with Sequel.virtual_row (jeremyevans)
368
+
369
+ * Allow Dataset #delete, #update, and #insert to respect existing WITH clauses on MSSQL (dlee, jeremyevans)
370
+
371
+ * Add touch plugin, which adds Model#touch for updating an instance's timestamp, as well as touching associations when an instance is updated or destroyed (jeremyevans)
372
+
373
+ * Add sql_expr extension, which adds the sql_expr to all objects, giving them easy access to Sequel's DSL (jeremyevans)
374
+
375
+ * Add active_model plugin, which gives Sequel::Model an ActiveModel compliant API, passes the ActiveModel::Lint tests (jeremyevans)
376
+
377
+ * Fix MySQL commands out of sync error when using queries with multiple result sets without retrieving all result sets (jeremyevans)
378
+
379
+ * Allow splitting of multiple result sets into separate arrays when using multiple statements in a single query in the native MySQL adapter (jeremyevans)
380
+
381
+ * Don't include primary key indexes when parsing MSSQL indexes on JDBC (jeremyevans)
382
+
383
+ * Make Dataset#insert_select return nil on PostgreSQL if disable_insert_returning is used (jeremyevans)
384
+
385
+ * Speed up execution of prepared statements with bound variables on MySQL (ibc@aliax.net)
386
+
387
+ * Add association_dependencies plugin, for deleting, destroying, or nullifying associated objects when destroying a model object (jeremyevans)
388
+
389
+ * Add :validate association option, set to false to not validate when implicitly saving associated objects (jeremyevans)
390
+
391
+ * Add subclasses plugin, for recording all of a models subclasses and descendent classes (jeremyevans)
392
+
393
+ * Add looser_typecasting extension, for using .to_f and .to_i instead of Kernel.Float and Kernel.Integer when typecasting floats and integers (jeremyevans)
394
+
395
+ * Catch database errors when preparing statements or setting variable values when using the native MySQL adapter (jeremyevans)
396
+
397
+ * Add typecast_on_load plugin, for fixing bad database typecasting when loading model objects (jeremyevans)
398
+
399
+ * Detect more types of MySQL disconnection errors (jeremyevans)
400
+
401
+ * Add Sequel.convert_exception_class for wrapping exceptions (jeremyevans)
402
+
403
+ * Model#modified? now always considers new records as modified (jeremyevans)
404
+
405
+ * Typecast before checking current model attribute value, instead of after (jeremyevans)
406
+
407
+ * Don't attempt to use unparseable defaults as literals when dumping the schema for a MySQL database (jeremyevans)
408
+
409
+ * Handle MySQL enum defaults in the schema dumper (jeremyevans)
410
+
411
+ * Support Database#server_version on MSSQL (dlee, jeremyevans)
412
+
413
+ * Support updating and deleting joined datasets on MSSQL (jfirebaugh)
414
+
415
+ * Support the OUTPUT SQL clause on MSSQL delete, insert, and update statements (jfirebaugh)
416
+
417
+ * Refactor generation of delete, insert, select, and update statements (jfirebaugh, jeremyevans)
418
+
419
+ * Do a better job of parsing defaults on MSSQL (jfirebaugh)
420
+
421
+ === 3.4.0 (2009-09-02)
422
+
423
+ * Allow datasets without tables to work correctly on Oracle (mikegolod)
424
+
425
+ * Add #invert, #asc, and #desc to OrderedExpression (dlee)
426
+
427
+ * Allow validates_unique to take a block used to scope the uniqueness constraint (drfreeze, jeremyevans)
428
+
429
+ * Automatically save a new many_to_many associated object when associating the object via add_* (jeremyevans)
430
+
431
+ * Add a nested_attributes plugin for modifying associated objects directly through a model object (jeremyevans)
432
+
433
+ * Add an instance_hooks plugin for adding hooks to specific model instances (jeremyevans)
434
+
435
+ * Add a boolean_readers plugin for creating attribute? methods for boolean columns (jeremyevans)
436
+
437
+ * Add Dataset#ungrouped which removes existing grouping (jeremyevans)
438
+
439
+ * Make Dataset#group with nil or no arguments to remove existing grouping (dlee)
440
+
441
+ * Fix using multiple emulated ALTER TABLE statements (e.g. drop_column) in a single alter_table block on SQLite (jeremyevans)
442
+
443
+ * Don't allow inserting on a grouped dataset or a dataset that selects from multiple tables (jeremyevans)
444
+
445
+ * Allow class Item < Sequel::Model(DB2) to work (jeremyevans)
446
+
447
+ * Add Dataset#truncate for truncating tables (jeremyevans)
448
+
449
+ * Add Database#run method for executing arbitrary SQL on a database (jeremyevans)
450
+
451
+ * Handle index parsing correctly for tables in a non-default schema on JDBC (jfirebaugh)
452
+
453
+ * Handle unique index parsing correctly when connecting to MSSQL via JDBC (jfirebaugh)
454
+
455
+ * Add support for converting Time/DateTime to local or UTC time upon storage, retrieval, or typecasting (jeremyevans)
456
+
457
+ * Accept a hash when typecasting values to date, time, and datetime types (jeremyevans)
458
+
459
+ * Make JDBC adapter prepared statements support booleans, blobs, and potentially any type of object (jfirebaugh)
460
+
461
+ * Refactor the inflection support and modify the default inflections (jeremyevans, dlee)
462
+
463
+ * Make the serialization and lazy_attribute plugins add accessor methods to modules included in the class (jeremyevans)
464
+
465
+ * Make Database#schema on JDBC include a :column_size entry specifying the maximum length/precision for the column (jfirebaugh)
466
+
467
+ * Make Database#schema on JDBC accept a :schema option (dlee)
468
+
469
+ * Fix Dataset#import when called with a dataset (jeremyevans)
470
+
471
+ * Give a much more descriptive error message if the mysql.rb driver is detected (jeremyevans)
472
+
473
+ * Make postgres adapter work with a modified postgres-pr that raises PGError (jeremyevans)
474
+
475
+ * Make ODBC adapter respect Sequel.datetime_class (jeremyevans)
476
+
477
+ * Add support for generic concepts of CURRENT_{DATE,TIME,TIMESTAMP} (jeremyevans)
478
+
479
+ * Add a timestamps plugin for automatically creating hooks for create and update timestamps (jeremyevans)
480
+
481
+ * Add support for serializing to json (derdewey)
482
+
483
+ === 3.3.0 (2009-08-03)
484
+
485
+ * Add an assocation_proxies plugin that uses proxies for associations (jeremyevans)
486
+
487
+ * Have the add/remove/remove_all methods take additional arguments and pass them to the internal methods (clivecrous)
488
+
489
+ * Move convert_tinyint_to_bool method from Sequel to Sequel::MySQL (jeremyevans)
490
+
491
+ * Model associations now default to associating to classes in the same scope (jeremyevans, nougad) (#274)
492
+
493
+ * Add Dataset#unlimited, similar to unfiltered and unordered (jeremyevans)
494
+
495
+ * Make Dataset#from_self take an options hash and respect an :alias option, giving the alias to use (Phrogz)
496
+
497
+ * Make the JDBC adapter accept a :convert_types option to turn off Java type conversion and double performance (jeremyevans)
498
+
499
+ * Slight increase in ConnectionPool performance (jeremyevans)
500
+
501
+ * SQL::WindowFunction can now be aliased/casted etc. just like SQL::Function (jeremyevans)
502
+
503
+ * Model#save no longer attempts to update primary key columns (jeremyevans)
504
+
505
+ * Sequel will now unescape values provided in connection strings (e.g. ado:///db?host=server%5cinstance) (jeremyevans)
506
+
507
+ * Significant improvements to the ODBC and ADO adapters in general (jeremyevans)
508
+
509
+ * The ADO adapter no longer attempts to use database transactions, since they never worked (jeremyevans)
510
+
511
+ * Much better support for Microsoft SQL Server using the ADO, ODBC, and JDBC adapters (jeremyevans)
512
+
513
+ * Support rename_column, set_column_null, set_column_type, and add_foreign_key on H2 (jeremyevans)
514
+
515
+ * Support adding a column with a primary key or unique constraint to an existing table on SQLite (jeremyevans)
516
+
517
+ * Support altering a column's type, null status, or default on SQLite (jeremyevans)
518
+
519
+ * Fix renaming a NOT NULL column without a default on MySQL (nougad, jeremyevans) (#273)
520
+
521
+ * Don't swallow DatabaseConnectionErrors when creating model subclasses (tommy.midttveit)
522
+
523
+ === 3.2.0 (2009-07-02)
524
+
525
+ * In the STI plugin, don't overwrite the STI field if it is already set (jeremyevans)
526
+
527
+ * Add support for Common Table Expressions, which use the SQL WITH clause (jeremyevans)
528
+
529
+ * Add SQL::WindowFunction, expand virtual row blocks to support them and other constructions (jeremyevans)
530
+
531
+ * Add Model#autoincrementing_primary_key, for when the autoincrementing key isn't the same as the primary key (jeremyevans)
532
+
533
+ * Add Dataset#ungraphed, to remove the splitting of results into subhashes or associated records (jeremyevans)
534
+
535
+ * Support :opclass option for PostgreSQL indexes (tmi, jeremyevans)
536
+
537
+ * Make parsing of server's version more reliable for PostgreSQL (jeremyevans)
538
+
539
+ * Add Dataset#qualify, which is qualify_to with a first_source default (jeremyevans)
540
+
541
+ * Add :ruby_default to parsed schema information, which contains a ruby object representing the database default (jeremyevans)
542
+
543
+ * Fix changing a column's name, type, or null status on MySQL when column has a string default (jeremyevans)
544
+
545
+ * Remove Dataset#to_table_reference protected method, no longer used (jeremyevans)
546
+
547
+ * Fix thread-safety issue in stored procedure code (jeremyevans)
548
+
549
+ * Remove SavepointTransactions module, integrate into Database code (jeremyevans)
550
+
551
+ * Add supports_distinct_on? method (jeremyevans)
552
+
553
+ * Remove SQLStandardDateFormat, replace with requires_sql_standard_datetimes? method (jeremyevans)
554
+
555
+ * Remove UnsupportedIsTrue module, replace with supports_is_true? method (jeremyevans)
556
+
557
+ * Remove UnsupportedIntersectExcept(All)? modules, replace with methods (jeremyevans)
558
+
559
+ * Make Database#indexes work on PostgreSQL versions prior to 8.3 (tested on 7.4) (jeremyevans)
560
+
561
+ * Fix bin/sequel using a YAML file on 1.9 (jeremyevans)
562
+
563
+ * Allow connection pool options to be specified in connection string (jeremyevans)
564
+
565
+ * Handle :user and :password options in the JDBC adapter (jeremyevans)
566
+
567
+ * Fix warnings when using the ODBC adapter (jeremyevans)
568
+
569
+ * Add opening_databases.rdoc file for describing how to connect to a database (mwlang, jeremyevans)
570
+
571
+ * Significantly increase JDBC select performance (jeremyevans)
572
+
573
+ * Slightly increase SQLite select performance using the native adapter (jeremyevans)
574
+
575
+ * Majorly increase MySQL select performance using the native adapter (jeremyevans)
576
+
577
+ * Pass through unsigned/elements/size and other options when altering columns on MySQL (tmm1)
578
+
579
+ * Allow on_duplicate_key_update to affect Dataset#insert on MySQL (tmm1)
580
+
581
+ * Support using a given table and column to store schema versions, using new Migrator.run method (bougyman, jeremyevans)
582
+
583
+ * Fix foreign key table constraints on MySQL (jeremyevans)
584
+
585
+ * Remove Dataset#table_exists?, use Database#table_exists? instead (jeremyevans)
586
+
587
+ * Fix graphing of datasets with dataset sources (jeremyevans) (#271)
588
+
589
+ * Raise a Sequel::Error if Sequel.connect is called with something other than a Hash or String (jeremyevans) (#272)
590
+
591
+ * Add -N option to bin/sequel to not test the database connection (jeremyevans)
592
+
593
+ * Make Model.grep call Dataset#grep instead of Enumerable#grep (jeremyevans)
594
+
595
+ * Support the use of Regexp as first argument to StringExpression.like (jeremyevans)
596
+
597
+ * Fix Database#indexes on PostgreSQL when the schema used is a symbol (jeremyevans)
598
+
599
+ === 3.1.0 (2009-06-04)
600
+
601
+ * Require the classes match to consider an association a reciprocal (jeremyevans) (#270)
602
+
603
+ * Make Migrator work correctly with file names like 001_873465873465873465_some_name.rb (jeremyevans) (#267)
604
+
605
+ * Add Dataset#qualify_to and #qualify_to_first_source, for qualifying unqualified identifiers in the dataset (jeremyevans)
606
+
607
+ * All the use of #sql_subscript on most SQL::* objects, and support non-integer subscript values (jeremyevans)
608
+
609
+ * Add reflection.rdoc file which explains and gives examples of many of Sequel's reflection methods (jeremyevans)
610
+
611
+ * Add many_through_many plugin, allowing you to construct an association to multiple objects through multiple join tables (jeremyevans)
612
+
613
+ * Add the :cartesian_product_number option to associations, for specifying if they can cause a cartesian product (jeremyevans)
614
+
615
+ * Make :eager_graph association option work correctly when lazily loading many_to_many associations (jeremyevans)
616
+
617
+ * Make eager_unique_table_alias consider joined tables as well as tables in the FROM clause (jeremyevans)
618
+
619
+ * Make add_graph_aliases work correctly even if set_graph_aliases hasn't been used (jeremyevans)
620
+
621
+ * Fix using :conditions that are a placeholder string in an association (e.g. :conditions=>['a = ?', 42]) (jeremyevans)
622
+
623
+ * On MySQL, make Dataset#insert_ignore affect #insert as well as #multi_insert and #import (jeremyevans, tmm1)
624
+
625
+ * Add -t option to bin/sequel to output the full backtrace if an exception is raised (jeremyevans)
626
+
627
+ * Make schema_dumper extension ignore errors with indexes unless it is dumping in the database-specific type format (jeremyevans)
628
+
629
+ * Don't dump partial indexes in the MySQL adapter (jeremyevans)
630
+
631
+ * Add :ignore_index_errors option to Database#create_table and :ignore_errors option to Database#add_index (jeremyevans)
632
+
633
+ * Make graphing a complex dataset work correctly (jeremyevans)
634
+
635
+ * Fix MySQL command out of sync errors, disconnect from database if they occur (jeremyevans)
636
+
637
+ * In the schema_dumper extension, do a much better job of parsing defaults from the database (jeremyevans)
638
+
639
+ * On PostgreSQL, assume the public schema if one is not given and there is no default in Database#tables (jeremyevans)
640
+
641
+ * 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)
642
+
643
+ * On PostgreSQL, do not raise an error when attempting to reset the primary key sequence for a table without a primary key (jeremyevans)
644
+
645
+ * Allow plugins to have a configure method that is called on every attempt to load them (jeremyevans)
646
+
647
+ * Attempting to load an already loaded plugin no longer calls the plugin's apply method (jeremyevans)
648
+
649
+ * Make plugin's plugin_opts methods return an array of arguments if multiple arguments were given, instead of just the first argument (jeremyevans)
650
+
651
+ * Keep track of loaded plugins at Model.plugins, allows plugins to depend on other plugins (jeremyevans)
652
+
653
+ * Make Dataset#insert on PostgreSQL work with static SQL (jeremyevans)
654
+
655
+ * Add lazy_attributes plugin, for creating attributes that can be lazily loaded from the database (jeremyevans)
656
+
657
+ * Add tactical_eager_loading plugin, similar to DataMapper's strategic eager loading (jeremyevans)
658
+
659
+ * Don't raise an error when loading a plugin with DatasetMethods where none of the methods are public (jeremyevans)
660
+
661
+ * Add identity_map plugin, for creating temporary thread-local identity maps with some caching (jeremyevans)
662
+
663
+ * Support savepoints when using MySQL and SQLite (jeremyevans)
664
+
665
+ * Add -C option to bin/sequel that copies one database to another (jeremyevans)
666
+
667
+ * In the schema_dumper extension, don't include defaults that contain literal strings unless the DBs are the same (jeremyevans)
668
+
669
+ * Only include valid non-partial indexes of simple column references in the PostgreSQL adapter (jeremyevans)
670
+
671
+ * Add -h option to bin/sequel for outputting the usage, alias for -? (jeremyevans)
672
+
673
+ * Add -d and -D options to bin/sequel for dumping schema migrations (jeremyevans)
674
+
675
+ * Support eager graphing for model tables that lack primary keys (jeremyevans)
676
+
677
+ * Add Model.create_table? to the schema plugin, similar to Database#create_table? (jeremyevans)
678
+
679
+ * Add Database#create_table?, which creates the table if it doesn't already exist (jeremyevans)
680
+
681
+ * Handle ordered and limited datasets correctly when using UNION, INTERSECT, or EXCEPT (jeremyevans)
682
+
683
+ * Fix unlikely threading bug with class level validations (jeremyevans)
684
+
685
+ * Make the schema_dumper extension dump tables in alphabetical order in migrations (jeremyevans)
686
+
687
+ * Add Sequel.extension method for loading extensions, so you don't have to use require (jeremyevans)
688
+
689
+ * Allow bin/sequel to respect multiple -L options instead of ignoring all but the last one (jeremyevans)
690
+
691
+ * Add :command_timeout and :provider options to ADO adapter (hgimenez)
692
+
693
+ * Fix exception messages when Sequel.string_to_* fail (jeremyevans)
694
+
695
+ * Fix String :type=>:text generic type in the Firebird adapter (wishdev)
696
+
697
+ * Add Sequel.amalgalite adapter method (jeremyevans)
698
+
699
+ === 3.0.0 (2009-05-04)
700
+
701
+ * Remove dead threads from connection pool if the pool is full and a connection is requested (jeremyevans)
702
+
703
+ * Add autoincrementing primary key support in the Oracle adapter, using a sequence and trigger (jeremyevans, Mike Golod)
704
+
705
+ * Make Model#save use the same server it uses for saving as for retrieving the saved record (jeremyevans)
706
+
707
+ * Add Database#database_type method, for identifying which type of database the object is connecting to (jeremyevans)
708
+
709
+ * Add ability to reset primary key sequences in the PostgreSQL adapter (jeremyevans)
710
+
711
+ * Fix parsing of non-simple sequence names (that contain uppercase, spaces, etc.) in the PostgreSQL adapter (jeremyevans)
712
+
713
+ * Support dumping indexes in the schema_dumper extension (jeremyevans)
714
+
715
+ * Add index parsing to PostgreSQL, MySQL, SQLite, and JDBC adapters (jeremyevans)
716
+
717
+ * Correctly quote SQL Array references, and handle qualified identifiers with them (e.g. :table__column.sql_subscript(1)) (jeremyevans)
718
+
719
+ * Allow dropping an index with a name different than the default name (jeremyevans)
720
+
721
+ * Allow Dataset#from to remove existing FROM tables when called without an argument, instead of raising an error later (jeremyevans)
722
+
723
+ * Fix string quoting on Oracle so it doesn't double backslashes (jeremyevans)
724
+
725
+ * Alias the count function call in Dataset#count, fixes use on MSSQL (akitaonrails, jeremyevans)
726
+
727
+ * Allow QualifiedIdentifiers to be qualified, to allow :column.qualify(:table).qualify(:schema) (jeremyevans)
728
+
729
+ * Allow :db_type=>'mssql' option to be respected when using the DBI adapter (akitaonrails)
730
+
731
+ * Add schema_dumper extension, for dumping schema of tables (jeremyevans)
732
+
733
+ * Allow generic database types specified as ruby types to take options (jeremyevans)
734
+
735
+ * Change Dataset#exclude to invert given hash argument, not negate it (jeremyevans)
736
+
737
+ * Make Dataset#filter and related methods treat multiple arguments more intuitively (jeremyevans)
738
+
739
+ * Fix full text searching with multiple search terms on MySQL (jeremyevans)
740
+
741
+ * Fix altering a column name, type, default, or NULL/NOT NULL status on MySQL (jeremyevans)
742
+
743
+ * Fix index type syntax on MySQL (jeremyevans)
744
+
745
+ * Add temporary table support, via :temp option to Database#create_table (EppO, jeremyevans)
746
+
747
+ * Add Amalgalite adapter (jeremyevans)
748
+
749
+ * Remove Sequel::Metaprogramming#metaattr_accessor and metaattr_reader (jeremyevans)
750
+
751
+ * Remove Dataset#irregular_function_sql (jeremyevans)
752
+
753
+ * Add Dataset#full_text_sql to the MySQL adapter (dusty)
754
+
755
+ * Fix schema type parsing of decimal types on MySQL (jeremyevans)
756
+
757
+ * Make Dataset#quote_identifier work with SQL::Identifiers (jeremyevans)
758
+
759
+ * Remove methods and features deprecated in 2.12.0 (jeremyevans)
760
+
761
+ === 2.12.0 (2009-04-03)
762
+
763
+ * Deprecate Java::JavaSQL::Timestamp#usec (jeremyevans)
764
+
765
+ * Fix Model.[] optimization introduced in 2.11.0 for databases that don't use LIMIT (jacaetevha)
766
+
767
+ * Don't use the model association plugin if SEQUEL_NO_ASSOCIATIONS constant or environment variable is defined (jeremyevans)
768
+
769
+ * Don't require core_sql if SEQUEL_NO_CORE_EXTENSIONS constant or environment variable is defined (jeremyevans)
770
+
771
+ * Add validation_helpers model plugin, which adds instance level validation support similar to previously standard validations, with a different API (jeremyevans)
772
+
773
+ * Split multi_insert into 2 methods with separate APIs, multi_insert for hashes, import for arrays of columns and values (jeremyevans)
774
+
775
+ * Deprecate Dataset#transform and Model.serialize, and model serialization plugin (jeremyevans)
776
+
777
+ * Add multi_insert_update to the MySQL adapter, used for setting specific update behavior when an error occurs when using multi_insert (dusty)
778
+
779
+ * Add multi_insert_ignore to the MySQL adapter, used for skipping errors on row inserts when using multi_insert (dusty)
780
+
781
+ * Add Sequel::MySQL.convert_invalid_date_time accessor for dealing with dates like "0000-00-00" and times like "25:00:00" (jeremyevans, epugh)
782
+
783
+ * Eliminate internal dependence on core_sql extensions (jeremyevans)
784
+
785
+ * Deprecate Migration and Migrator, require 'sequel/extensions/migration' if you want them (jeremyevans)
786
+
787
+ * Denamespace Sequel::Error decendants (e.g. use Sequel::Rollback instead of Sequel::Error::Rollback) (jeremyevans)
788
+
789
+ * Deprecate Error::InvalidTransform, Error::NoExistingFilter, and Error::InvalidStatement (jeremyevans)
790
+
791
+ * Deprecate Dataset#[] when called without an argument, and Dataset#map when called with an argument and a block (jeremyevans)
792
+
793
+ * Fix aliasing columns in the JDBC adapter (per.melin) (#263)
794
+
795
+ * Make Database#rename_table remove the cached schema entry for the table (jeremyevans)
796
+
797
+ * Make Database schema sql methods private (jeremyevans)
798
+
799
+ * Deprecate Database #multi_threaded? and #logger (jeremyevans)
800
+
801
+ * Make Dataset#where always affect the WHERE clause (jeremyevans)
802
+
803
+ * Deprecate Object#blank? and related extensions, require 'sequel/extensions/blank' to get them back (jeremyevans)
804
+
805
+ * Move lib/sequel_core into lib/sequel and lib/sequel_model into lib/sequel/model (jeremyevans)
806
+
807
+ * Remove Sequel::Schema::SQL module, move methods into Sequel::Database (jeremyevans)
808
+
809
+ * Support creating and dropping schema qualified views (jeremyevans)
810
+
811
+ * Fix saving a newly inserted record in an after_create or after_save hook (jeremyevans)
812
+
813
+ * Deprecate Dataset#print and PrettyTable, require 'sequel/extensions/pretty_table' if you want them (jeremyevans)
814
+
815
+ * Deprecate Database#query and Dataset#query, require 'sequel/extensions/query' if you want them (jeremyevans)
816
+
817
+ * Deprecate Dataset#paginate and #each_page, require 'sequel/extensions/pagination' if you want them (jeremyevans)
818
+
819
+ * Fix ~{:bool_col=>true} and related inversions of boolean values (jeremyevans)
820
+
821
+ * Add disable_insert_returning method to PostgreSQL datasets, so they fallback to just using INSERT (jeremyevans)
822
+
823
+ * Don't use savepoints by default on PostgreSQL, use the :savepoint option to Database#transaction to use a savepoint (jeremyevans)
824
+
825
+ * Deprecate Database#transaction accepting a server symbol argument, use an options hash with the :server option (jeremyevans)
826
+
827
+ * Add Model.use_transactions for setting whether models should use transactions when destroying/saving records (jeremyevans, mjwillson)
828
+
829
+ * Deprecate Model::Validation::Errors, use Model::Errors (jeremyevans)
830
+
831
+ * Deprecate string inflection methods, require 'sequel/extensions/inflector' if you use them (jeremyevans)
832
+
833
+ * Deprecate Model validation class methods, override Model#validate instead or Model.plugin validation_class_methods (jeremyevans)
834
+
835
+ * Deprecate Model schema methods, use Model.plugin :schema (jeremyevans)
836
+
837
+ * Deprecate Model hook class methods, use instance methods instead or Model.plugin :hook_class_methods (jeremyevans)
838
+
839
+ * Deprecate Model.set_sti_key, use Model.plugin :single_table_inheritance (jeremyevans)
840
+
841
+ * Deprecate Model.set_cache, use Model.plugin :caching (jeremyevans)
842
+
843
+ * Move most model instance methods into Model::InstanceMethods, for easier overriding of instance methods for all models (jeremyevans)
844
+
845
+ * Move most model class methods into Model::ClassMethods, for easier overriding of class methods for all models (jeremyevans)
846
+
847
+ * Deprecate String#to_date, #to_datetime, #to_time, and #to_sequel_time, use require 'sequel/extensions/string_date_time' if you want them (jeremyevans)
848
+
849
+ * Deprecate Array#extract_options! and Object#is_one_of? (jeremyevans)
850
+
851
+ * Deprecate Object#meta_def, #meta_eval, and #metaclass (jeremyevans)
852
+
853
+ * Deprecate Module#class_def, #class_attr_overridable, #class_attr_reader, #metaalias, #metaattr_reader, and #metaatt_accessor (jeremyevans)
854
+
855
+ * Speed up the calling of most column accessor methods, and reduce memory overhead of creating them (jeremyevans)
856
+
857
+ * Deprecate Model#set_restricted using Model#[] if no setter method exists, a symbol is used, and the columns are not set (jeremyevans)
858
+
859
+ * Deprecate Model#set_with_params and #update_with_params (jeremyevans)
860
+
861
+ * Deprecate Model#save!, use Model.save(:validate=>false) (jeremyevans)
862
+
863
+ * Deprecate Model#dataset (jeremyevans)
864
+
865
+ * Deprecate Model.is and Model.is_a, use Model.plugin for plugins (jeremyevans)
866
+
867
+ * Deprecate Model.str_columns, Model#str_columns, #set_values, #update_values (jeremyevans)
868
+
869
+ * Deprecate Model.delete_all, .destroy_all, .size, and .uniq (jeremyevans)
870
+
871
+ * Copy all current dataset options when calling Model.db= (jeremyevans)
872
+
873
+ * Deprecate Model.belongs_to, Model.has_many, and Model.has_and_belongs_to_many (jeremyevans)
874
+
875
+ * Remove SQL::SpecificExpression, have subclasses inherit from SQL::Expression instead (jeremyevans)
876
+
877
+ * Deprecate SQL::CastMethods#cast_as (jeremyevans)
878
+
879
+ * Deprecate calling Database#schema without a table argument (jeremyevans)
880
+
881
+ * Remove cached version of @db_schema in model instances to reduce memory and marshalling overhead (tmm1)
882
+
883
+ * Deprecate Dataset#quote_column_ref and Dataset#symbol_to_column_ref (jeremyevans)
884
+
885
+ * Deprecate Dataset#size and Dataset#uniq (jeremyevans)
886
+
887
+ * Deprecate passing options to Dataset#each, #all, #single_record, #single_value, #sql, #select_sql, #update, #update_sql, #delete, #delete_sql, and #exists (jeremyevans)
888
+
889
+ * Deprecate Dataset#[Integer] (jeremyevans)
890
+
891
+ * Deprecate Dataset#create_view and Dataset#create_or_replace_view (jeremyevans)
892
+
893
+ * Model datasets now have a model accessor that returns the related model (jeremyevans)
894
+
895
+ * Model datasets no longer have :models and :polymorphic_key options (jeremyevans)
896
+
897
+ * Deprecate Dataset.dataset_classes, Dataset#model_classes, Dataset#polymorphic_key, and Dataset#set_model (jeremyevans)
898
+
899
+ * Allow Database#get and Database#select to take a block (jeremyevans)
900
+
901
+ * Deprecate Database#>> (jeremyevans)
902
+
903
+ * Deprecate String#to_blob and Sequel::SQL::Blob#to_blob (jeremyevans)
904
+
905
+ * Deprecate use of Symbol#| for SQL array subscripts, add Symbol#sql_subscript (jeremyevans)
906
+
907
+ * Deprecate Symbol#to_column_ref (jeremyevans)
908
+
909
+ * Deprecate String#expr (jeremyevans)
910
+
911
+ * Deprecate Array#to_sql, String#to_sql, and String#split_sql (jeremyevans)
912
+
913
+ * Deprecate passing an array to Database#<< (jeremyevans)
914
+
915
+ * Deprecate Range#interval (jeremyevans)
916
+
917
+ * Deprecate Enumerable#send_each (jeremyevans)
918
+
919
+ * Deprecate Hash#key on ruby 1.8, change some SQLite adapter constants (jeremyevans)
920
+
921
+ * Deprecate Sequel.open, Sequel.use_parse_tree=?, and the upcase_identifier methods (jeremyevans)
922
+
923
+ * Deprecate virtual row blocks without block arguments, unless Sequel.virtual_row_instance_eval is enabled (jeremyevans)
924
+
925
+ * Support schema parsing in the Oracle adapter (jacaetevha)
926
+
927
+ * Allow virtual row blocks to be instance_evaled, add Sequel.virtual_row_instance_eval= (jeremyevans)
928
+
929
+ === 2.11.0 (2009-03-02)
930
+
931
+ * Optimize Model.[] by using static sql when possible, for a 30-40% speed increase (jeremyevans)
932
+
933
+ * Add Dataset#with_sql, which returns a clone of the datatset with static SQL (jeremyevans)
934
+
935
+ * Refactor Dataset#literal so it doesn't need to be overridden in subadapters, for a 20-25% performance increase (jeremyevans)
936
+
937
+ * Remove SQL::IrregularFunction, no longer used internally (jeremyevans)
938
+
939
+ * Allow String#lit to take arguments and return a SQL::PlaceholderLiteralString (jeremyevans)
940
+
941
+ * Add Model#set_associated_object, used by the many_to_one setter method, for easier overriding (jeremyevans)
942
+
943
+ * Allow use of database independent types when casting (jeremyevans)
944
+
945
+ * Give association datasets knowledge of the model object that created them and the related association reflection (jeremyevans)
946
+
947
+ * Make Dataset#select, #select_more, #order, #order_more, and #get take a block that yields a SQL::VirtualRow, similar to #filter (jeremyevans)
948
+
949
+ * Fix stored procedures in MySQL adapter when multiple arguments are used (clivecrous)
950
+
951
+ * Add :conditions association option, for easier filtering of associated objects (jeremyevans)
952
+
953
+ * Add :clone association option, for making clones of existing associations (jeremyevans)
954
+
955
+ * Handle typecasting invalid date strings (and possible other types) correctly (jeremyevans)
956
+
957
+ * Add :compress=>false option to MySQL adapter to turn off compression of client-server connection (tmm1)
958
+
959
+ * Set SQL_AUTO_IS_NULL=0 on MySQL connections, disable with :auto_is_null=>false (tmm1)
960
+
961
+ * Add :timeout option to MySQL adapter, default to 30 days (tmm1)
962
+
963
+ * Set MySQL encoding using Mysql#options so it works across reconnects (tmm1)
964
+
965
+ * Fully support blobs on SQLite (jeremyevans)
966
+
967
+ * Add String#to_sequel_blob, alias String#to_blob to that (jeremyevans)
968
+
969
+ * Fix default index names when a non-String or Symbol column is used (jeremyevans)
970
+
971
+ * Fix some ruby -w warnings (jeremyevans) (#259)
972
+
973
+ * Fix issues with default column values, table names, and quoting in the rename_column and drop_column support in shared SQLite adapter (jeremyevans)
974
+
975
+ * Add rename_column support to SQLite shared adapter (jmhodges)
976
+
977
+ * Add validates_inclusion_of validation (jdunphy)
978
+
979
+ === 2.10.0 (2009-02-03)
980
+
981
+ * Don't use a default schema any longer in the shared PostgreSQL adapter (jeremyevans)
982
+
983
+ * Make Dataset#quote_identifier return LiteralStrings as-is (jeremyevans)
984
+
985
+ * Support symbol keys and unnested hashes in the sequel command line tool's yaml config support (jeremyevans)
986
+
987
+ * Add schema parsing support to the JDBC adapter (jeremyevans)
988
+
989
+ * Add per-database type translation support for schema changes, translating ruby classes to database specific types (jeremyevans)
990
+
991
+ * Add Sequel::DatabaseConnectionError, for indicating that Sequel wasn't able to connect to the database (jeremyevans)
992
+
993
+ * Add validates_not_string validation, useful in conjunction with raise_on_typecast_failure = false (jeremyevans)
994
+
995
+ * Don't modify Model#new? and Model#changed_columns when saving a record until after the after hooks have been run (tamas, jeremyevans)
996
+
997
+ * Database#quote_identifiers= now affects future schema modification statements, even if it is not used before one of the schema modification statements (jeremyevans)
998
+
999
+ * Fix literalization of blobs when using the PostreSQL JDBC subadapter (jeremyevans)
1000
+
1001
+ * Fix literalization of date and time types when using the MySQL JDBC subadapter (jeremyevans)
1002
+
1003
+ * Convert some Java specific types to ruby types on output in the JDBC adapter (jeremyevans)
1004
+
1005
+ * Add Database#tables method to JDBC adapter (jeremyevans)
1006
+
1007
+ * Add H2 JDBC subadapter (logan_barnett, david_koontz, james_britt, jeremyevans)
1008
+
1009
+ * Add identifer_output_method, used for converting identifiers coming out of the database, replacing the lowercase support on some databases (jeremyevans)
1010
+
1011
+ * Add identifier_input_method, used for converting identifiers going into the database, replacing upcase_identifiers (jeremyevans)
1012
+
1013
+ * Add :allow_missing validation option, useful if the database provides a good default (jeremyevans)
1014
+
1015
+ * Fix literalization of SQL::Blobs in DataObjects and JDBC adapter's postgresql subadapters when ruby 1.9 is used (jeremyevans)
1016
+
1017
+ * When using standard strings in the postgres adapter with the postgres-pr driver, use custom string escaping to prevent errors (jeremyevans)
1018
+
1019
+ * Before hooks now run in reverse order of being added, so later ones are run first (tamas)
1020
+
1021
+ * Add Firebird adapter, requires Firebird ruby driver located at http://github.com/wishdev/fb (wishdev)
1022
+
1023
+ * Don't clobber the following Symbol instance methods when using ruby 1.9: [], <, <=, >, >= (jeremyevans)
1024
+
1025
+ * Quote the table name and the index for PostgreSQL index creation (jeremyevans)
1026
+
1027
+ * Add DataObjects adapter, supporting PostgreSQL, MySQL, and SQLite (jeremyevans)
1028
+
1029
+ * Add ability for Database#create_table to take options, support specifying MySQL engine, charset, and collate per table (pusewicz, jeremyevans)
1030
+
1031
+ * Add Model.add_hook_type class method, for adding your own hook types, mostly for use by plugin authors (pkondzior, jeremyevans)
1032
+
1033
+ * Add Sequel.version for getting the internal version of Sequel (pusewicz, jeremyevans)
1034
+
1035
+ === 2.9.0 (2009-01-12)
1036
+
1037
+ * Add -L option to sequel command line tool to load all .rb files in the given directory (pkondzior, jeremyevans)
1038
+
1039
+ * Fix Dataset#destroy for model datasets that can't handle nested queries (jeremyevans)
1040
+
1041
+ * Improve the error messages in parts of Sequel::Model (jeremyevans, pusewicz)
1042
+
1043
+ * Much better support for Dataset#{union,except,intersect}, allowing chaining and respecting order (jeremyevans)
1044
+
1045
+ * Default to logging only WARNING level messages when connecting to PostgreSQL (jeremyevans)
1046
+
1047
+ * Fix add_foreign_key for MySQL (jeremyevans, aphyr)
1048
+
1049
+ * Correctly literalize BigDecimal NaN and (+-)Infinity values (jeremyevans) (#256)
1050
+
1051
+ * Make Sequel raise an Error if you attempt to subclass Sequel::Model before setting up a database connection (jeremyevans)
1052
+
1053
+ * Add Sequel::BeforeHookFailed exception to be raised when a record fails because a before hook fails (bougyman)
1054
+
1055
+ * Add Sequel::ValidationFailed exception to be raised when a record fails because a validation fails (bougyman)
1056
+
1057
+ * Make Database#schema raise an error if given a table that doesn't exist (jeremyevans) (#255)
1058
+
1059
+ * Make Model#inspect call Model#inspect_values private method for easier overloading (bougyman)
1060
+
1061
+ * Add methods to create and drop functions, triggers, and procedural languages on PostgreSQL (jeremyevans)
1062
+
1063
+ * Fix Dataset#count when using UNION, EXCEPT, or INTERSECT (jeremyevans)
1064
+
1065
+ * Make SQLite keep table's primary key information when dropping columns (jmhodges)
1066
+
1067
+ * Support dropping indicies on SQLite (jmhodges)
1068
+
1069
+ === 2.8.0 (2008-12-05)
1070
+
1071
+ * Support drop column operations inside a transaction on sqlite (jeremyevans)
1072
+
1073
+ * Support literal strings with placeholders and subselects in prepared statements (jeremyevans)
1074
+
1075
+ * Have the connection pool remove disconnected connections when the adapter supports it (jeremyevans)
1076
+
1077
+ * Make Dataset#exists return a LiteralString (jeremyevans)
1078
+
1079
+ * Support multiple SQL statements in one query in the MySQL adapter (jeremyevans)
1080
+
1081
+ * Add stored procedure support for the MySQL and JDBC adapters (jeremyevans, krsgoss) (#252)
1082
+
1083
+ * Support options when altering a column's type (for changing enums, varchar size, etc.) (jeremyevans)
1084
+
1085
+ * Support AliasedExpressions in tables when using implicitly qualified arguments in joins (jeremyevans)
1086
+
1087
+ * Support Dataset#except on Oracle (jeremyevans)
1088
+
1089
+ * Raise errors when EXCEPT/INTERSECT is used when not supported (jeremyevans)
1090
+
1091
+ * Fix ordering of UNION, INTERSECT, and EXCEPT statements (jeremyevans) (#253)
1092
+
1093
+ * Support aliasing subselects in the Oracle adapter (jeremyevans)
1094
+
1095
+ * Add a subadapter for the Progress RDBMS to the ODBC adapter (:db_type=>'progress') (groveriffic) (#251)
1096
+
1097
+ * Make MySQL and Oracle adapters raise an Error if asked to do a SELECT DISTINCT ON (jeremyevans)
1098
+
1099
+ * Set standard_conforming_strings = ON by default when using PostgreSQL, turn off with Sequel::Postgres.force_standard_strings = false (jeremyevans) (#247)
1100
+
1101
+ * Fix Database#rename_table when using PostgreSQL (jeremyevans) (#248)
1102
+
1103
+ * Whether to upcase or quote identifiers can now be set separately, via Sequel.upcase_identifiers= or the :upcase_identifiers database option (jeremyevans)
1104
+
1105
+ * Support transactions in the ODBC adapter (dlee)
1106
+
1107
+ * Support multi_insert_sql and unicode string literals in MSSQL shared adapter (dlee)
1108
+
1109
+ * Make PostgreSQL use the default schema if parsing the schema for all tables at once, even if :schema=>nil option is used (jeremyevans)
1110
+
1111
+ * Make MySQL adapter not raise an error when giving an SQL::Identifier object to the schema modification methods such as create_table (jeremyevans)
1112
+
1113
+ * The keys of the hash returned by Database#schema without a table name are now quoted strings instead of symbols (jeremyevans)
1114
+
1115
+ * Make Database#schema to handle implicit schemas on all databases and multiple identifier object types (jeremyevans)
1116
+
1117
+ * Remove Sequel.odbc_mssql method (jeremyevans) (#249)
1118
+
1119
+ * More optimization of Model#initialize (jeremyevans)
1120
+
1121
+ * Treat interval as it's own type, not an integer type (jeremyevans)
1122
+
1123
+ * 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)
1124
+
1125
+ === 2.7.1 (2008-11-04)
1126
+
1127
+ * Fix PostgreSQL Date optimization so that it doesn't reject dates like 11/03/2008 (jeremyevans)
1128
+
1129
+ === 2.7.0 (2008-11-03)
1130
+
1131
+ * Transform AssociationReflection from a single class to a class hierarchy (jeremyevans)
1132
+
1133
+ * Optimize Date object creation in PostgreSQL adapter (jeremyevans)
1134
+
1135
+ * Allow easier creation of custom association types, though support for them may still be suboptimal (jeremyevans)
1136
+
1137
+ * Add :eager_grapher option to associations, which the user can use to override the default eager_graph code (jeremyevans)
1138
+
1139
+ * Associations are now inherited when a model class is subclassed (jeremyevans)
1140
+
1141
+ * Instance methods added by associations are now added to an anonymous module the class includes, allowing you to override them and use super (jeremyevans)
1142
+
1143
+ * Add #add_graph_aliases (select_more for graphs), and allow use of arbitrary expressions when graphing (jeremyevans)
1144
+
1145
+ * Fix a corner case where the wrong table name is used in eager_graph (jeremyevans)
1146
+
1147
+ * Make Dataset#join_table take an option hash instead of a table_alias argument, add support for :implicit_qualifier option (jeremyevans)
1148
+
1149
+ * Add :left_primary_key and :right_primary_key options to many_to_many associations (jeremyevans)
1150
+
1151
+ * Add :primary_key option to one_to_many and many_to_one associations (jeremyevans)
1152
+
1153
+ * Make after_load association callbacks take effect when eager loading via eager (jeremyevans)
1154
+
1155
+ * Add a :uniq association option to many_to_many associations (jeremyevans)
1156
+
1157
+ * Support using any expression as the argument to Symbol#like (jeremyevans)
1158
+
1159
+ * Much better support for multiple schemas in PostgreSQL (jeremyevans) (#243)
1160
+
1161
+ * The first argument to Model#initalize can no longer be nil, it must be a hash if it is given (jeremyevans)
1162
+
1163
+ * Remove Sequel::Model.lazy_load_schema= setting (jeremyevans)
1164
+
1165
+ * Lazily load model instance options such as raise_on_save_failure, for better performance (jeremyevans)
1166
+
1167
+ * Make Model::Validiation::Errors more Rails-compatible (jeremyevans)
1168
+
1169
+ * Refactor model hooks for performance (jeremyevans)
1170
+
1171
+ * Major performance enhancement when fetching rows using PostgreSQL (jeremyevans)
1172
+
1173
+ * Don't typecast serialized columns in models (jeremyevans)
1174
+
1175
+ * Add Array#sql_array to handle ruby arrays of all two pairs as SQL arrays (jeremyevans) (#245)
1176
+
1177
+ * Add ComplexExpression#== and #eql?, for checking equality (rubymage) (#244)
1178
+
1179
+ * Allow full text search on PostgreSQL to include rows where a search column is NULL (jeremyevans)
1180
+
1181
+ * PostgreSQL full text search queries with multiple columns are joined with space to prevent joining border words to one (michalbugno)
1182
+
1183
+ * Don't modify a dataset's cached column information if calling #each with an option that modifies the columns (jeremyevans)
1184
+
1185
+ * 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)
1186
+
1187
+ * Make Dataset#sql call Dataset#select_sql instead of being an alias, to allow for easier subclassing (jeremyevans)
1188
+
1189
+ * Split Oracle adapter into shared and unshared parts, so Oracle is better supported when using JDBC (jeremyevans)
1190
+
1191
+ * Fix automatic loading of Oracle driver when using JDBC adapter (bburton333) (#242)
1192
+
1193
+ === 2.6.0 (2008-10-11)
1194
+
1195
+ * Make the sqlite adapter respect the Sequel.datetime_class setting, for timestamp and datetime types (jeremyevans)
1196
+
1197
+ * Enhance the CASE statement support to include an optional expression (jarredholman)
1198
+
1199
+ * Default to using the simple language if no language is specified for a full text index on PostgreSQL (michalbugno)
1200
+
1201
+ * Add Model.raise_on_typecast_failure=, which makes it possible to not raise errors on invalid typecasts (michalbugno)
1202
+
1203
+ * Add schema.rdoc file, which provides an brief description of the various parts of Sequel related to schema modification (jeremyevans)
1204
+
1205
+ * Fix constraint generation when not using a proc or interpolated string (jeremyevans)
1206
+
1207
+ * Make eager_graph respect associations' :order options (use :order_eager_graph=>false to disable) (jeremyevans)
1208
+
1209
+ * Cache negative lookup when eagerly loading many_to_one associations where no objects have an associated object (jeremyevans)
1210
+
1211
+ * Allow string keys to be used when using Dataset#multi_insert (jeremyevans)
1212
+
1213
+ * Fix join_table when doing the first join for a dataset where the first source is a dataset when using unqualified columns (jeremyevans)
1214
+
1215
+ * Fix a few corner cases in eager_graph (jeremyevans)
1216
+
1217
+ * Support transactions on MSSQL (jeremyevans)
1218
+
1219
+ * Use string literals in AS clauses on SQLite (jeremyevans) (#241)
1220
+
1221
+ * AlterTableGenerator#set_column_allow_null was added to SET/DROP NOT NULL for columns (divoxx)
1222
+
1223
+ * Database#tables now works for MySQL databases using the JDBC adapter (jeremyevans)
1224
+
1225
+ * Database#drop_view can now take multiple arguments to drop multiple views at once (jeremyevans)
1226
+
1227
+ * Schema modification methods (e.g. drop_table, create_table!) now remove the cached schema entry (jeremyevans)
1228
+
1229
+ * Models can now determine their primary keys by looking at the schema (jeremyevans)
1230
+
1231
+ * No longer include :numeric_precision and :max_chars entries in the schema column hashes, use the :db_type entry instead (jeremyevans)
1232
+
1233
+ * 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)
1234
+
1235
+ * Significantly speed up schema parsing on MySQL (jeremyevans)
1236
+
1237
+ * Include primary key information when parsing the schema (jeremyevans)
1238
+
1239
+ * Fix schema generation of composite foreign keys on MySQL (clivecrous, jeremyevans)
1240
+
1241
+ === 2.5.0 (2008-09-03)
1242
+
1243
+ * Add Dataset #set_defaults and #set_overrides, used for scoping the values used in insert/update statements (jeremyevans)
1244
+
1245
+ * Allow Models to use the RETURNING clause when inserting records on PostgreSQL (jeremyevans)
1246
+
1247
+ * Raise Sequel::DatabaseError instead of generic Sequel::Error for database errors, don't swallow tracebacks (jeremyevans)
1248
+
1249
+ * Use INSERT ... RETURNING ... with PostgreSQL 8.2 and higher (jeremyevans)
1250
+
1251
+ * Make insert_sql, delete_sql, and update_sql respect the :sql option (jeremyevans)
1252
+
1253
+ * Default to converting 2 digit years, use Sequel.convert_two_digit_years = false to get back the old behavior (jeremyevans)
1254
+
1255
+ * Make the PostgreSQL adapter with the pg driver use async_exec, so it doesn't block the entire interpreter (jeremyevans)
1256
+
1257
+ * Make the schema generators support composite primary and foreign keys and unique constraints (jarredholman)
1258
+
1259
+ * Work with the 2008.08.17 version of the pg gem (erikh)
1260
+
1261
+ * Disallow abuse of SQL function syntax for types (use :type=>:varchar, :size=>255 instead of :type=>:varchar[255]) (jeremyevans)
1262
+
1263
+ * Quote index names when creating or dropping indexes (jeremyevans, SanityInAnarchy)
1264
+
1265
+ * Don't have column accessor methods override plugin instance methods (jeremyevans)
1266
+
1267
+ * Allow validation of multiple attributes at once, with built in support for uniqueness checking of multiple columns (jeremyevans)
1268
+
1269
+ * In PostgreSQL adapter, fix inserting a row with a primary key value inside a transaction (jeremyevans)
1270
+
1271
+ * Allow before_save and before_update to affect the columns saved by save_changes (jeremyevans)
1272
+
1273
+ * Make Dataset#single_value work when graphing, which fixes count and paginate on graphed datasets (jeremyevans)
1274
+
1275
+ === 2.4.0 (2008-08-06)
1276
+
1277
+ * Handle Java::JavaSql::Date type in the JDBC adapter (jeremyevans)
1278
+
1279
+ * Add support for read-only slave/writable master databases and database sharding (jeremyevans)
1280
+
1281
+ * Remove InvalidExpression, InvalidFilter, InvalidJoinType, and WorkerStop exceptions (jeremyevans)
1282
+
1283
+ * Add prepared statement/bound variable support (jeremyevans)
1284
+
1285
+ * Fix anonymous column names in the ADO adapter (nusco)
1286
+
1287
+ * Remove odbc_mssql adapter, use :db_type=>'mssql' option instead (jeremyevans)
1288
+
1289
+ * Split MSSQL specific syntax into separate file, usable by ADO and ODBC adapters (nusco, jeremyevans)
1290
+
1291
+ === 2.3.0 (2008-07-25)
1292
+
1293
+ * Enable almost full support for MySQL using JDBC (jeremyevans)
1294
+
1295
+ * Fix ODBC adapter's conversion of ::ODBC::Time values (Michael Xavier)
1296
+
1297
+ * Enable full support for SQLite-JDBC using the JDBC adapter (jeremyevans)
1298
+
1299
+ * Minor changes to allow for full Ruby 1.9 compatibility (jeremyevans)
1300
+
1301
+ * Make Database#disconnect work for the ADO adapter (spicyj)
1302
+
1303
+ * Don't raise an exception in the ADO adapter if the dataset contains no records (nusco)
1304
+
1305
+ * Enable almost full support of PostgreSQL-JDBC using the JDBC adapter (jeremyevans)
1306
+
1307
+ * Remove Sequel::Worker (jeremyevans)
1308
+
1309
+ * Make PostgreSQL adapter not raise an error when inserting records into a table without a primary key (jeremyevans)
1310
+
1311
+ * Make Database.uri_to_options a private class method (jeremyevans)
1312
+
1313
+ * Make JDBC load drivers automatically for PostgreSQL, MySQL, SQLite, Oracle, and MSSQL (jeremyevans)
1314
+
1315
+ * Make Oracle adapter work with a nonstandard Oracle database port (pavel.lukin)
1316
+
1317
+ * Typecast '' to nil by default for non-string non-blob columns, add typecast_empty_string_to_nil= model class and instance methods (jeremyevans)
1318
+
1319
+ * Use a simpler select in Dataset#empty?, fixes use with MySQL (jeremyevans)
1320
+
1321
+ * Add integration test suite, testing sequel against a real database, with nothing mocked (jeremyevans)
1322
+
1323
+ * Make validates_length_of default tag depend on presence of options passed to it (jeremyevans)
1324
+
1325
+ * Combine the directory structure for sequel_model and sequel_core, now there is going to be only one gem named sequel (jeremyevans)
1326
+
1327
+ === 2.2.0 (2008-07-05)
1328
+
1329
+ * Add :extend association option, extending the dataset with module(s) (jeremyevans)
1330
+
1331
+ * Add :after_load association callback option, called after associated objects have been loaded from the database (jeremyevans)
1332
+
1333
+ * Make validation methods support a :tag option, to work correctly with source reloading (jeremyevans)
1334
+
1335
+ * Add :before_add, :after_add, :before_remove, :after_remove association callback options (jeremyevans)
1336
+
1337
+ * Break many_to_one association setter method in two parts, for easier overriding (jeremyevans)
1338
+
1339
+ * Model.validates_presence_of now considers false as present instead of absent (jeremyevans)
1340
+
1341
+ * Add Model.raise_on_save_failure, raising errors on save failure instead of return false (now nil), default to true (jeremyevans)
1342
+
1343
+ * Add :eager_loader association option, to specify code to be run when eager loading (jeremyevans)
1344
+
1345
+ * Make :many_to_one associations support :dataset, :order, :limit association options, as well as block arguments (jeremyevans)
1346
+
1347
+ * Add :dataset association option, which overrides the default base dataset to use (jeremyevans)
1348
+
1349
+ * Add :eager_graph association option, works just like :eager except it uses #eager_graph (jeremyevans)
1350
+
1351
+ * Add :graph_join_table_join_type association option (jeremyevans)
1352
+
1353
+ * Add :graph_only_conditions and :graph_join_table_only_conditions association options (jeremyevans)
1354
+
1355
+ * Add :graph_block and :graph_join_table_block association options (jeremyevans)
1356
+
1357
+ * Set the model's dataset's columns in addition to the model's columns when loading the schema for a model (jeremyevans)
1358
+
1359
+ * Make caching work correctly with subclasses (jeremyevans)
1360
+
1361
+ * Add the Model.to_hash dataset method (jeremyevans)
1362
+
1363
+ * Filter blocks now yield a SQL::VirtualRow argument, which is useful if another library defines operator methods on Symbol (jeremyevans)
1364
+
1365
+ * Add Symbol#identifier method, to make x__a be treated as "x__a" instead of "x"."a" (jeremyevans)
1366
+
1367
+ * Dataset#update no longer takes a block, please use a hash argument with the expression syntax instead (jeremyevans)
1368
+
1369
+ * ParseTree support has been removed from Sequel (jeremyevans)
1370
+
1371
+ * Database#drop_column is now supported in the SQLite adapter (abhay)
1372
+
1373
+ * Tinyint columns can now be considered integers instead of booleans by setting Sequel.convert_tinyint_to_bool = false (samsouder)
1374
+
1375
+ * Allow the use of URL parameters in connection strings (jeremyevans)
1376
+
1377
+ * Ignore any previously selected columns when using Dataset#graph for the first time (jeremyevans)
1378
+
1379
+ * Dataset#graph now accepts a block which is passed to join_table (jeremyevans)
1380
+
1381
+ * Make Dataset#columns ignore any filtering, ordering, and distinct clauses (jeremyevans)
1382
+
1383
+ * Use the safer connection-specific string escaping methods for PostgreSQL (jeremyevans)
1384
+
1385
+ * Database#transaction now yields a connection when using the Postgres adapter, just like it does for other adapters (jeremyevans)
1386
+
1387
+ * Dataset#count now works for a limited dataset (divoxx)
1388
+
1389
+ * Database#add_index is now supported in the SQLite adapter (abhay)
1390
+
1391
+ * Sequel's MySQL adapter should no longer conflict with ActiveRecord's use of MySQL (careo)
1392
+
1393
+ * Treat Hash as expression instead of column alias when used in DISTINCT, ORDER BY, and GROUP BY clauses (jeremyevans)
1394
+
1395
+ * PostgreSQL bytea fields are now fully supported (dlee)
1396
+
1397
+ * For PostgreSQL, don't raise an error when assigning a value to a SERIAL PRIMARY KEY field when inserting records (jeremyevans)
1398
+
1399
+ === 2.1.0 (2008-06-17)
1400
+
1401
+ * Break association add_/remove_/remove_all_ methods into two parts, for easier overriding (jeremyevans)
1402
+
1403
+ * Add Model.strict_param_setting, on by default, which raises errors if a missing/restricted method is called via new/set/update/etc. (jeremyevans)
1404
+
1405
+ * Raise errors when using association methods on objects without valid primary keys (jeremyevans)
1406
+
1407
+ * The model's primary key is a restricted column by default, Add model.unrestrict_primary_key to get the old behavior (jeremyevans)
1408
+
1409
+ * Add Model.set_(allowed|restricted)_columns, which affect which columns create/new/set/update/etc. modify (jeremyevans)
1410
+
1411
+ * 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)
1412
+
1413
+ * The :reciprocal option to associations should now be the symbol name of the reciprocal association, not an instance variable symbol (jeremyevans)
1414
+
1415
+ * Add Model#associations, which is a hash holding a cache of associated objects, with each association being a separate key (jeremyevans)
1416
+
1417
+ * Make all associations support a :graph_select option, specifying a column or array of columns to select when using eager_graph (jeremyevans)
1418
+
1419
+ * Bring back Model#set and Model#update, now the same as Model#set_with_params and Model#update_with_params (jeremyevans)
1420
+
1421
+ * Allow model datasets to call to_hash without any arguments, which allows easy creation of identity maps (jeremyevans)
1422
+
1423
+ * Add Model.set_sti_key, for easily setting up single table inheritance (jeremyevans)
1424
+
1425
+ * Make all associations support a :read_only option, which doesn't add methods that modify the database (jeremyevans)
1426
+
1427
+ * Make *_to_many associations support a :limit option, for specifying a limit to the resulting records (and possibly an offset) (jeremyevans)
1428
+
1429
+ * Make association block argument and :eager option affect the _dataset method (jeremyevans)
1430
+
1431
+ * 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)
1432
+
1433
+ * 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)
1434
+
1435
+ * Add support for :if option on validations, using a symbol (specifying an instance method) or a proc (dtsato)
1436
+
1437
+ * Support bitwise operators for NumericExpressions: &, |, ^, ~, <<, >> (jeremyevans)
1438
+
1439
+ * No longer raise an error for Dataset#filter(true) or Dataset#filter(false) (jeremyevans)
1440
+
1441
+ * Allow Dataset #filter, #or, #exclude and other methods that call them to use both the block and regular arguments (jeremyevans)
1442
+
1443
+ * ParseTree support is now officially deprecated, use Sequel.use_parse_tree = false to use the expression (blockless) filters inside blocks (jeremyevans)
1444
+
1445
+ * Remove :pool_reuse_connections ConnectionPool/Database option, MySQL users need to be careful with nested queries (jeremyevans)
1446
+
1447
+ * Allow Dataset#graph :select option to take an array of columns to select (jeremyevans)
1448
+
1449
+ * Allow Dataset#to_hash to be called with only one argument, allowing for easy creation of lookup tables for a single key (jeremyevans)
1450
+
1451
+ * Allow join_table to accept a block providing the aliases and previous joins, that allows you to specify arbitrary conditions properly qualified (jeremyevans)
1452
+
1453
+ * Support NATURAL, CROSS, and USING joins in join_table (jeremyevans)
1454
+
1455
+ * Make sure HAVING comes before ORDER BY, per the SQL standard and at least MySQL, PostgreSQL, and SQLite (juco)
1456
+
1457
+ * 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)
1458
+
1459
+ * Add Symbol#qualify, for adding a table/schema qualifier to a column/table name (jeremyevans)
1460
+
1461
+ * Remove Module#metaprivate, since it duplicates the standard Module#private_class_method (jeremyevans)
1462
+
1463
+ * Support the SQL CASE expression via Array#case and Hash#case (jeremyevans)
1464
+
1465
+ * Support the SQL EXTRACT function: :date.extract(:year) (jeremyevans)
1466
+
1467
+ * Convert numeric fields to BigDecimal in PostgreSQL adapter (jeremyevans)
1468
+
1469
+ * Add :decimal fields to the schema parser (jeremyevans)
1470
+
1471
+ * 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)
1472
+
1473
+ * No longer assume the expr argument to join_table references the primary key column (jeremyevans)
1474
+
1475
+ * Rename the Sequel.time_class setting to Sequel.datetime_class (jeremyevans)
1476
+
1477
+ * Add savepoint/nesting support to postgresql transactions (elven)
1478
+
1479
+ * Use the specified table alias when joining a dataset, instead of the automatically generated alias (brushbox)
1480
+
1481
+ === 2.0.1 (2008-06-04)
1482
+
1483
+ * Make the choice of Time or DateTime optional for typecasting :datetime types, default to Time (jeremyevans)
1484
+
1485
+ * Reload database schema for table when calling Model.create_table (jeremyevans)
1486
+
1487
+ * Have PostgreSQL money type use BigDecimal instead of Float (jeremyevans)
1488
+
1489
+ * Have the PostgreSQL and MySQL adapters use the Sequel.time_class setting for datetime/timestamp types (jeremyevans)
1490
+
1491
+ * Add Sequel.time_class and String#to_sequel_time, used for converting time values from the database to either Time (default) or DateTime (jeremyevans)
1492
+
1493
+ * Make identifier quoting uppercase by default, to work better with the SQL standard, override in PostgreSQL (jeremyevans) (#232)
1494
+
1495
+ * Add StringExpression#+, for simple SQL string concatenation (:x.sql_string + :y) (jeremyevans)
1496
+
1497
+ * Make StringMethods.like to a case sensensitive search on MySQL (use ilike for the old behavior) (jeremyevans)
1498
+
1499
+ * Add StringMethods.ilike, for case insensitive pattern matching (jeremyevans)
1500
+
1501
+ * Refactor ComplexExpression into three subclasses and a few modules, so operators that don't make sense are not defined for the class (jeremyevans)
1502
+
1503
+ === 2.0.0 (2008-06-01)
1504
+
1505
+ * Comprehensive update of all documentation (jeremyevans)
1506
+
1507
+ * Remove methods deprecated in 1.5.0 (jeremyevans)
1508
+
1509
+ * Add typecasting on attribute assignment to Sequel::Model objects, optional but enabled by default (jeremyevans)
1510
+
1511
+ * Returning false in one of the before_ hooks now causes the appropriate method(s) to immediately return false (jeremyevans)
1512
+
1513
+ * Add remove_all_* association method for *_to_many associations, which removes the association with all currently associated objects (jeremyevans)
1514
+
1515
+ * Add Model.lazy_load_schema=, when set to true, it loads the schema on first instantiation (jeremyevans)
1516
+
1517
+ * Add before_validation and after_validation hooks, called whenever the model is validated (jeremyevans)
1518
+
1519
+ * Add Model.default_foreign_key, a private class method that allows changing the default foreign key that Sequel will use in associations (jeremyevans)
1520
+
1521
+ * Cache negative lookup when eagerly loading many_to_one associations (jeremyevans)
1522
+
1523
+ * Make all associations support the :select option, not just many_to_many (jeremyevans)
1524
+
1525
+ * Allow the use of blocks when eager loading, and add the :eager_block and :allow_eager association options for configuration (jeremyevans)
1526
+
1527
+ * Add the :graph_join_type, :graph_conditions, and :graph_join_table_conditions association options, used when eager graphing (jeremyevans)
1528
+
1529
+ * Add AssociationReflection class (subclass of Hash), to make calling a couple of private Model methods unnecessary (jeremyevans)
1530
+
1531
+ * Change hook methods so that if a tag/method is specified it overwrites an existing hook block with the same tag/method (jeremyevans)
1532
+
1533
+ * Refactor String inflection support, you must use String.inflections instead of Inflector.inflections now (jeremyevans)
1534
+
1535
+ * Allow connection to ODBC-MSSQL via a URL (petersumskas) (#230)
1536
+
1537
+ * Comprehensive update of all documentation, except for the block filters and adapters (jeremyevans)
1538
+
1539
+ * Handle Date and DateTime value literalization correctly in adapters (jeremyevans)
1540
+
1541
+ * Literalize DateTime values the same as Time values (jeremyevans)
1542
+
1543
+ * MySQL tinyints are now returned as boolean values instead of integers (jeremyevans)
1544
+
1545
+ * Set additional MySQL charset options required for creating tables and databases (tmm1)
1546
+
1547
+ * Remove methods deprecated in 1.5.0 (jeremyevans)
1548
+
1549
+ * Add Module#metaattr_accessor for creating attr_accessors for the metaclass (jeremyevans)
1550
+
1551
+ * Add SQL string concatenation support to blockless filters, via Array#sql_string_join (jeremyevans)
1552
+
1553
+ * Add Pagination#last_page? and Pagination#first_page? (apeiros)
1554
+
1555
+ * Add limited column reflection support, tested on PostgreSQL, MySQL, and SQLite (jeremyevans)
1556
+
1557
+ * Allow the use of :schema__table___table_alias syntax for tables, similar to the column support (jeremyevans)
1558
+
1559
+ * Merge metaid gem into core_ext.rb and clean it up, so sequel now has no external dependencies (jeremyevans)
1560
+
1561
+ * Add Dataset#as, so using a dataset as a column with an alias is not deprecated (jeremyevans)
1562
+
1563
+ * Add Dataset#invert, which returns a dataset with inverted HAVING and WHERE clauses (jeremyevans)
1564
+
1565
+ * Add blockless filter syntax support (jeremyevans)
1566
+
1567
+ * Passing an array to Dataset#order and Dataset#select no longer works, you need to pass multiple arguments (jeremyevans)
1568
+
1569
+ * You should use '?' instead of '(?)' when using interpolated strings with array arguments (jeremyevans)
1570
+
1571
+ * Dataset.literal now surrounds the literalization of arrays with parentheses (jeremyevans)
1572
+
1573
+ * Add echo option (back?) to sequel command line tool, via -E or --echo (jeremyevans)
1574
+
1575
+ * Allow databases to have multiple loggers (jeremyevans)
1576
+
1577
+ * The sequel command line tool now also accepts a path to a database config YAML file in addition to a URI (mtodd)
1578
+
1579
+ * Major update of the postgresql adapter (jdavis, jeremyevans) (#225)
1580
+
1581
+ * Make returning inside of a database transaction commit the transaction (ahoward, jeremyevans)
1582
+
1583
+ * Dataset#to_table_reference is now protected, and it has a different API (jeremyevans)
1584
+
1585
+ * 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)
1586
+
1587
+ * Aliased and/or qualified columns with embedded spaces can now be specified as symbols (jeremyevans)
1588
+
1589
+ * When identifier quoting is enabled, the SQL standard double quote is used by default (jeremyevans)
1590
+
1591
+ * When identifier quoting is enabled, quote tables as well as columns (jeremyevans)
1592
+
1593
+ * Make identifier quoting optional, enabled by default (jeremyevans)
1594
+
1595
+ * Allow Sequel::Database.connect and related methods to take a block that disconnects the database when the block finishes (jeremyevans)
1596
+
1597
+ * Add Dataset#unfiltered, for removing filters from dataset (jeremyevans)
1598
+
1599
+ * Add add_foreign_key and add_primary_key methods to the AlterTableGenerator (jeremyevans)
1600
+
1601
+ * Allow migration files to have more than 3 digits (jeremyevans)
1602
+
1603
+ * Add methods directly to Dataset instead of including modules (jeremyevans)
1604
+
1605
+ * Make some Dataset instance methods private: invert_order, insert_default_values_sql (jeremyevans)
1606
+
1607
+ * Don't add methods that depend on ParseTree unless you can load ParseTree (jeremyevans)
1608
+
1609
+ * Don't wipeout the cached columns every time a dataset is cloned, but only on changes to :select, :sql, :from, or :join (jeremyevans)
1610
+
1611
+ * Fix Oracle Adapter (yasushi.abe)
1612
+
1613
+ * Fixed sqlite uri so that sqlite:// works just like file:// (2 slashes for a relative path, 3 for an absolute) (dlee)
1614
+
1615
+ * Raise a Sequel::Error if an invalid limit or offset is used (jeremyevans)
1616
+
1617
+ * Refactor and beef up Dataset#first and Dataset#last, with some change in functionality (jeremyevans)
1618
+
1619
+ * Add String#to_datetime, for consistency (jeremyevans)
1620
+
1621
+ * Fix Range#interval so that it returns 1 less for an exclusive range
1622
+
1623
+ * Change SQLite adapter so it doesn't swallow exceptions other than SQLite3::Exception (such as Interrupt) (jeremyevans)
1624
+
1625
+ * Change PostgreSQL and MySQL adapters to raise Sequel::Error instead of database specific errors if a database error occurs (jeremyevans)
1626
+
1627
+ * Using a memory database with SQLite now defaults to a single connection, so all queries it uses run against the same database (jeremyevans)
1628
+
1629
+ * Fix attempting to query MySQL using the same connection being used to concurrently execute another query (jeremyevans)
1630
+
1631
+ * Add options to the connection pool to configure reusing connections and converting exceptions (jeremyevans)
1632
+
1633
+ * Use the database driver provided string quoting methods for MySQL and SQLite (jeremyevans) (#223)
1634
+
1635
+ * Add ColumnAll#==, for checking the equality of two ColumnAlls (jeremyevans)
1636
+
1637
+ * Allow an array of arrays instead of a hash when specifying conditions (jeremyevans)
1638
+
1639
+ * Add Sequel::DBI::Database#lowercase, for lowercasing column names (jamesearl)
1640
+
1641
+ * Remove Dataset#extend_with_destroy, which may break code that uses Dataset#set_model directly and expects the destroy method to be added (jeremyevans)
1642
+
1643
+ * Fix some issues when running on Ruby 1.9 (Zverok, jeremyevans)
1644
+
1645
+ * Make the DBI adapter work (partially) with PostgreSQL (Seb)
1646
+
1647
+ === 1.5.1 (2008-04-30)
1648
+
1649
+ * Fix Dataset#eager_graph when not all objects have associated objects (jeremyevans)
1650
+
1651
+ * 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)
1652
+
1653
+ === 1.5.0 (2008-04-29)
1654
+
1655
+ * Make the validation errors API compatible with Merb (Inviz)
1656
+
1657
+ * Add validates_uniqueness_of, for protecting against duplicate entries in the database (neaf, jeremyevans)
1658
+
1659
+ * Alias Model#dataset= to Model#set_dataset (tmm1)
1660
+
1661
+ * Make some Model class methods private: def_hook_method, hooks, add_hook, plugin_module, plugin_gem (jeremyevans)
1662
+
1663
+ * Add the eager! and eager_graph! mutation methods to model datasets (jeremyevans)
1664
+
1665
+ * Remove Model.database_opened (jeremyevans)
1666
+
1667
+ * Remove Model.super_dataset (jeremyevans)
1668
+
1669
+ * Deprecate .create_with_params, .create_with, #set, #update, #update_with, and #new_record from Sequel::Model (jeremyevans)
1670
+
1671
+ * Add Model.def_dataset_method, for defining methods on the model that reference methods on the dataset (jeremyevans)
1672
+
1673
+ * Deprecate Model.method_missing, add dataset methods to Model via metaprogramming (jeremyevans)
1674
+
1675
+ * Remove Model.join, so it is the same as Dataset#join (jeremyevans)
1676
+
1677
+ * Use reciprocal associations for all types of associations in the getter/setter/add_/remove_ methods (jeremyevans)
1678
+
1679
+ * Fix many_to_one associations to cache negative lookups (jeremyevans)
1680
+
1681
+ * Change Model#=== to always be false if the primary key is nil (jeremyevans)
1682
+
1683
+ * Add Model#hash, which should be unique for a given class and primary key (or values if primary key is nil) (jeremyevans)
1684
+
1685
+ * Add Model#eql? as a alias to Model#== (jeremyevans)
1686
+
1687
+ * Make Model#reload clear any cached associations (jeremyevans)
1688
+
1689
+ * No longer depend on the assistance gem, merge the Inflector and Validations code (jeremyevans)
1690
+
1691
+ * Add Model#set_with_params, which is Model#update_with_params without the save (jeremyevans)
1692
+
1693
+ * Fix Model#destroy so that it returns self, not the result of after_destroy (jeremyevans)
1694
+
1695
+ * Define Model column accessors in set_dataset, so they should always be avaiable, deprecate Model#method_missing (jeremyevans)
1696
+
1697
+ * Add eager loading of associations via new sequel_core object graphing feature (jeremyevans)
1698
+
1699
+ * Fix many_to_many associations with classes inside modules without an explicit join table (jeremyevans)
1700
+
1701
+ * Allow creation of new records that don't have primary keys when the cache is on (jeremyevans) (#213)
1702
+
1703
+ * Make Model#initialize, Model#set, and Model#update_with_params invulnerable to memory exhaustion (jeremyevans) (#210)
1704
+
1705
+ * Add Model.str_columns, which gives a list of columns as frozen strings (jeremyevans)
1706
+
1707
+ * Remove pretty_table.rb from sequel, since it is in sequel_core (jeremyevans)
1708
+
1709
+ * Set a timeout in the Sqlite adapter, default to 5 seconds (hrvoje.marjanovic) (#218)
1710
+
1711
+ * Document that calling Sequel::ODBC::Database#execute manually requires you to manually drop the returned object (jeremyevans) (#217)
1712
+
1713
+ * Paginating an already paginated/limited dataset now raises an error (jeremyevans)
1714
+
1715
+ * Add support for PostgreSQL partial indexes (dlee)
1716
+
1717
+ * Added support for arbitrary index types (including spatial indexes) (dlee)
1718
+
1719
+ * Quote column names in SQL generated for SQLite (tmm1)
1720
+
1721
+ * Deprecate Object#rollback! (jeremyevans)
1722
+
1723
+ * Make some Dataset methods private (qualified_column_name, column_list, table_ref, source_list) (jeremyevans)
1724
+
1725
+ * Deprecate Dataset methods #set_options, #set_row_proc, #remove_row_proc, and #clone_merge (jeremyevans)
1726
+
1727
+ * Add Symbol#*, a replacement for Symbol#all (jeremyevans)
1728
+
1729
+ * Deprecate including ColumnMethods in Object, include it in Symbol, String, and Sequel::SQL::Expression (jeremyevans)
1730
+
1731
+ * Deprecate Symbol#method_missing, and #AS, #DESC, #ASC, #ALL, and #all from ColumnMethods (jeremyevans)
1732
+
1733
+ * Fix table joining in MySQL (jeremyevans)
1734
+
1735
+ * Deprecate Sequel.method_missing and Object#Sequel, add real Sequel.adapter methods (jeremyevans)
1736
+
1737
+ * Move dataset methods applicable only to paginated datasets into Sequel::Dataset::Pagination (jeremyevans)
1738
+
1739
+ * Make Sequel::Dataset::Sequelizer methods private (jeremyevans)
1740
+
1741
+ * Deprecate Dataset#method_missing, add real mutation methods (e.g. filter!) (jeremyevans)
1742
+
1743
+ * Fix connecting to an MSSQL server via ODBC using domain user credentials (jeremyevans) (#216)
1744
+
1745
+ * No longer depend on the assistance gem, merge in the ConnectionPool and .blank methods (jeremyevans)
1746
+
1747
+ * No longer depend on ParseTree, RubyInline, or ruby2ruby, but you still need them if you want to use the block filters (jeremyevans)
1748
+
1749
+ * Fix JDBC adapter by issuing index things start at 1 (pdamer)
1750
+
1751
+ * Fix connecting to a database via the ADO adapter (now requires options instead of URI) (timuckun, jeremyevans) (#204)
1752
+
1753
+ * Support storing microseconds in postgres timestamp fields (schnarch...@rootimage.msu.edu) (#215)
1754
+
1755
+ * Allow joining of multiple datasets, by making the table alias different for each dataset joined (jeremyevans)
1756
+
1757
+ * SECURITY: Fix backslash escaping of strings (dlee)
1758
+
1759
+ * Add ability to create a graph of objects from a query, with the result split into corresponding tables (jeremyevans) (#113)
1760
+
1761
+ * Add attr_accessor for dataset row_proc (jeremyevans)
1762
+
1763
+ * Don't redefine Dataset#each when adding a transform or row_proc (jeremyevans)
1764
+
1765
+ * Remove array_keys.rb from sequel_core, it was partially broken (since the arrays came from hashes), and redefined Dataset#each (jeremyevans)
1766
+
1767
+ * Fix MySQL default values insert (matt.binary) (#196)
1768
+
1769
+ * Fix ODBC adapter improperly escaping date and timestamp values (leo.borisenko) (#165)
1770
+
1771
+ * Fix renaming columns on MySQL with type :varchar (jeremyevans) (#206)
1772
+
1773
+ * Add Sequel::SQL::Function#==, for comparing SQL Functions (jeremyevans) (#209)
1774
+
1775
+ * Update Informix adapter to work with Ruby/Informix 0.7.0 (gerardo.santana@gmail.com)
1776
+
1777
+ * Remove sequel_core's knowledge of Sequel::Model (jeremyevans)
1778
+
1779
+ * Use "\n" instead of $/ (since $/ can be redefined in ways we do not want) (jeremyevans)
1780
+
1781
+ === 1.4.0 (2008-04-08)
1782
+
1783
+ * Don't mark a column as changed unless the new value is different from the current value (tamas.denes, jeremyevans) (#203).
1784
+
1785
+ * Switch gem name from "sequel_model" to just "sequel", which required large version bump (jeremyevans).
1786
+
1787
+ * Add :select option to many_to_many associations, default to selecting only the associated model table and not the join table (jeremyevans) (#208).
1788
+
1789
+ * Add :reciprocal one_to_many association option, for setting corresponding many_to_one instance variable (jeremyevans).
1790
+
1791
+ * Add eager loading implementation (jeremyevans).
1792
+
1793
+ * Change *_to_many associations so that the all associations are considered :cache=>true (jeremyevans).
1794
+
1795
+ * Fix associations with block arguments and :cache=>true (jeremyevans).
1796
+
1797
+ * Merge 3 mysql patches from the bugtracker (mvyver) (#200, #201, #202).
1798
+
1799
+ * Merge 2 postgresql patches from the bugtracker (a...@mellowtone.co.jp) (#211, 212).
1800
+
1801
+ * Allow overriding of default posgres spec database via ENV['SEQUEL_PG_SPEC_DB'] (jeremyevans).
1802
+
1803
+ * Allow using the Sequel::Model as the first argument in a dataset join selection (jeremyevans) (#170).
1804
+
1805
+ * Add simple callback mechanism to make model eager loading implementation easier (jeremyevans).
1806
+
1807
+ * Added Sequel::Error::InvalidOperation class for invalid operations (#198).
1808
+
1809
+ * Implemented MySQL::Database#server_version (#199).
1810
+
1811
+ * Added spec configuration for MySQL socket file.
1812
+
1813
+ * Fixed transform with array tuples in postgres adapter.
1814
+
1815
+ * Changed spec configuration to Database objects instead of URIs in order to support custom options for spec databases.
1816
+
1817
+ * Renamed schema files.
1818
+
1819
+ * Fixed Dataset#from to work correctly with SQL functions (#193).
1820
+
1821
+ ===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.
1822
+
1823
+ === 1.3 (2008-03-08)
1824
+
1825
+ * Added configuration file for running specs (#186).
1826
+
1827
+ * Changed Database#drop_index to accept fixed arity (#173).
1828
+
1829
+ * Changed column definition sql to put UNSIGNED constraint before unique in order to satisfy MySQL (#171).
1830
+
1831
+ * Enhanced MySQL adapter to support load data local infile_, added compress option for mysql connection by default (#172).
1832
+
1833
+ * Fixed bug when inserting hashes in array tuples mode.
1834
+
1835
+ * Changed SQLite adapter to catch RuntimeError raised when executing a statement and raise an Error::InvalidStatement with the offending SQL and error message (#188).
1836
+
1837
+ * Added Error::InvalidStatement class.
1838
+
1839
+ * Fixed Dataset#reverse to not raise for unordered dataset (#189).
1840
+
1841
+ * Added Dataset#unordered method and changed #order to remove order if nil is specified (#190).
1842
+
1843
+ * Fixed reversing order of ASC expression (#164).
1844
+
1845
+ * Added support for :null => true option when defining table columns (#192).
1846
+
1847
+ * Fixed Symbol#method_missing to accept variable arity (#185).
1848
+
1849
+ === 1.2.1 (2008-02-29)
1850
+
1851
+ * Added add_constraint and drop_constraint functionality to Database#alter_table (#182).
1852
+
1853
+ * Enhanced Dataset#multi_insert to accept datasets (#179).
1854
+
1855
+ * Added MySQL::Database#use method for switching database (#180).
1856
+
1857
+ * Enhanced Database.uri_to_options to accept uri strings (#178).
1858
+
1859
+ * Added Dataset#columns! method that always makes a roundtrip to the DB (#177).
1860
+
1861
+ * Added new Dataset#each_page method that iterates over all pages in the result set (#175).
1862
+
1863
+ * Added Dataset#reverse alias to Dataset#reverse_order (#174).
1864
+
1865
+ * Fixed Dataset#transform_load and #transform_save to create a trasnformed copy of the supplied hash instead of transforming it in place (#184).
1866
+
1867
+ * Implemented MySQL::Dataset#replace (#163).
1868
+
1869
+ === 1.2 (2008-02-15)
1870
+
1871
+ * Added support for :varchar[100] like type declarations in #create_table.
1872
+
1873
+ * Fixed #rename_column in mysql adapter to support types like varchar(255) (#159).
1874
+
1875
+ * Added support for order and limit in DELETE statement in MySQL adapter (#160).
1876
+
1877
+ * Added checks to Dataset#multi_insert to prevent work if no values are given (#162).
1878
+
1879
+ * Override ruby2ruby implementation of Proc#to_sexp which leaks memory (#161).
1880
+
1881
+ * Added log option, help for sequel script (#157).
1882
+
1883
+ === 1.1 (2008-02-15)
1884
+
1885
+ * Fixed Dataset#join_table to support joining of datasets (#156).
1886
+
1887
+ * Changed Dataset#empty? to use EXISTS condition instead of counting records, for much better performance (#158).
1888
+
1889
+ * Implemented insertion of multiple records in a single statement for postgres adapter. This feature is available only in postgres 8.2 and newer.
1890
+
1891
+ * Implemented Postgres::Database#server_version.
1892
+
1893
+ * Implemented Database#get, short for dataset.get(...).
1894
+
1895
+ * 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).
1896
+
1897
+ * Implemented Dataset#get, a replacement for select(column).first[column].
1898
+
1899
+ * Implemented Dataset#grep method, poor man's text search.
1900
+
1901
+ === 1.0.10 (2008-02-13)
1902
+
1903
+ * Fixed Datset#group_and_count to work inside a query block (#152).
1904
+
1905
+ * Changed datasets with transforms to automatically transform hash filters (#155).
1906
+
1907
+ * Changed Marshal stock transform to use Base64 encoding with backward-compatibility to support existing marshaled values (#154).
1908
+
1909
+ * Added support for inserting multiple records in a single statement using #multi_insert in MySQL adapter (#153).
1910
+
1911
+ * Added support for :slice option (same as :commit_every) in Dataset#multi_insert.
1912
+
1913
+ * Changed Dataset#all to accept opts and iteration block.
1914
+
1915
+ === 1.0.9 (2008-02-10)
1916
+
1917
+ * Implemented Dataset#inspect and Database#inspect (#151).
1918
+
1919
+ * Added full-text searching for odbc_mssql adapter (thanks Joseph Love).
1920
+
1921
+ * Added AlterTableGenerator#add_full_text_index method.
1922
+
1923
+ * Implemented full_text indexing and searching for PostgreSQL adapter (thanks David Lee).
1924
+
1925
+ * Implemented full_text indexing and searching for MySQL adapter (thanks David Lee).
1926
+
1927
+ * Fixed Dataset#insert_sql to work with array subscript references (thanks Jim Morris).
1928
+
1929
+ === 1.0.8 (2008-02-08)
1930
+
1931
+ * Added support for multiple choices in string matching expressions (#147).
1932
+
1933
+ * Renamed Dataset#clone_merge to Dataset#clone, works with or without options for merging (#148).
1934
+
1935
+ * Fixed MySQL::Database#<< method to always free the result in order to allow multiple calls in a row (#149). Same also for PostgreSQL adapter.
1936
+
1937
+ === 1.0.7 (2008-02-05)
1938
+
1939
+ * Added support for conditional filters (using if else statements) inside block filters (thanks Kee).
1940
+
1941
+ === 1.0.6 (2008-02-05)
1942
+
1943
+ * Removed code pollution introduced in revs 814, 817 (really bad patch, IMO).
1944
+
1945
+ * Fixed joining datasets using aliased tables (#140).
1946
+
1947
+ * Added support additional field types in postgresql adapter (#146).
1948
+
1949
+ * Added support for date field types in postgresql adapter (#145).
1950
+
1951
+ * Fixed Dataset#count to work correctly for grouped datasets (#144).
1952
+
1953
+ * Added Dataset#select_more, Dataset#order_more methods (#129).
1954
+
1955
+ === 1.0.5 (2008-01-25)
1956
+
1957
+ * Added support for instantiating models by using the load constructor method.
1958
+
1959
+ === 1.0.4.1 (2008-01-24)
1960
+
1961
+ * Fixed bin/sequel to require sequel_model if available.
1962
+
1963
+ === 1.0.4 (2008-01-24)
1964
+
1965
+ * Added Dataset#select_all method.
1966
+
1967
+ * Changed ODBC::Database to support connection using driver and database name, also added support for untitled columns in ODBC::Dataset (thanks Leonid Borisenko).
1968
+
1969
+ * Fixed MySQL adapter to correctly format foreign key definitions (#123).
1970
+
1971
+ * Changed MySQL::Dataset to allow HAVING clause on ungrouped datasets, and put HAVING clause before ORDER BY clause (#133).
1972
+
1973
+ * Changed Dataset#group_and_count to accept multiple columns (#134).
1974
+
1975
+ * Fixed database spec to open YAML file in binary mode (#131).
1976
+
1977
+ * Cleaned up gem spec (#132).
1978
+
1979
+ * Added Dataset#table_exists? convenience method.
1980
+
1981
+ === 1.0.3 (2008-01-17)
1982
+
1983
+ * Added support for UNSIGNED constraint, used in MySQL? (#127).
1984
+
1985
+ * Implemented constraint definitions inside Database#create_table.
1986
+
1987
+ * Fixed postgres adapter to define PGconn#async_exec as alias to #exec if not defined (for pure-ruby postgres driver).
1988
+
1989
+ * Added String#to_date. Updated mysql adapter to use String#to_date for mysql date types (thanks drfreeze).
1990
+
1991
+ === 1.0.2 (2008-01-14)
1992
+
1993
+ * Removed ConnectionPool, NumericExtensions. Added dependency on assistance.
1994
+
1995
+ === 1.0.1 (2008-01-12)
1996
+
1997
+ * Changed postgres adapter to quote column references using double quotes.
1998
+
1999
+ * Applied patch for oracle adapter: fix behavior of limit and offset, transactions, #table_exists?, #tables and additional specs (thanks Liming Lian #122).
2000
+
2001
+ * Allow for additional filters on a grouped dataset (#119 and #120)
2002
+
2003
+ * Changed mysql adapter to default to localhost if :host option is not specified (#114).
2004
+
2005
+ * Refactored Sequelizer to use Proc#to_sexp (method provided by r2r).
2006
+
2007
+ * 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.
2008
+
2009
+ === 1.0.0.1 (2008-01-03)
2010
+
2011
+ * Changed MySQL adapter to support specifying socket option.
2012
+
2013
+ * Added support for limiting and paginating datasets with fixed SQL, gotten with DB#fetch (thanks Ruy Diaz).
2014
+
2015
+ * Added new Dataset#from_self method that returns a dataset selecting from the original dataset.
2016
+
2017
+ === 1.0 (2008-01-02)
2018
+
2019
+ * Removed deprecated adapter stubs.
2020
+
2021
+ * Removed Sequel::Model() stub.
2022
+
2023
+ * Changed name to sequel_core.
2024
+
2025
+ * 100% code coverage.
2026
+
2027
+ * Fixed error behavior when sequel_model is not available.
2028
+
2029
+ * Fixed error behavior when parse_tree or ruby2ruby are not available.
2030
+
2031
+ === 0.5.0.2 (2008-01-01)
2032
+
2033
+ * Fixed String#to_time to raise error correctly for invalid time stamps.
2034
+
2035
+ * Improved code coverage - now at 99.2%.
2036
+
2037
+ === 0.5.0.1 (2007-12-31)
2038
+
2039
+ * Added a stub for Sequel::Model that auto-loads sequel_model.
2040
+
2041
+ * Changed Sequel.method_missing and Database.adapter_class to raise AdapterNotFound if an adapter could not be loaded.
2042
+
2043
+ * Fixed behavior of error trap in sequel command line tool.
2044
+
2045
+ === 0.5 (2007-12-30)
2046
+
2047
+ * Removed model code into separate sub-project. Rearranged trunk into core, model and model_plugins.
2048
+
2049
+ === 0.4.5 (2007-12-25)
2050
+
2051
+ * Added rdoc for new alter_table functionality (#109).
2052
+
2053
+ * Fixed update_sql with array sub-item keys (#110).
2054
+
2055
+ * Refactored model specs.
2056
+
2057
+ * Added Model#update as alias to #set.
2058
+
2059
+ * Refactored validations code. Renamed Model.validations? into Model.has_validations?.
2060
+
2061
+ * Added initial Model validations (Thanks Lance Carlson)
2062
+
2063
+ * Added Database#set_column_default method (thanks Jim Morris.)
2064
+
2065
+ * Removed warning on uninitialized @transform value (thanks Jim Morris).
2066
+
2067
+ === 0.4.4.2 (2007-12-20)
2068
+
2069
+ * Fixed parsing errors in Ruby 1.9.
2070
+
2071
+ * Fixed sync problem in connection_pool_spec.
2072
+
2073
+ * Changed String#to_time to raise Error::InvalidValue if Time.parse fails.
2074
+
2075
+ * Refactored sequel error classes.
2076
+
2077
+ === 0.4.4.1 (2007-12-19)
2078
+
2079
+ * Fixed schema generation code to use field quoting and support adapter-specific literalization of default values (#108).
2080
+
2081
+ === 0.4.4 (2007-12-17)
2082
+
2083
+ * Implemented Database#rename_table (#104).
2084
+
2085
+ * Fixed drop_index in mysql adapter (#103).
2086
+
2087
+ * Added ALTER TABLE specs for postgres, sqlite and mysql adapters. Added custom alter_table behavior for sqlite and mysql adapters (#101, #102).
2088
+
2089
+ * Added direct Database API for altering tables.
2090
+
2091
+ * Added Database#alter_table method with support for adding, dropping, renaming, modifying columns and adding and droppping indexes.
2092
+
2093
+ * Added #unique schema method for defining unique indexes (thanks Dado).
2094
+
2095
+ * Implemented unfolding of #each calls inside sequelizer blocks (thanks Jim Morris).
2096
+
2097
+ === 0.4.3 (2007-12-15)
2098
+
2099
+ * Fixed Dataset#update to accept strings (#98).
2100
+
2101
+ * Fixed Model.[] to raise for boolean argument (#97).
2102
+
2103
+ * Added Database#add_index method (thanks coda.hale).
2104
+
2105
+ * Added error reporting for filtering on comparison not in a block (thanks Jim Morris).
2106
+
2107
+ * Added support for inline index definition (thanks Dado).
2108
+
2109
+ * Added Database#create_table! method for forcibly creating a table (thanks Dado).
2110
+
2111
+ * Added support for using Dataset#update with block.
2112
+
2113
+ * Changed subscript access to use | operator.
2114
+
2115
+ * Fixed subscript access in sequelizer.
2116
+
2117
+ * Added support for subscript access using Symbol#/ operator.
2118
+
2119
+ === 0.4.2.2 (2007-12-10)
2120
+
2121
+ * Improved code coverage.
2122
+
2123
+ * Fixed Dataset#count to work properly with datasets with fixed SQL (when using #fetch).
2124
+
2125
+ * Added Model.create_with_params method that filters the given parameters accordring to the model's columns (thanks Aman Gupta).
2126
+
2127
+ === 0.4.2.1 (2007-12-09)
2128
+
2129
+ * Refactored and fixed Dataset#reverse_order to work with field quoting (thanks Christian).
2130
+
2131
+ * Fixed problem with field quoting in insert statements.
2132
+
2133
+ * Changed sequelizer code to silently fail on any error when requiring parsetree and ruby2ruby.
2134
+
2135
+ * Added Database#create_view, #create_or_replace_view and #drop_view methods. Also implemented Dataset#create_view and #create_or_replace_view convenience methods.
2136
+
2137
+ * Keep DRY by re-using Model#[]= from method_missing.
2138
+
2139
+ * Added Model.fetch alias for DB.fetch.set_model(Model)
2140
+
2141
+ === 0.4.2 (2007-12-07)
2142
+
2143
+ * Implemented Model#save_changes.
2144
+
2145
+ * Extended Model#save to accept specific columns to update.
2146
+
2147
+ * Implemented experimental JDBC adapter.
2148
+
2149
+ * Added adapter skeleton as starting point for new adapters.
2150
+
2151
+ * Cleaned-up adapters and moved automatic requiring of 'sequel' to adapter stubs.
2152
+
2153
+ === 0.4.1.3 (2007-12-05)
2154
+
2155
+ * Better plugin conventions.
2156
+
2157
+ * Added experimental OpenBase adapter.
2158
+
2159
+ * 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).
2160
+
2161
+ === 0.4.1.2 (2007-12-04)
2162
+
2163
+ * Added release rake task (using RubyForge).
2164
+
2165
+ * Changed Model.is to accept variable arity.
2166
+
2167
+ * Implemented plugin loading for model classes.
2168
+
2169
+ * Fixed odbc-mssql and odbc adapters (thanks Dusty.)
2170
+
2171
+ * Implemented odbc-mssql adapter (thanks Dusty.)
2172
+
2173
+ === 0.4.1.1 (2007-11-27)
2174
+
2175
+ * Fixed #first and #last functionality in Informix::Dataset (thanks Gerardo Santana).
2176
+
2177
+ === 0.4.1 (2007-11-25)
2178
+
2179
+ * 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).
2180
+
2181
+ === 0.4.0 (2007-11-24)
2182
+
2183
+ * Reorganized lib directory structure.
2184
+
2185
+ * Added support for dbi-xxx URI schemes (#86).
2186
+
2187
+ * Fixed problem in Database#uri where setting the password would raise an error (#87).
2188
+
2189
+ * Improved Dataset#insert_sql to correctly handle string keys (#92).
2190
+
2191
+ * Improved error-handling for worker threads. Errors are saved to an array and are accessible through #errors (#91).
2192
+
2193
+ * Dataset#uniq/distinct can now accept a column list for DISTINCT ON clauses.
2194
+
2195
+ * Fixed Model.all.
2196
+
2197
+ * Fixed literalization of strings with escape sequences in postgres adapter (#90).
2198
+
2199
+ * Added support for literalizing BigDecimal values (#89).
2200
+
2201
+ * Fixed column qualification for joined datasets (thanks Christian).
2202
+
2203
+ * Implemented experimental informix adapter.
2204
+
2205
+ === 0.3.4.1 (2007-11-10)
2206
+
2207
+ * Changed Dataset#select_sql to support queries without a FROM clause.
2208
+
2209
+ === 0.3.4 (2007-11-10)
2210
+
2211
+ * Fixed MySQL adapter to allow calling stored procedures (thanks Sebastian).
2212
+
2213
+ * Changed Dataset#each to always return self.
2214
+
2215
+ * Fixed SQL functions without arguments in block filters.
2216
+
2217
+ * Implemented super-cool Symbol#cast_as method.
2218
+
2219
+ * Fixed error message in command-line tool if failed to load adapter (#85).
2220
+
2221
+ * Refactored code relating to column references for better extendibility (#88).
2222
+
2223
+ * Tiny fix to Model#run_hooks.
2224
+
2225
+ === 0.3.3 (2007-11-04)
2226
+
2227
+ * Revised code to generate SQL statements without trailing semicolons.
2228
+
2229
+ * Added Sequel::Worker implementation of a simple worker thread for asynchronous execution.
2230
+
2231
+ * Added spec for Oracle adapter.
2232
+
2233
+ * Fixed Oracle adapter to format INSERT statements without semicolons (thanks Liming Lian).
2234
+
2235
+ * Renamed alias to Array#keys as Array#columns instead of Array#fields.
2236
+
2237
+ * Renamed FieldCompositionMethods as ColumnCompositionMethods.
2238
+
2239
+ * Implemented Sequel::NumericExtensions to provide stuff like 30.days.ago.
2240
+
2241
+ === 0.3.2 (2007-11-01)
2242
+
2243
+ * Added #to_column_name as alias to #to_field_name, #column_title as alias to #field_title.
2244
+
2245
+ * Added Dataset#interval method for getting interval between minimum/maximum values for a column.
2246
+
2247
+ * Fixed Oracle::Database#execute (#84).
2248
+
2249
+ * Added group_and_count as general implementation for count_by_xxx.
2250
+
2251
+ * Added count_by magic method.
2252
+
2253
+ * Added Dataset#range method for getting the minimum/maximum values for a column.
2254
+
2255
+ * Fixed timestamp translation in SQLite adapter (#83).
2256
+
2257
+ * Experimental DB2 adapter.
2258
+
2259
+ * Added Dataset#set as alias to Dataset#update.
2260
+
2261
+ * Removed long deprecated expressions.rb code.
2262
+
2263
+ * Better documentation.
2264
+
2265
+ * Implemented Dataset magic methods: order_by_xxx, group_by_xxx, filter_by_xxx, all_by_xxx, first_by_xxx, last_by_xxx.
2266
+
2267
+ * Changed Model.create and Model.new to accept a block.
2268
+
2269
+ === 0.3.1 (2007-10-30)
2270
+
2271
+ * Typo fixes (#79).
2272
+
2273
+ * Added require 'yaml' to dataset.rb (#78).
2274
+
2275
+ * Changed postgres adapter to use the ruby-postgres library's type conversion if available (#76).
2276
+
2277
+ * Fixed string literalization in mysql adapter for strings with comment backslashes in them (#75).
2278
+
2279
+ * Fixed ParseTree dependency to work with version 2.0.0 and later (#74).
2280
+
2281
+ * foreign_key definitions now accept :key option for specifying the remote key (#73).
2282
+
2283
+ * Fixed Model#method_missing to not raise error for columns not in the table but for which a value exists (#77).
2284
+
2285
+ * New documentation for Model.
2286
+
2287
+ * Implemented Oracle adapter based on ruby-oci8 library.
2288
+
2289
+ * Implemented Model#pk_hash. Is it really necessary?
2290
+
2291
+ * Deprecated Model#pkey. Implemented better Model#pk method.
2292
+
2293
+ * Specs and docs for Model.one_to_one, Model.one_to_many macros.
2294
+
2295
+ === 0.3.0.1 (2007-10-20)
2296
+
2297
+ * Changed Database#fetch to return a modified dataset.
2298
+
2299
+ === 0.3 (2007-10-20)
2300
+
2301
+ * Added stock transforms to Dataset#transform. Refactored Model.serialize.
2302
+
2303
+ * Added Database#logger= method for setting the database logger object.
2304
+
2305
+ * Fixed Model.[] to act as shortcut to Model.find when a hash is given (#71).
2306
+
2307
+ * Added support for old and new decimal types in MySQL adapter, and updated MYSQL_TYPES with MySQL 5.0 constants (#72).
2308
+
2309
+ * Implemented Database#disconnect method for all adapters.
2310
+
2311
+ * Fixed small bug in ArrayKeys module.
2312
+
2313
+ * Implemented model caching by primary key.
2314
+
2315
+ * Separated Model.find and Model.[] functionality. Model.find takes a filter. Model.[] is strictly for finding by primary keys.
2316
+
2317
+ * Enhanced Dataset#first to accept a filter block. Model#find can also now accept a filter block.
2318
+
2319
+ * Changed Database#[] to act as shortcut to #fetch if a string is given.
2320
+
2321
+ * Renamed Database#each to #fetch. If no block is given, the method returns an enumerator.
2322
+
2323
+ * Changed Dataset#join methods to correctly literalize values in join conditions (#70).
2324
+
2325
+ * Fixed #filter with ranges to correctly literalize field names (#69).
2326
+
2327
+ * Implemented Database#each method for quickly retrieving records with arbitrary SQL (thanks Aman Gupta).
2328
+
2329
+ * Fixed bug in postgres adapter where a LiteralString would be literalized as a regular String.
2330
+
2331
+ * Fixed SQLite insert with subquery (#68).
2332
+
2333
+ * Reverted back to hashes as default mode. Added Sequel.use_array_tuples and Sequel.use_hash_tuples methods.
2334
+
2335
+ * Fixed problem with arrays with keys when using #delete.
2336
+
2337
+ * Implemented ArrayKeys as substitute for ArrayFields.
2338
+
2339
+ * Added Dataset#each_hash method.
2340
+
2341
+ * Rewrote SQLite::Database#transaction to use sqlite3-ruby library implementation of transactions.
2342
+
2343
+ * Fixed Model.destroy_all to work correctly in cases where no before_destroy hook is defined and an after_destroy hook is defined.
2344
+
2345
+ * Restored Model.has_hooks? implementation.
2346
+
2347
+ * Changed Database#<< to strip comments and whitespace only when an array is given.
2348
+
2349
+ * Changed Schema::Generator#primary_key to accept calls with the type argument omitted.
2350
+
2351
+ * Hooks can now be prepended or appended by choice.
2352
+
2353
+ * Changed Model.subset to define filter method on the underlying dataset instead of the model class.
2354
+
2355
+ * Fixed Dataset#transform to work with array fields.
2356
+
2357
+ * Added Dataset#to_csv method.
2358
+
2359
+ * PrettyTable can now extract column names from arrayfields.
2360
+
2361
+ * Converted ado, dbi, odbc adapters to use arrayfields instead of hashes.
2362
+
2363
+ * Fixed composite key support.
2364
+
2365
+ * Fixed Dataset#insert_sql, update_sql to support array fields.
2366
+
2367
+ * Converted sqlite, mysql, postgres adapters to use arrayfields instead of hashes.
2368
+
2369
+ * Extended Dataset#from to auto alias sub-queries.
2370
+
2371
+ * Extended Dataset#from to accept hash for aliasing tables.
2372
+
2373
+ * Added before_update, after_update hooks.
2374
+
2375
+ === 0.2.1.1 (2007-10-07)
2376
+
2377
+ * Added Date literalization to sqlite adapter (#60).
2378
+
2379
+ * Changed Model.serialize to allow calling it after the class is defined (#59).
2380
+
2381
+ * Fixed after_create hooks to allow calling save inside the hook (#58).
2382
+
2383
+ * Fixed MySQL quoting of sql functions (#57).
2384
+
2385
+ * Implemented rollback! global method for cancelling transactions in progress.
2386
+
2387
+ * Fixed =~ operator in Sequelizer.
2388
+
2389
+ * Fixed ODBC::Dataset#fetch_rows (thanks Dusty).
2390
+
2391
+ * Renamed Model.recreate_table to create_table!. recreate_table is deprecated and will issue a warning (#56).
2392
+
2393
+ === 0.2.1 (2007-09-24)
2394
+
2395
+ * Added default implementation of Model.primary_key_hash.
2396
+
2397
+ * Fixed Sequel::Model() to set dataset for inherited classes.
2398
+
2399
+ * Rewrote Model.serialize to use Dataset#transform.
2400
+
2401
+ * Implemented Dataset#transform.
2402
+
2403
+ * Added gem spec for Windows (without ParseTree dependency).
2404
+
2405
+ * Added support for dynamic strings in Sequelizer (#49).
2406
+
2407
+ * Query branch merged into trunk.
2408
+
2409
+ * Implemented self-changing methods.
2410
+
2411
+ * Add support for ternary operator to Sequelizer.
2412
+
2413
+ * Fixed sequelizer to evaluate expressions if they don't involve symbols or literal strings.
2414
+
2415
+ * Added protection against using #each, #delete, #insert, #update inside query blocks.
2416
+
2417
+ * Improved Model#method_missing to deal with invalid attributes.
2418
+
2419
+ * Implemented Dataset#query.
2420
+
2421
+ * Added Dataset#group_by as alias for Dataset#group.
2422
+
2423
+ * Added Dataset#order_by as alias for Dataset#order.
2424
+
2425
+ * More model refactoring. Added support for composite keys.
2426
+
2427
+ * Added Dataset#empty? method (#46).
2428
+
2429
+ * Fixed Symbol#to_field_name to support names with numbers and upper-case characters (#45).
2430
+
2431
+ * Added install_no_doc rake task.
2432
+
2433
+ * Partial refactoring of model code.
2434
+
2435
+ * Refactored dataset-model association and added Dataset#set_row_filter method.
2436
+
2437
+ * Added support for case-sensitive regexps to mysql adapter.
2438
+
2439
+ * Changed mysql adapter to support encoding option as well.
2440
+
2441
+ * Added charset/encoding option to postgres adapter.
2442
+
2443
+ * Implemented Model.serialize (thanks Aman Gupta.)
2444
+
2445
+ * Changed Model.create to INSERT DEFAULT VALUES instead of (id) VALUES (null) (brings back #41.)
2446
+
2447
+ * Fixed Model.new to work without arguments.
2448
+
2449
+ * Added Model.no_primary_key method to allow models without primary keys.
2450
+
2451
+ * Added Model#this method (#42 thanks Duane Johnson).
2452
+
2453
+ * Fixed Dataset#insert_sql to use DEFAULT VALUES clause if argument is an empty hash.
2454
+
2455
+ * Fixed Model.create to work correctly when no argument is passed (#41).
2456
+
2457
+ === 0.2.0.2 (2007-09-07)
2458
+
2459
+ * Dataset#insert can now accept subqueries.
2460
+
2461
+ * Changed Migrator.apply to return the version.
2462
+
2463
+ * Changed Sequel::Model() to cache intermediate classes so descendant classes can be reopened (#39).
2464
+
2465
+ * Added :charset option to MySQL adapter (#40).
2466
+
2467
+ * Fixed Dataset#exclude to add parens around NOT expression (#38).
2468
+
2469
+ * Fixed use of sub-queries with all comparison operators in block filters (#38).
2470
+
2471
+ * Fixed arithmetic expressions in block filters to not be literalized.
2472
+
2473
+ * Changed Symbol#method_missing to return LiteralString.
2474
+
2475
+ * Changed PrettyTable to right-align numbers.
2476
+
2477
+ * Fixed Model.create_table (thanks Duane Johnson.)
2478
+
2479
+ === 0.2.0.1 (2007-09-04)
2480
+
2481
+ * Improved support for invoking methods with inline procs inside block filters.
2482
+
2483
+ === 0.2.0 (2007-09-02)
2484
+
2485
+ * Fixed Model.drop_table (thanks Duane Johnson.)
2486
+
2487
+ * Dataset#each can now return rows for arbitrary SQL by specifying :sql option.
2488
+
2489
+ * Added spec for postgres adapter.
2490
+
2491
+ * Fixed Model.method_missing to work with new SQL generation.
2492
+
2493
+ * Fixed #compare_expr to support regexps.
2494
+
2495
+ * Fixed postgres, mysql adapters to support regexps.
2496
+
2497
+ * More specs for block filters. Updated README.
2498
+
2499
+ * Added support for globals and $X macros in block filters.
2500
+
2501
+ * Fixed Sequelizer to not fail if ParseTree or Ruby2Ruby gems are missing.
2502
+
2503
+ * Renamed String#expr into String#lit (#expr should be deprecated in future versions).
2504
+
2505
+ * Renamed Sequel::ExpressionString into LiteralString.
2506
+
2507
+ * Fixed Symbol#[] to return an ExpressionString, so as not to be literalized.
2508
+
2509
+ * Renamed Dataset::Expressions to Dataset::Sequelizer.
2510
+
2511
+ * Renamed Expressions#format_re_expression to match_expr.
2512
+
2513
+ * Renamed Expressions#format_eq_expression to compare_expr.
2514
+
2515
+ * Added support for Regexp in MySQL adapter.
2516
+
2517
+ * Refactored Regexp expressions into a separate #format_re_expression method.
2518
+
2519
+ * Added support for arithmetic in proc filters.
2520
+
2521
+ * Added support for nested proc expressions, more specs.
2522
+
2523
+ * Added support for SQL function using symbols, e.g. :sum[:x].
2524
+
2525
+ * Fixed deadlock bug in ConnectionPool.
2526
+
2527
+ * Removed deprecated old expressions.rb.
2528
+
2529
+ * Rewrote Proc filter feature using ParseTree.
2530
+
2531
+ * Added support for additional functions on columns using Symbol#method_missing.
2532
+
2533
+ * Added support for supplying filter block to DB#[] method, to allow stuff like DB[:nodes] {:path =~ /^icex1/}.
2534
+
2535
+ === 0.1.9.12 (2007-08-26)
2536
+
2537
+ * Added spec for PrettyTable.
2538
+
2539
+ * Added specs for Schema::Generator and Model (#36 thanks technoweenie).
2540
+
2541
+ * Fixed Sequel::Model.set_schema (#36 thanks technoweenie.)
2542
+
2543
+ * Added support for no options on Schema::Generator#foreign_key (#36 thanks technoweenie.)
2544
+
2545
+ * Implemented (restored?) Schema::Generator#primary_key_name (#36 thanks technoweenie.)
2546
+
2547
+ * Better spec code coverage.
2548
+
2549
+ === 0.1.9.11 (2007-08-24)
2550
+
2551
+ * Changed Dataset#set_model to allow supplying additional arguments to the model's initialize method (#35). Thanks Sunny Hirai.
2552
+
2553
+ === 0.1.9.10 (2007-08-22)
2554
+
2555
+ * Changed schema generation code to generate separate statements for CREATE TABLE and each CREATE INDEX (#34).
2556
+
2557
+ * Refactored Dataset::SQL#field_name for better support of different field quoting standards by specific adapters.
2558
+
2559
+ * Added #current_page_record_count for paginated datasets.
2560
+
2561
+ * Removed Database#literal and included Dataset::SQL instead.
2562
+
2563
+ * 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'.
2564
+
2565
+ * Moved SingleThreadedPool to lib/sequel/connection_pool.rb.
2566
+
2567
+ * Changed SQLite::Dataset to return affected rows for #delete and #update (#33).
2568
+
2569
+ * 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.
2570
+
2571
+ === 0.1.9.9 (2007-08-18)
2572
+
2573
+ * New ADO adapter by cdcarter (#31).
2574
+
2575
+ * Added automatic column aliasing to #avg, #sum, #min and #max (#30).
2576
+
2577
+ * Fixed broken Sequel::DBI::Dataset#fetch_rows (#29 thanks cdcarter.)
2578
+
2579
+ === 0.1.9.8 (2007-08-15)
2580
+
2581
+ * Fixed DBI adapter.
2582
+
2583
+ === 0.1.9.7 (2007-08-15)
2584
+
2585
+ * Added support for executing batch statements in sqlite adapter.
2586
+
2587
+ * Changed #current_page_record_range to return 0..0 for an invalid page.
2588
+
2589
+ * Fixed joining of aliased tables.
2590
+
2591
+ * Improved Symbol#to_field_name to prevent false positives.
2592
+
2593
+ * Implemented Dataset#multi_insert with :commit_every option.
2594
+
2595
+ * More docs for Dataset#set_model.
2596
+
2597
+ * Implemented automatic creation of convenience methods for each adapter (e.g. Sequel.sqlite etc.)
2598
+
2599
+ === 0.1.9.6 (2007-08-13)
2600
+
2601
+ * Refactored schema definition code. Gets rid of famous primary_key problem as well as other issues (e.g. issue #22).
2602
+
2603
+ * Added #pagination_record_count, #page_range and #current_page_record_range for paginated datasets.
2604
+
2605
+ * Changed MySQL adapter to automatically reconnect (issue #26).
2606
+
2607
+ * Changed Sequel() to accept variable arity.
2608
+
2609
+ * Added :elements option to column definition, in order to support ENUM and SET types.
2610
+
2611
+ === 0.1.9.5 (2007-08-12)
2612
+
2613
+ * Fixed migration docs.
2614
+
2615
+ * Removed dependency on PGconn in Schema class.
2616
+
2617
+ === 0.1.9.4 (2007-08-11)
2618
+
2619
+ * Added Sequel.dbi convenience method for using DBI connection strings to open DBI databases.
2620
+
2621
+ === 0.1.9.3 (2007-08-10)
2622
+
2623
+ * Added support for specifying field size in schema definitions (thanks Florian Aßmann.)
2624
+
2625
+ * Added migration code based on work by Florian Aßmann.
2626
+
2627
+ * Reintroduced metaid dependency. No need to keep a local copy of it.
2628
+
2629
+ === 0.1.9.2 (2007-07-24)
2630
+
2631
+ * Removed metaid dependency. Re-factored requires in lib/sequel.rb.
2632
+
2633
+ === 0.1.9.1 (2007-07-22)
2634
+
2635
+ * Improved robustness of MySQL::Dataset#field_name.
2636
+
2637
+ * Added Sequel.single_threaded= convenience method.
2638
+
2639
+ === 0.1.9 (2007-07-21)
2640
+
2641
+ * Fixed #update_sql and #insert_sql to support field quoting by calling #field_name.
2642
+
2643
+ * Implemented automatic data type conversion in mysql adapter.
2644
+
2645
+ * Added support for boolean literals in mysql adapter.
2646
+
2647
+ * Added support for ORDER and LIMIT clauses in UPDATE statements in mysql adapter.
2648
+
2649
+ * Implemented correct field quoting (using back-ticks) in mysql adapter.
2650
+
2651
+ * Wrote basic MySQL spec.
2652
+
2653
+ * Fixd MySQL::Dataset to return correct data types with symbols as hash keys.
2654
+
2655
+ * Removed discunctional MySQL::Database#transaction.
2656
+
2657
+ * Added support for single threaded operation.
2658
+
2659
+ * Fixed bug in Dataset#format_eq_expression where Range objects would not be literalized correctly.
2660
+
2661
+ * Added parens around postgres LIKE expressions using regexps.
2662
+
2663
+ === 0.1.8 (2007-07-10)
2664
+
2665
+ * Implemented Dataset#columns for retrieving the columns in the result set.
2666
+
2667
+ * Updated Model with changes to how model-associated datasets work.
2668
+
2669
+ * Beefed-up specs. Coverage is now at 95.0%.
2670
+
2671
+ * Added support for polymorphic datasets.
2672
+
2673
+ * The adapter dataset interface was simplified and standardized. Only four methods need be overriden: fetch_rows, update, insert and delete.
2674
+
2675
+ * The Dataset class was refactored. The bulk of the dataset code was moved into separate modules.
2676
+
2677
+ * Renamed Dataset#hash_column to Dataset#to_hash.
2678
+
2679
+ * Added some common pragmas to sqlite adapter.
2680
+
2681
+ * Added Postgres::Dataset#analyze for EXPLAIN ANALYZE queries.
2682
+
2683
+ * Fixed broken Postgres::Dataset#explain.
2684
+
2685
+ === 0.1.7
2686
+
2687
+ * Removed db.synchronize wrapping calls in sqlite adapter.
2688
+
2689
+ * Implemented Model.join method to restrict returned columns to the model table (thanks Pedro Gutierrez).
2690
+
2691
+ * Implemented Dataset#paginate method.
2692
+
2693
+ * Fixed after_destroy hook.
2694
+
2695
+ * Improved Dataset#first and #last to accept a filter hash.
2696
+
2697
+ * Added Dataset#[]= method.
2698
+
2699
+ * Added Sequel() convenience method.
2700
+
2701
+ * Fixed Dataset#first to include a LIMIT clause for a single record.
2702
+
2703
+ * 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).
2704
+
2705
+ * Fixed Symbol#DESC to support qualified notation (thanks Pedro Gutierrez).
2706
+
2707
+ === 0.1.6
2708
+
2709
+ * Fixed Model#method_missing to raise for an invalid attribute.
2710
+
2711
+ * Fixed PrettyTable to print model objects (thanks snok.)
2712
+
2713
+ * Fixed ODBC timestamp conversion to return DateTime rather than Time object (thanks snok.)
2714
+
2715
+ * Fixed Model.method_missing (thanks snok.)
2716
+
2717
+ * Model.method_missing now creates stubs for calling Model.dataset methods. Methods like Model.each etc are removed.
2718
+
2719
+ * Changed default join type to INNER JOIN (thanks snok.)
2720
+
2721
+ * Added support for literal expressions, e.g. DB[:items].filter(:col1 => 'col2 - 10'.expr).
2722
+
2723
+ * Added Dataset#and.
2724
+
2725
+ * SQLite adapter opens a memory DB if no database is specified, e.g. Sequel.open 'sqlite:/'.
2726
+
2727
+ * Added Dataset#or, pretty nifty.
2728
+
2729
+ === 0.1.5
2730
+
2731
+ * Fixed Dataset#join to support multiple joins. Added #left_outer_join, #right_outer_join, #full_outer_join, #inner_join methods.
2732
+
2733
+ === 0.1.4
2734
+
2735
+ * Added String#split_sql.
2736
+
2737
+ * 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.
2738
+
2739
+ * Improved Schema generator to support data types as method names:
2740
+ DB.create_table :test do
2741
+ integer :abc
2742
+ text :def
2743
+ ...
2744
+ end
2745
+
2746
+ * Implemented ODBC adapter.
2747
+
2748
+ === 0.1.3
2749
+
2750
+ * Implemented DBI adapter.
2751
+
2752
+ * Refactored database connection code. Now handled through Database#connect.
2753
+
2754
+ === 0.1.2
2755
+
2756
+ * The first opened database is automatically assigned to to Model.db.
2757
+
2758
+ * Removed SequelConnectionError. Exception class errors are converted to RuntimeError.
2759
+
2760
+ * Added support for UNION, INTERSECT and EXCEPT set operations.
2761
+
2762
+ * Fixed Dataset#single_record to return nil if no record is found.
2763
+
2764
+ * Updated specs to conform to RSpec 1.0.
2765
+
2766
+ * Added Model#find_or_create method.
2767
+
2768
+ * Fixed MySQL::Dataset#query_single (thanks Dries Harnie.)
2769
+
2770
+ * Added Model.subset method. Fixed Model.filter and Model.exclude to accept blocks.
2771
+
2772
+ * Added Database#uri method.
2773
+
2774
+ * Refactored and removed deprecated code in postgres adapter.
2775
+
2776
+ ===0.1.1
2777
+
2778
+ * More documentation for Dataset.
2779
+
2780
+ * Added Dataset#size as alias to Dataset#count.
2781
+
2782
+ * Changed Database#<< to call execute (instead of being an alias). Thus it will work for descendants as well.
2783
+
2784
+ * Fixed Sequel.open to accept variable arity.
2785
+
2786
+ * Refactored Model#refresh, Model.create. Removed Model#reload.
2787
+
2788
+ * Refactored Model hooks.
2789
+
2790
+ * Cleaned up Dataset API.
2791
+
2792
+ === 0.1.0
2793
+
2794
+ * Changed Database#create_table to only accept a block. Nobody's gonna use the other way.
2795
+
2796
+ * Removed Dataset#[]= method. Too confusing and not really useful.
2797
+
2798
+ * Fixed ConnectionPool#hold to wrap exceptions only once.
2799
+
2800
+ * Dataset#where_list Renamed Dataset#expression_list.
2801
+
2802
+ * Added support for qualified fields in Proc expressions (e.g. filter {items.id == 1}.)
2803
+
2804
+ * Added like? and in? Proc expression operators.
2805
+
2806
+ * Added require 'date' in dataset.rb. Is this a 1.8.5 thing?
2807
+
2808
+ * Refactored Dataset to use literal strings instead of format strings (slight performance improvement and better readability.)
2809
+
2810
+ * Added support for literalizing Date objects.
2811
+
2812
+ * Refactored literalization of Time objects.
2813
+
2814
+ === 0.0.20
2815
+
2816
+ * Refactored Dataset where clause construction to use expressions.
2817
+
2818
+ * Implemented Proc expressions (adapted from a great idea by Sam Smoot.)
2819
+
2820
+ * Fixed Model#map.
2821
+
2822
+ * Documentation for ConnectionPool.
2823
+
2824
+ * Specs for Database.
2825
+
2826
+ === 0.0.19
2827
+
2828
+ * More specs for Dataset.
2829
+
2830
+ * Fixed Dataset#invert_order to work correctly with strings.
2831
+
2832
+ * Fixed Model#== to check equality of values.
2833
+
2834
+ * Added Model#exclude and Model#order.
2835
+
2836
+ * Fixed Dataset#order and Dataset#group to behave correctly when supplied with qualified field name symbols.
2837
+
2838
+ * Removed Database#literal. Shouldn't have been there.
2839
+
2840
+ * Added SQLite::Dataset#explain. Returns an array of opcode hashes.
2841
+
2842
+ * Specs for ConnectionPool.
2843
+
2844
+ === 0.0.18
2845
+
2846
+ * Implemented SequelError and SequelConnectionError classes. ConnectionPool#hold now catches any connection errors and reraises them SequelConnectionError.
2847
+
2848
+ * Removed duplication in Database#[].
2849
+
2850
+ * :from and :select options are now always arrays (patch by Alex Bradbury.)
2851
+
2852
+ * Fixed Dataset#exclude to work correctly (patch and specs by Alex Bradbury.)
2853
+
2854
+ === 0.0.17
2855
+
2856
+ * Fixed Postgres::Database#tables to return table names as symbols (caused problem when using Database#table_exists?).
2857
+
2858
+ * Fixed Dataset#from to have variable arity, like Dataset#select and Dataset#where (patch by Alex Bradbury.)
2859
+
2860
+ * Added support for GROUP BY and HAVING clauses (patches by Alex Bradbury.) Refactored Dataset#filter.
2861
+
2862
+ * More specs.
2863
+
2864
+ * Refactored Dataset#where for better composability.
2865
+
2866
+ * Added Dataset#[]= method.
2867
+
2868
+ * Added support for DISTINCT and OFFSET clauses (patches by Alex Bradbury.) Dataset#limit now accepts ranges. Added Dataset#uniq and distinct methods.
2869
+
2870
+ === 0.0.16
2871
+
2872
+ * More documentation.
2873
+
2874
+ * Added support for subqueries in Dataset#literal.
2875
+
2876
+ * Added support for Model.all_by_XXX methods through Model.method_missing.
2877
+
2878
+ * Added basic SQL logging to Database.
2879
+
2880
+ * Added Enumerable#send_each convenience method.
2881
+
2882
+ * Changed Dataset#destroy to return the number of deleted records.
2883
+
2884
+ === 0.0.15
2885
+
2886
+ * Improved Dataset#insert_sql to allow arrays as well as hashes.
2887
+
2888
+ * Database#drop_table now accepts a list of table names.
2889
+
2890
+ * Added Model#id to to return the id column.
2891
+
2892
+ === 0.0.14
2893
+
2894
+ * Fixed Model's attribute accessors (hopefully for the last time).
2895
+
2896
+ * Changed Model.db and Model.db= to allow different databases for different model classes.
2897
+
2898
+ * Fixed bug in aggregate methods (max, min, etc) for datasets using record classes.
2899
+
2900
+ === 0.0.13
2901
+
2902
+ * Fixed Model#method_missing to do both find, filter and attribute accessors. duh.
2903
+
2904
+ * Fixed bug in Dataset#literal when quoting arrays of strings (thanks Douglas Koszerek.)
2905
+
2906
+ === 0.0.12
2907
+
2908
+ * Model#save now correctly performs an INSERT for new objects.
2909
+
2910
+ * Added Model#reload for reloading an object from the database.
2911
+
2912
+ * Added Dataset#naked method for getting a version of a dataset that fetches records as hashes.
2913
+
2914
+ * Implemented attribute accessors for column values ala ActiveRecord models.
2915
+
2916
+ * Fixed filtering using nil values (e.g. dataset.filter(:parent_id => nil)).
2917
+
2918
+ === 0.0.11
2919
+
2920
+ * Renamed Model.schema to Model.set_schema and Model.get_schema to Model.schema.
2921
+
2922
+ * Improved Model class to allow descendants of model clases (thanks Pedro Gutierrez.)
2923
+
2924
+ * Removed require 'postgres' in schema.rb (thanks Douglas Koszerek.)
2925
+
2926
+ === 0.0.10
2927
+
2928
+ * Added some examples.
2929
+
2930
+ * Added Dataset#print method for pretty-printing tables.
2931
+
2932
+ === 0.0.9
2933
+
2934
+ * Fixed Postgres::Database#tables and #locks methods.
2935
+
2936
+ * Added PGconn#last_insert_id method that should support all 7.x and 8.x versions of Postgresql.
2937
+
2938
+ * Added Dataset#exists method for EXISTS where clauses.
2939
+
2940
+ * Changed behavior of Dataset#literal to regard symbols as field names.
2941
+
2942
+ * Refactored and DRY'd Dataset#literal and overrides therof. Added support for subqueries in where clause.
2943
+
2944
+ === 0.0.8
2945
+
2946
+ * 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.
2947
+
2948
+ * Fixed literal representation of literals in SQLite adapter (thanks Christian Neukirchen!)
2949
+
2950
+ * Refactored insert code in Postgres adapter (in preparation for fetching the last insert id for pre-8.1 versions).
2951
+
2952
+ === 0.0.7
2953
+
2954
+ * Fixed bug in Model.schema, duh!
2955
+
2956
+ === 0.0.6
2957
+
2958
+ * Added Dataset#sql as alias to Dataset#select_sql.
2959
+
2960
+ * Dataset#where and Dataset#exclude can now be used for refining dataset conditions, enabling stuff like posts.where(:title => 'abcdef').exclude(:user_id => 3).
2961
+
2962
+ * Implemented Dataset#exclude method.
2963
+
2964
+ * 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.
2965
+
2966
+ * Changed Sequel::Database#table_exists? to rely on the tables method if it is available.
2967
+
2968
+ * Implemented SQLite::Database#tables.
2969
+
2970
+ === 0.0.5
2971
+
2972
+ * Added Dataset#[] method. Refactored Model#find and Model#[].
2973
+
2974
+ * Renamed Pool#conn_maker to Pool#connection_proc.
2975
+
2976
+ * Added automatic require 'sequel' to all adapters for convenience.
2977
+
2978
+ === 0.0.4
2979
+
2980
+ * Added preliminary MySQL support.
2981
+
2982
+ * Code cleanup.
2983
+
2984
+ === 0.0.3
2985
+
2986
+ * Add Dataset#sum method.
2987
+
2988
+ * Added support for exclusive ranges (thanks Christian Neukirchen.)
2989
+
2990
+ * Added sequel console for quick'n'dirty access to databases.
2991
+
2992
+ * Fixed small bug in Dataset#qualified_field_name for better join support.
2993
+
2994
+ === 0.0.2
2995
+
2996
+ * Added Sequel.open as alias to Sequel.connect.
2997
+
2998
+ * 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']).
2999
+
3000
+ * Added Model#[]= method for changing column values and Model#save
3001
+ method for saving them.
3002
+
3003
+ * Added Dataset#destroy for deleting each record individually as support for models. Renamed Model#delete to Model#destroy (and Model#destroy_all) ala ActiveRecord.
3004
+
3005
+ * Refactored Dataset#first and Dataset#last code. These methods can now accept the number of records to fetch.
3006
+
3007
+ === 0.0.1
3008
+
3009
+ * More documentation for Dataset.
3010
+
3011
+ * Renamed Database#query to Database#dataset.
3012
+
3013
+ * Added Dataset#insert_multiple for inserting multiple records.
3014
+
3015
+ * Added Dataset#<< as shorthand for inserting records.
3016
+
3017
+ * Added Database#<< method for executing arbitrary SQL.
3018
+
3019
+ * Imported Sequel code.
3020
+
3021
+
3022
+ == Sequel::Model CHANGELOG 0.1 - 0.5.0.2
3023
+
3024
+ === 0.5.0.2 (2008-03-12)
3025
+
3026
+ * More fixes for Model.associate to accept strings and symbols as class references.
3027
+
3028
+ === 0.5.0.1 (2008-03-09)
3029
+
3030
+ * Fixed Model.associate to accept class and class name in :class option.
3031
+
3032
+ === 0.5 (2008-03-08)
3033
+
3034
+ * Merged new associations branch into trunk.
3035
+
3036
+ * Rewrote RDoc for associations.
3037
+
3038
+ * Added has_and_belongs_to_many alias for many_to_many.
3039
+
3040
+ * Added support for optional dataset block.
3041
+
3042
+ * Added :order option to order association datasets.
3043
+
3044
+ * Added :cache option to return and cache array of objects for association.
3045
+
3046
+ * Changed one_to_many, many_to_many associations to return dataset by default.
3047
+
3048
+ * Added has_many, belongs_to aliases.
3049
+
3050
+ * Refactored associations code.
3051
+
3052
+ * Added deprecations for old-style relations.
3053
+
3054
+ * Completed specs for new associations code.
3055
+
3056
+ * New associations code by Jeremy Evans (replaces relations code.)
3057
+
3058
+ === 0.4.2 (2008-02-29)
3059
+
3060
+ * Fixed one_to_many implicit key to work correctly for namespaced classes (#167).
3061
+
3062
+ * Fixed Model.db= to affect the underlying dataset (#183).
3063
+
3064
+ * Fixed Model.implicit_table_name to disregard namespaces.
3065
+
3066
+ === 0.4.1 (2008-02-10)
3067
+
3068
+ * Implemented Model#inspect (#151).
3069
+
3070
+ * Changed Model#method_missing to short-circuit and bypass checking #columns if the values hash already contains the relevant column (#150).
3071
+
3072
+ * Updated to reflect changes in sequel_core (Dataset#clone_merge renamed to Dataset#clone).
3073
+
3074
+ === 0.4 (2008-02-05)
3075
+
3076
+ * Fixed Model#set to work with string keys (#143).
3077
+
3078
+ * Fixed Model.create to correctly initialize instances marked as new (#135).
3079
+
3080
+ * Fixed Model#initialize to convert string keys into symbol keys. This also fixes problem with validating objects initialized with string keys (#136).
3081
+
3082
+ === 0.3.3 (2008-01-25)
3083
+
3084
+ * Finalized support for virtual attributes.
3085
+
3086
+ === 0.3.2.1 (2008-01-24)
3087
+
3088
+ * Fixed Model.dataset to correctly set the dataset if using implicit naming or inheriting the superclass dataset (thanks celldee).
3089
+
3090
+ === 0.3.2 (2008-01-24)
3091
+
3092
+ * 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).
3093
+
3094
+ * Cleaned up gem spec (#132).
3095
+
3096
+ * Removed validations code. Now relying on validations in assistance gem.
3097
+
3098
+ === 0.3.1 (2008-01-21)
3099
+
3100
+ * 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.
3101
+
3102
+ === 0.3 (2008-01-18)
3103
+
3104
+ * Implemented Validatable::Errors class.
3105
+
3106
+ * Added Model#reload as alias to Model#refresh.
3107
+
3108
+ * Changed Model.create to accept a block (#126).
3109
+
3110
+ * Rewrote validations.
3111
+
3112
+ * Fixed Model#initialize to accept nil values (#115).
3113
+
3114
+ === 0.2 (2008-01-02)
3115
+
3116
+ * Removed deprecated Model.recreate_table method.
3117
+
3118
+ * Removed deprecated :class and :on options from one_to_many macro.
3119
+
3120
+ * Removed deprecated :class option from one_to_one macro.
3121
+
3122
+ * Removed deprecated Model#pkey method.
3123
+
3124
+ * Changed dependency to sequel_core.
3125
+
3126
+ * Removed examples from sequel core.
3127
+
3128
+ * Additional specs. We're now at 100% coverage.
3129
+
3130
+ * 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).
3131
+
3132
+ === 0.1 (2007-12-30)
3133
+
3134
+ * Moved model code from sequel into separate model sub-project.