The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.39

  • NOTE: This release add some DEPRECATED warnings. Maybe after these DEPRECATED period, DBIx::Custom will be more stable.
  • DBIx::Custom::helper method is DEPRECATED!
  • DBIx::Custom AUTOLOAD feature is DEPRECATED!
  • DBIx::Custom::update_or_insert method is DEPRECATED!
  • DBIx::Custom::count method is DEPRECATED!
  • DBIx::Custom::insert, select,update,delete method's id option is DEPRECATED!
  • DBIx::Custom::insert, select,update,delete method's primary_key option is DEPRECATED!
  • DBIx::Custom::Model AUTOLOAD feature is DEPRECATED!
  • DBIx::Custom::Model::helper method is DEPRECATED!
  • DBIx::Custom::Model::update_or_insert method is DEPRECATED!
  • DBIx::Custom::Model::count method is DEPRECATED!
  • DBIx::Custom::Model::primary_key attribute is DEPRECATED!
  • DBIx::Custom::setup method is DEPRECATED! this method has no meaning because columns is automatically set when create_model or include_model is called.
  • Performance down
  • DBIx::Custom::insert method which have array argument(For example, [{foo => 1, bar => 2}, {foo => 3, bar => 4}]) become slow. (Performance down 1)
  • DBIx::Custom::execute method's reuse option become no more meaning. (Performance down 2)
  • You can resolve above two problem by using query option
  • remove EXPERIMENTAL
  • remove EXPERIMENTAL DBIx::Custom::execute method's async option
  • remove EXPERIMENTAL DBIx::Custom::async_conf attribute From this release, DBIx::Custom support only syncronous query, but from this release, you can create sql and bind values by excute method's query option you can pass sql and bind values to any asyncronous support database module, (for example, AnyEvent::DBI or Mojo::Pg)
  • remove EXPERIMENTAL DBIx::Custom::default_schema attribute
  • New features
  • add EXPERIMENTAL DBIx::Custom::execute query option again. This method return DBIx::Custom::Query object. If you use this option, you can resolve "Performance down 1" and "Performance down 2".
  • add EXPERIMENTAL DBIx::Custom::create_result method to create result class from statement handle
  • DBIx::Connector become enable by default
  • Model columns is automatically set when DBIx::Custome::create_model and DBIx::Custome::include_model called
  • DBIx::Custom::connect method support DBI compatible arguments DBIx::Custom->connect($dsn, $user, $password, $dbh_attrs);
  • DBIx::Custom::create_model can receive model name only $dbi->create_model('book');
  • Model name is indepenet from table name. You can write the following $dbi->create_model(name => 'book1', table => 'book');

Modules

DBI extension to execute insert, update, delete, and select easily
Mapper of parameter
Model object
Not exists object
Order by clause
Result of select statement
Utility class
Where clause

Provides

in lib/DBIx/Custom/Query.pm