- added DBIx::Custom::Result all method, this is...
...alias for fetch_hash_all
| ... | ... |
@@ -1,5 +1,7 @@ |
| 1 | 1 |
0.1684 |
| 2 |
- |
|
| 2 |
+ - added DBIx::Custom::Result all method, this is alias for fetch_hash_all |
|
| 3 |
+ - added DBIx::Custom::Result one method, this is alias for fetch_hash_first |
|
| 4 |
+ - DBIx::Custom::Result fetch_hash_first can recieve argument |
|
| 3 | 5 |
- select() column option can receive hash reference |
| 4 | 6 |
- update_param_tag is DEPRECATED! use update_param instead. |
| 5 | 7 |
- insert_param_tag is DEPRECATED! use insert_param instead. |
| ... | ... |
@@ -177,4 +179,213 @@ |
| 177 | 179 |
- renamed dbi_options to dbi_option. dbi_options is available, but deprecated. |
| 178 | 180 |
- renamed DBIx::Custom::TagProcessor to DBIx::Custom::Tag, and function names is cleanuped. |
| 179 | 181 |
- renamed register_tag_processor to register_tag. register_tag_processor is available, but deprecated. |
| 180 |
- - renamed tag_processors to tags. tag_prosessors is available, but deprecated |
|
| 182 |
+ - renamed tag_processors to tags. tag_prosessors is available, but deprecated. |
|
| 183 |
+ - improved error message |
|
| 184 |
+ - build all clause if param is undefined. |
|
| 185 |
+ - each_column callback receive self as first argument. |
|
| 186 |
+ - removed EXPERIMENTAL txn_scope |
|
| 187 |
+0.1636 |
|
| 188 |
+ - added tests and cleanup |
|
| 189 |
+0.1635 |
|
| 190 |
+ - renamed iterate_all_columns to each_column |
|
| 191 |
+0.1634 |
|
| 192 |
+ - became more useful where method |
|
| 193 |
+ - changed DBIx::Custom::Where greatly |
|
| 194 |
+0.1633 |
|
| 195 |
+ - fixed test |
|
| 196 |
+0.1632 |
|
| 197 |
+ - added EXPERIMENTAL where method |
|
| 198 |
+ - added EXPERIMENTAL DBIx::Custom::Where. |
|
| 199 |
+ - removed DBIx::Custom::Or |
|
| 200 |
+0.1631 |
|
| 201 |
+ - added EXPERIMENTAL DBIx::Custom::Result end_filter method |
|
| 202 |
+ - EXPERIMENTAL extended select method's where option |
|
| 203 |
+ - fix select method empty where failed bug |
|
| 204 |
+ - added EXPERIMENTAL suger method query option |
|
| 205 |
+ - added EXPERIMENTAL or method |
|
| 206 |
+0.1630 |
|
| 207 |
+ - fix test bug |
|
| 208 |
+0.1629 |
|
| 209 |
+ - renamed auto_filter to apply_filter |
|
| 210 |
+ - changed apply_filter method arguments |
|
| 211 |
+ - deprecated cache_method |
|
| 212 |
+0.1628 |
|
| 213 |
+ - remove DBIx::Custom::Model |
|
| 214 |
+ - move table method and table_class attribute to DBIx::Custom |
|
| 215 |
+ - added examples |
|
| 216 |
+ - fixed connect method bug |
|
| 217 |
+0.1627 |
|
| 218 |
+ - added insert, update, update_all, delete, delete_all, select method to DBIx::Custom::Table |
|
| 219 |
+ - added EXPERIMENTAL txn_scope |
|
| 220 |
+0.1626 |
|
| 221 |
+ - simplified DBIx::Custom::Model and DBIx::Custom::Table |
|
| 222 |
+0.1625 |
|
| 223 |
+ - added EXPERIMENTAL DBIx::Custom::Model and DBIx::Custom::Table |
|
| 224 |
+0.1624 |
|
| 225 |
+ - added EXPERIMENTAL iterate_all_columns method. |
|
| 226 |
+0.1623 |
|
| 227 |
+ - added EXPERIMENTAL auto_filter method |
|
| 228 |
+ - deprecated default_bind_filter and default_fetch_filter because these are global effect. |
|
| 229 |
+ - changed defautl_bind_filter and default_fetch_filter attributes to methods. |
|
| 230 |
+ - changed DBIx::Custom::Result default_filter attribute to method |
|
| 231 |
+ - changed DBIx::Custom::Result filter attribute to method. |
|
| 232 |
+ - filter_check is always done for usability |
|
| 233 |
+0.1622 |
|
| 234 |
+ - deprecated DBIx::Custom::SQLite and DBIx::Custom::MySQL |
|
| 235 |
+ - added dbi_options attribute |
|
| 236 |
+ - checked attributes passed to connect method |
|
| 237 |
+0.1621 |
|
| 238 |
+ - cleanup (removed undocumented features) |
|
| 239 |
+0.1620 |
|
| 240 |
+ - updated document |
|
| 241 |
+0.1619 |
|
| 242 |
+ - updated document |
|
| 243 |
+ - added EXPERIMENTAL expand method |
|
| 244 |
+0.1618 |
|
| 245 |
+ - added helper method |
|
| 246 |
+ - added begin_work, commit, and rollback method |
|
| 247 |
+0.1617 |
|
| 248 |
+ - L<DBIx::Custom> is now stable. APIs keep backword compatible in the feature. |
|
| 249 |
+0.1616 |
|
| 250 |
+ - removed EXPERIMENTAL register_method(), and methods attribute, because it is too magical |
|
| 251 |
+0.1615 |
|
| 252 |
+ - fixed DBIx::Custom::QueryBuilder build_query() bug |
|
| 253 |
+ - required Perl 5.008001 to use @CARP_NOT |
|
| 254 |
+0.1614 |
|
| 255 |
+ - removed DBIx::Custom::Query start_tag and end tag attributes |
|
| 256 |
+ - enable escaping '{' and '}' in the source of SQL
|
|
| 257 |
+ - fixed Carp Carp trust relationship |
|
| 258 |
+0.1613 |
|
| 259 |
+ - added EXPERIMENTAL register_method() method |
|
| 260 |
+ - added EXPERIMENTAL methods attribute |
|
| 261 |
+0.1612 |
|
| 262 |
+ - added tests |
|
| 263 |
+ - updated document |
|
| 264 |
+ - removed DBIx::Custom::SQLite last_insert_rawid() mehtod(not backword compatible) |
|
| 265 |
+ - removed DBIx::Custom::MySQL last_insert_id() method(not backword compatible) |
|
| 266 |
+0.1611 |
|
| 267 |
+ - renamed update tag to update_param |
|
| 268 |
+ - renamed insert tag to insert_param |
|
| 269 |
+ - renamed sql_builder to query_builder |
|
| 270 |
+0.1610 |
|
| 271 |
+ - added filter_check attribute. |
|
| 272 |
+0.1609 |
|
| 273 |
+ - updated document. |
|
| 274 |
+0.1608 |
|
| 275 |
+ - update document |
|
| 276 |
+ - renamed DBIx::Custom::QueryBuilder::TagProcessors functions(not backword compatible) |
|
| 277 |
+0.1607 |
|
| 278 |
+ - where argument of select() method can specify array(string, parameters) |
|
| 279 |
+ - renamed build_query() to create_query()(not backword compatible) |
|
| 280 |
+0.1606 |
|
| 281 |
+ - fix testing bug |
|
| 282 |
+0.1605 |
|
| 283 |
+ - remove DBIx::Custom::QueryBuilder::tag_syntax() (not backword compatible) |
|
| 284 |
+ - renamed DBIx::Custom::TagProcessor to DBIx::Custom::TagProcessors (not backword compatible) |
|
| 285 |
+ - changed arguments of tag processor(not backword compatible) |
|
| 286 |
+ - renamed DBIx::Custom::QueryBuilder::TagProcessors functions(not backword compatible) |
|
| 287 |
+0.1604 |
|
| 288 |
+ - changed argument of tag processor(not backword compatible) |
|
| 289 |
+ - renamed default_query_filter to default_bind_filter(not backword compatible) |
|
| 290 |
+ - renamed DBIx::Custom::SQLTemplate to DBIx::Custom::SQLBuilder(not backword compatible) |
|
| 291 |
+ - renamed create_query to build_query(not backword compatible) |
|
| 292 |
+ - renamed sql_template to sql_builder(not backword compatible) |
|
| 293 |
+ - removed DESTROY method(not backword compatible) |
|
| 294 |
+ - removed disconnect method(not backword compatible) |
|
| 295 |
+ - fixed DBIx::Custom::MySQL connect_memory |
|
| 296 |
+0.1603 |
|
| 297 |
+ - removed DBIx::Custom commit method (not backword compatible) |
|
| 298 |
+ - removed DBIx::Custom rollback method (not backword compatible) |
|
| 299 |
+ - removed DBIx::Custom auto_commit method (not backword compatible) |
|
| 300 |
+0.1602 |
|
| 301 |
+ - added cache_method attribute |
|
| 302 |
+0.1601 |
|
| 303 |
+ - added cache attribute |
|
| 304 |
+ - select, insert, update, update_all, delete, delete_all, execute only receive hash argument(not backword compatible) |
|
| 305 |
+0.1503 |
|
| 306 |
+ - removed reconnect method |
|
| 307 |
+ - removed connected method |
|
| 308 |
+ - removed reconnect_memroy method |
|
| 309 |
+ - renamed fetch_single to fetch_first |
|
| 310 |
+ - renamed fetch_hash_single to fetch_hash_first |
|
| 311 |
+ - updated document |
|
| 312 |
+0.1502 |
|
| 313 |
+ - added commit method |
|
| 314 |
+ - added rollback method |
|
| 315 |
+ - changed select argument, added relation option |
|
| 316 |
+ - moved host attribute to DBIx::Custom::MySQL |
|
| 317 |
+ - moved port attribute to DBIx::Custom::MySQL |
|
| 318 |
+ - moved database attribute to DBIx::Custom::MySQL and DBIx::Custom::SQLite |
|
| 319 |
+0.1501 |
|
| 320 |
+ - removed register_format() |
|
| 321 |
+ - removed formats() |
|
| 322 |
+ - removed run_transaction() |
|
| 323 |
+ - removed create_table() |
|
| 324 |
+ - removed drop_table() |
|
| 325 |
+ - changed select() arguments |
|
| 326 |
+ - changed insert() arguments |
|
| 327 |
+ - changed update() arguments |
|
| 328 |
+ - changed update_all() arguments |
|
| 329 |
+ - changed delete() arguments |
|
| 330 |
+ - changed delete_all() arguments |
|
| 331 |
+ - changed execute() arguments |
|
| 332 |
+0.1402 |
|
| 333 |
+ - remove finish(), error() |
|
| 334 |
+ - can receive code ref to filter() |
|
| 335 |
+ - renamed resist to register |
|
| 336 |
+0.1401 |
|
| 337 |
+ - renamed fetch_rows to fetch_multi |
|
| 338 |
+ - renamed fetch_hash_rows to fetch_hash_multi |
|
| 339 |
+0.1301 |
|
| 340 |
+ - Changed many(not backword compatible) |
|
| 341 |
+0.1201 |
|
| 342 |
+ - Changed many(not backword compatible) |
|
| 343 |
+0.1101 |
|
| 344 |
+ - rename DBIx::Custom::SQLite last_insert_id to last_insert_rowid |
|
| 345 |
+0.1001 |
|
| 346 |
+ - remove run_transaction(). |
|
| 347 |
+ - add transaction() and DBIx::Custom::Transaction |
|
| 348 |
+ - rename fetch_first to fetch_single |
|
| 349 |
+ - rename fetch_hash_first to fetch_hash_single |
|
| 350 |
+0.0906 |
|
| 351 |
+ - fix some bug |
|
| 352 |
+0.0905 |
|
| 353 |
+ - catch up with Object::Simple update |
|
| 354 |
+0.0904 |
|
| 355 |
+ - cleanup |
|
| 356 |
+0.0903 |
|
| 357 |
+ - catch up with Object::Simple update |
|
| 358 |
+0.0902 |
|
| 359 |
+ - cleanup |
|
| 360 |
+0.0901 |
|
| 361 |
+ - DBIx::Basic filter 'encode_utf8' utf8::upgrade process is deleted |
|
| 362 |
+0.0801 |
|
| 363 |
+ - add 'create_table', 'drop_table' methods |
|
| 364 |
+0.0701 |
|
| 365 |
+ - rename sql_template to sql_tmpl (not backword compatible) |
|
| 366 |
+ - rename dbi_options to options (not backword compatible) |
|
| 367 |
+0.0605 |
|
| 368 |
+ - fix encode_utf8 filter |
|
| 369 |
+0.0604 |
|
| 370 |
+ - fix timeformat tests |
|
| 371 |
+0.0603 |
|
| 372 |
+ - fix cache system bug |
|
| 373 |
+0.0602 |
|
| 374 |
+ - update document |
|
| 375 |
+0.0601 |
|
| 376 |
+ - bind_filter argument is changed to ($value, $key, $dbi, $infos) (not backword compatible) |
|
| 377 |
+ - fetch_filter argument is changed to ($value, $key, $dbi, $infos) (not backword compatible) |
|
| 378 |
+ - run_transaction argument is changed to ($dbi) |
|
| 379 |
+0.0502 |
|
| 380 |
+ - update document |
|
| 381 |
+0.0501 |
|
| 382 |
+ - packaging DBIx::Custom::Result DBIx::Custom::Query DBIx::Custom::MySQL DBIx::Custom::SQLite DBIx::Custom::SQL::Template |
|
| 383 |
+0.0401 |
|
| 384 |
+ - catch up with DBIx::Custom::Result version up |
|
| 385 |
+0.0301 |
|
| 386 |
+ - exchange filter argument 'key', 'value' (not backword compatible) |
|
| 387 |
+0.0201 |
|
| 388 |
+ - rename tranzaction to transaction |
|
| 389 |
+ - add filter_off |
|
| 390 |
+0.0101 |
|
| 391 |
+ - First release |
| ... | ... |
@@ -13,6 +13,8 @@ __PACKAGE__->attr( |
| 13 | 13 |
stash => sub { {} }
|
| 14 | 14 |
); |
| 15 | 15 |
|
| 16 |
+*all = \&fetch_hash_all; |
|
| 17 |
+ |
|
| 16 | 18 |
sub filter {
|
| 17 | 19 |
my $self = shift; |
| 18 | 20 |
|
| ... | ... |
@@ -247,6 +249,8 @@ sub fetch_multi {
|
| 247 | 249 |
return $rows; |
| 248 | 250 |
} |
| 249 | 251 |
|
| 252 |
+*one = \&fetch_hash_first; |
|
| 253 |
+ |
|
| 250 | 254 |
sub remove_end_filter {
|
| 251 | 255 |
my $self = shift; |
| 252 | 256 |
|
| ... | ... |
@@ -566,7 +566,7 @@ $dbi->execute($CREATE_TABLE->{0});
|
| 566 | 566 |
$dbi->insert(table => 'table1', param => {key1 => 1, key2 => 2});
|
| 567 | 567 |
$result = $dbi->select(table => 'table1'); |
| 568 | 568 |
$result->filter({key1 => 'three_times'});
|
| 569 |
-$row = $result->fetch_hash_first; |
|
| 569 |
+$row = $result->one; |
|
| 570 | 570 |
is_deeply($row, {key1 => 3, key2 => 4}, "default_fetch_filter and filter");
|
| 571 | 571 |
|
| 572 | 572 |
test 'filters'; |
| ... | ... |
@@ -586,7 +586,7 @@ $dbi->insert(table => 'table1', param => {key1 => 1, key2 => 2});
|
| 586 | 586 |
$dbi->insert(table => 'table1', param => {key1 => 2, key2 => 3});
|
| 587 | 587 |
$dbi->dbh->commit; |
| 588 | 588 |
$result = $dbi->select(table => 'table1'); |
| 589 |
-is_deeply(scalar $result->fetch_hash_all, [{key1 => 1, key2 => 2}, {key1 => 2, key2 => 3}],
|
|
| 589 |
+is_deeply(scalar $result->all, [{key1 => 1, key2 => 2}, {key1 => 2, key2 => 3}],
|
|
| 590 | 590 |
"commit"); |
| 591 | 591 |
|
| 592 | 592 |
$dbi = DBIx::Custom->connect($NEW_ARGS->{0});
|