This ruby module will provide sql serialization for ruby objects in a transparent manner. The only requirement of this module is that all classes that are to be stored in an sql database uses it as a mix-in.
Be the first to post a text review of Ruby SQL Serialization. Rate and review a project by clicking thumbs up or thumbs down in the right column.
* Changed a few eval() to instance_eval() to make sure that the right context is used. * sql_fetch_variable_names no longer returns the names of aggregates * fixed sql_insert_hash which was horribly broken * changed sql_select and sql_select_from_id to use info from dbi.columns and sql_set_typecast_value to correctly set values in class variables * insert now resets sql_assoc_id to nil if insertion into the database fails * many documentation checkups in sql-serializable.rb * added SQLSerializeError exception * added sql_increase_refcount, sql_decrease_refcount and sql_refcount * added reference counting to insert update and delete methods * added sql_exist_in_db? * added new_transaction parameters up update and delete methods for use internally * store no longer tries to insert but rather tests for object existence in db * minor documentation update in mysql-serializable.rb * added reference count to sql_ids table * Made sure that lists are ordered ascending by default, and fixed a small typo in the min and max methods. * fixed missing "AS..." in min and max calculations * changed min and max to return nil if called on an empty classlist (table) * minor documentation update in sql-list.rb
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?