Commits on Apr 13, 2009
  1. Merge commit 'dusty/master'

    jeremyevans committed Apr 13, 2009
  2. Allow decimal database types to have size specifiers, fixes schema pa…

    …rsing decimal database types on MySQL
    jeremyevans committed Apr 13, 2009
  3. Add Statistics associations eager loading integration test

    This shows how you can use eager loading and other association
    features to gather aggregate information for associations.
    It gives a nice eager loading example, and shows how you can
    override the association method and call super.
    This commit also makes the eager loading integration tests use
    the generic column types.
    jeremyevans committed Apr 13, 2009
  4. Make Dataset#quote_identifier work with SQL::Identifiers

    I want to support this now that virtual rows will be used more.
    This allows you do to things like:
    Before, you had to do:
    It only saves a character, but this change is made mainly because the
    previous behavior was a little inconsistent.  You should be able to
    use the virtual row method as both the function argument and alias.
    jeremyevans committed Apr 13, 2009
  5. Move many adapter specs into integration tests

    This moves some specs from the PostgreSQL, MySQL, and SQLite adapter
    specs to the integration tests.  This will give better test coverage
    of other adapters.  Going forward, adapter specs should only be
    testing adapter-specific functionality.  Generic functionality should
    be tested in the integration tests.
    This commit also has some general spec cleanup. It also adds specs
    to make sure that the schema parser in the adapter correctly parses
    the generic column types specified with ruby classes.
    jeremyevans committed Apr 13, 2009
Commits on Apr 10, 2009
  1. full_text_search was doing to much magic. full_text_sql can simply be…

    … used.
    for example:*, full_text_sql(:column, 'value').as(:ft))
    Dusty Doris committed Apr 10, 2009
  2. added full_text_select method - the ability to add a full_text query …

    …to the select statement.
    Dusty Doris committed Apr 10, 2009
Commits on Apr 9, 2009
  1. Remove all methods and features deprecated in 2.12

    This huge commit removes the deprecated code and deprecated specs
    (over 300!).  It also makes some other minor changes.
    Sequel.virtual_row_instance_eval is now true, but setting it to false
    does nothing.  Using instance_eval for virtual row blocks that don't
    accept arguments is now standard Sequel behavior.
    Some error messages in convenience.rb were turned into constants to
    reduce garbaged produced.  More work on this will probably be done in
    the future.
    Dataset#import was using each_slice, which was probably provided by
    enumerator.  Change to using a loop and slicing manually.
    The built in inflector now calls the string inflection methods if
    the string responds to the method.  The inflector extension no longer
    updates the built in inflector, since it no longer needs to.
    Database#blank_object? calls blank? on the object if the object
    responds to it.
    The connection pool had a slight code refactoring to make things
    easier to read.
    The hook_class_methods plugin instance methods call super, so using
    the plugin doesn't ignore previous instance level hooks.  Among other
    things, this allows you to use the hook_class_methods plugin after
    the caching plugin, which fixes #264.
    Make the serialization plugin test require yaml, since it
    uses yaml.  This only seems necessary on ruby 1.9.
    Sequel::Deprecation is being moved to the extra directory.  I'm
    moving it out of lib so it won't show up in the RDoc.  I'm not
    removing it completely because I expect it may be used again
    sometime in the future.
    One thing that I realize that I should have officially deprecated
    was the 4th argument to join_table being a table_alias instead of a
    hash of options.  So Sequel will continue to support that.
    jeremyevans committed Apr 9, 2009
Commits on Apr 8, 2009
  1. Add LA Ruby Conf 2009 Presentation link

    As the presentation itself is reasonably large (2MB), I'm not adding
    it to the repository, I'm just adding a link to the website.
    jeremyevans committed Apr 8, 2009
Commits on Apr 3, 2009
Commits on Apr 2, 2009
  1. Cleanup Rakefile and use new rdoc format for website

    The website now will have 3 separate rdoc sections, one for
    core/model, one for adapters, and one for extensions/plugins.
    I think this will make the RDoc less cluttered and more approachable.
    The Rakefile website and website_rdoc tasks are now able to generate
    a fully functional local version of the site.  In order for this to
    work, I changed all of the internal website links to relative links
    instead of the absolute links used previously.
    You can now use the Rakefile without rspec installed, though obviously
    you can't use the spec tasks.  I refactored the Rakefile to use
    lambdas to reduce the amount of work done just by parsing the
    Rakefile, by only running code inside the tasks that need it.
    I removed the install_no_docs task.  If anyone really wants it I can
    add it back.
    I made the .gitignore patterns absolute.  I don't think this will
    cause any problems, and with normal usage of the sequel repository,
    there should be no effect.
    This commit changes the website task to only generate the base
    website, and adds a website_rdoc task to generate the 3 rdoc
    pages.  You now need to use the website_rf task to update the site.  As I'm the only person that does
    that, I don't expect any complaints.  I'm also switching the
    website upload to use rsync instead of scp, to improve the speed.
    jeremyevans committed Apr 2, 2009
  2. Fix bug in Model.def_dataset_method where it checked for instance met…

    …hods existence instead of class method existence
    jeremyevans committed Apr 2, 2009
  3. Fix rollback bug in Database#transaction in the PostgreSQL adapter

    When I changed the transaction method to only use savepoints when
    they were specifically requested, I broke the transaction method when
    Sequel::Rollback was raised.  Scaringly, this wasn't caught be the
    specs or the app tests I run on a regular basis.
    I added an adapter spec for this, and also added an integration
    test suite related to database transactions, mostly copied from the
    PostgreSQL adapter spec.  Hopefully this will ensure that breakage is
    caught earlier in the future (ideally before I commit).
    jeremyevans committed Apr 2, 2009
Commits on Apr 1, 2009
  1. Deprecate Java::JavaSQL::Timestamp#usec

    The JDBC adapter has returned Java::JavaSQL::Timestamp values as
    Time or DateTime for a few versions now, so we don't need to add
    a method to the Java class.
    jeremyevans committed Apr 1, 2009
Commits on Mar 31, 2009
  1. Merge dusty's method renaming patch with some updated documentation

    jeremyevans committed Mar 31, 2009
  2. rename methods to be more descriptive of intent

    renamed multi_insert_update to on_duplicate_key_update
    renamed multi_insert_ignore to insert_ignore
    Dusty Doris committed Mar 31, 2009
Commits on Mar 30, 2009
  1. Merge commit 'dusty/master'

    jeremyevans committed Mar 30, 2009
  2. Fix Model.[] optimization introduced in 2.11.0 for databases that don…

    …'t use LIMIT, thanks jacaetevha
    jeremyevans committed Mar 30, 2009
  3. RDoc updates in remaining model files, small fixes to reduce memory use

    The majority of the lines changed are due to using constants instead of
    creating new string and regexp objects in every call (which need to be
    garbage collected).
    This also fixes Model::Errors#count to not create full_messages, so
    it should be faster.
    This should be the last of the RDoc related commits.
    jeremyevans committed Mar 30, 2009