summaryrefslogtreecommitdiff
path: root/databases
AgeCommit message (Collapse)AuthorFilesLines
2011-12-17Add and enable ruby-dm-adjust, ruby-dm-do-adapter, ruby-dm-ar-finders,taca1-1/+23
ruby-dm-cli, ruby-dm-ferret-adapter, ruby-dm-is-list, ruby-dm-is-nested_set, ruby-dm-is-remixable, ruby-dm-is-searchable, ruby-dm-is-state_machine, ruby-dm-is-tree, ruby-dm-is-versioned, ruby-dm-mysql-adapter, ruby-dm-observer, ruby-dm-postgres-adapter, ruby-dm-rest-adapter, ruby-dm-sqlite-adapter, ruby-dm-sweatshop, ruby-dm-tags, ruby-dm-yaml-adapter, ruby-dm-active_model and ruby-dm-rails.
2011-12-17Importing databases/ruby-dm-rails package version 1.2.0.taca4-0/+71
Dm-rails provides the railtie that allows datamapper to hook into rails3 and thus behave like a rails framework component. Just like activerecord does in rails, dm-rails uses the railtie API to hook into rails. The two are actually hooked into rails almost identically. Creating new datamapper apps on rails3 from scratch is actually really easy. The following will guide you through the process.
2011-12-17Importing databases/ruby-dm-active_model package version 1.2.0.taca4-0/+48
This plugin makes datamapper compliant with active_model conventions and thus compatible with rails3.
2011-12-17Importing databases/ruby-dm-yaml-adapter package version 1.2.0.taca4-0/+39
YAML Adapter for DataMapper.
2011-12-17Importing databases/ruby-dm-tags package version 1.2.0.taca4-0/+58
This package brings tagging to DataMapper. It is inspired by Acts As Taggable On by Michael Bleigh, github's mbleigh. Props to him for the contextual tagging based on Acts As Taggable on Steroids. == Features and Problems === Features * Contextual tagging using Model.has_tags_on (see below for usage) * Traditional 'tags-only' tagging using Model.has_tags === Problems * None known yet, but this is very alpha software. Sorry if it misbehaves. Please send me a github message if you find a bug.
2011-12-17Importing databases/ruby-dm-sweatshop package version 1.2.0.taca4-0/+53
dm-sweatshop is a model factory for DataMapper. It makes it easy & painless to crank out complex pseudo random models -- useful for tests and seed data. Production Goals: * Easy generation of random models with data that fits the application domain. * Simple syntax for declaring and generating model patterns. * Add context to model patterns, allowing grouping and * Effortlessly generate or fill in associations for creating complex models with few lines of code.
2011-12-17Imporring databases/ruby-dm-sqlite-adapter package version 1.2.0.taca4-0/+39
Sqlite3 Adapter for DataMapper.
2011-12-17Importing databases/ruby-dm-rest-adapter package version 1.2.0.taca4-0/+45
A DataMapper adapter for REST Web Services.
2011-12-17Imporring databases/ruby-dm-postgres-adapter pacakge version 1.2.0.taca4-0/+40
PostgreSQL Adapter for DataMapper.
2011-12-17Importing databases/ruby-dm-observer package version 1.2.0.taca4-0/+39
DataMapper::Observer allows you to add callback hooks to many models. This is similar to observers in ActiveRecord.
2011-12-17Importing databases/ruby-dm-mysql-adapter package version 1.2.0.taca4-0/+41
A MySQL Adapter for DataMapper.
2011-12-17Imporring databases/ruby-dm-is-versioned package version 1.2.0.taca4-0/+45
DataMapper plugin enabling <b>simple</b> versioning of models. When a model is versioned, and updated, instead of the previous version being lost in the mists of time, it is saved in a subsidiary table, so that it can be restored later if needed. Please Note! this gem behaves differently to how AR's :acts_as_versioned works. There is currently no multi version storage possible.
2011-12-17Importing databases/ruby-dm-is-tree package version 1.2.0.taca4-0/+41
DataMapper plugin enabling easy creation of tree structures from your DM models. This requires a foreign key property for your model, which by default would be called :parent_id.
2011-12-17Importing databases/ruby-dm-is-state_machine package version 1.2.0.taca4-0/+73
DataMapper plugin that adds state machine functionality to your models. == Why is this plugin useful? Your DataMapper resource might benefit from a state machine if it: * has different "modes" of operation * has discrete behaviors * especially if the behaviors are mutually exclusive And you want a clean, high-level way of describing these modes / behaviors and how the resource moves between them. This plugin allows you to declaratively describe the states and transitions involved.
2011-12-17Importing databases/ruby-dm-is-searchable package version 1.2.0.taca4-0/+42
A DataMapper search plugin api to search for resources from one repository and load from another. Typically a full text search adapter that can only produce partial resources is searched and the resulting resource collection is then loaded from your default repository.
2011-12-17Importing databases/ruby-dm-is-remixable package 1.2.0.taca4-0/+52
DataMapper::Is::Remixable allows you to create re-usable chunks of relational data, its kind of like multiple inheritance for models.
2011-12-17Importing databases/ruby-dm-is-nested_set package version 1.2.0.taca4-0/+54
DataMapper plugin allowing the creation of nested sets from data models. Provides all the same functionality as dm-is-tree, plus tons more! Read on. == What is a nested set? Nested set is a clever model for storing hierarchical data in a flat table. Instead of (only) storing the id of the parent on each node, a nested set puts all nodes in a clever structure (see Example below). That is what makes it possible to get the all of the descendants (not only immediate children), ancestors, or siblings, in one single query to the database. The only downside to nested sets (compared to trees] is that the queries it takes to know these things, and to move nodes around in the tree are rather complex. That is what this plugin takes care of (+ lots of other neat stuff)! Nested sets are a good choice for most kinds of ordered trees with more than two levels of nesting. Very good for menus, categories, and threaded posts.
2011-12-17Importing databases/ruby-dm-is-list package version 1.2.0.taca4-0/+38
DataMapper plugin for creating and organizing lists.
2011-12-17Importing databases/ruby-dm-ferret-adapter package version 1.2.0.taca4-0/+44
This is a DataMapper plugin for Ferret.
2011-12-17Importing databases/ruby-dm-cli package version 1.2.0.taca4-0/+43
DataMapper plugin allowing interaction with models through a Command-Line Interface (CLI).
2011-12-17Importing databases/ruby-dm-ar-finders package version 1.2.0.taca4-0/+37
DataMapper plugin providing ActiveRecord-style finders.
2011-12-17Importing databases/ruby-dm-do-adapter package version 1.2.0.taca4-0/+35
A DataObjects Adapter for DataMapper.
2011-12-17Importing databases/ruby-dm-adjust package version 1.2.0.taca4-0/+44
DataMapper plugin providing methods to increment and decrement properties.
2011-12-17Add ane enable ruby-do_mysql and ruby-do_postgres.taca1-1/+3
2011-12-17Importing databases/ruby-do_postgres package version 0.10.7.taca4-0/+68
A PostgreSQL driver for DataObjects. This driver implements the DataObjects API for the PostgreSQL relational database.
2011-12-17Importing databases/ruby-do_mysql package version 0.10.7.taca4-0/+68
A MySQL driver for DataObjects. This driver implements the DataObjects API for the MySQL relational database.
2011-12-17Change default PKGNAME scheme for PECL packages.obache2-2/+4
Drop ${PHP_BASE_VARS} from PKGVERSION by default. It used to be required to support multiple php version. But after PHP version based ${PHP_PKG_PREFIX} was introduced, such trick is not required anymore. In addition to this, such version name schme invokes unwanted version bump when base php version is bumped, plus, such version scheme is hard to use for DEPENDS pattern. To avoid downgrading of package using such legacy version scheme, PECL_LEGACY_VERSION_SCHEME is introduced. If it is defined, current version scheme is still used for currently supported PHP version (5 and 53), but instead of ${PHP_BASE_VARS}, current fixed PHP base version in pkgsrc is used to avoid unwanted version bump from update of PHP base package. With newer PHP (54, or so on), new version scheme will be used if it is defined. This trick will not be required and should be removed after php5 and php53 will be gone away from pkgsrc.
2011-12-16Update databases/ruby-do_sqlite3 package to 0.10.7.taca2-7/+7
## 0.10.7 2011-10-13 * Ruby 1.9.3 compatibility
2011-12-16Update databases/ruby-data_objects package to 0.10.7.taca2-6/+6
## 0.10.7 2011-10-13 * Ruby 1.9.3 compatibility
2011-12-16Update ruby-datamapper to 1.2.0. (This is meta-gem package.)taca3-17/+17
This release is focused on bug fixes, performance improvements, internal refactoring and Rails 3.1 compatibility. Please give it a try and in case of any issues please report them on Github.
2011-12-16Update databases/ruby-dm-validations to 1.2.0.taca3-9/+12
* #valid? is always called even if a resource is not dirty * Issues with JRuby and unicode were fixed * Massive internal clean-up towards future rewrite that will make validations even more awesome
2011-12-16Update databases/ruby-dm-types pacakge to 1.2.1.taca3-15/+20
* Support for Resource#dirty? upon indirect property mutation was added (this is huge, more info here: https://github.com/datamapper/dm-types/commit/3d96b1cd2b270a3843877a5...) * Issues with Paranoid properties and STI were fixed * JSON property uses multi_json now
2011-12-16Update databases/ruby-dm-transactions to 1.2.0.taca2-7/+7
It seems gem metadata's change only.
2011-12-16Update databases/ruby-dm-timestamps package to 1.2.0.taca2-7/+7
It seems gem metadata's change only.
2011-12-16Update ruby-dm-serializer pacakge to 1.2.1.taca3-11/+8
* Should work with psych
2011-12-16Update ruby-dm-migrations package to 1.2.0.taca2-7/+7
Exact changes are unknown.
2011-12-16Update ruby-dm-migrations package to 1.2.0.taca3-8/+9
* alter table is fixed for postgres * Property options (such as :length) are now correctly used in migrations * Support to specify table options when creating a table was added (for things like db engines in mysql etc.) * Fix bug related to migrating custom types derived from builtin types
2011-12-16Update ruby-dm-constraints package to 1.2.0.taca3-18/+22
* Total rewrite * Fixed for Oracle
2011-12-16Update ruby-dm-core package to 1.2.0.taca3-15/+15
* STI queries no longer include the top-level class name * UnderscoredAndPluralizedWithoutLeadingModule naming convention was added belongs_to supports :unique option * Validation of property names was improved * Resource[] and Resource[]= no longer fail when property name is not known * Redundant usage of chainable was removed resulting in a better performance * Boolean property typecasting was refactored * Various issues with setting default Property options were fixed * Resource#attributes= no longer use public_method_defined? - this is a security fix preventing possible DDOS attacks * Problems with auto-migrations in multiple repositories were fixed * Encoding problems with Binary property are fixed
2011-12-16Add and enable ruby-activerecord31.taca1-1/+2
2011-12-16Importing databases/ruby-activerecord31 package version 3.1.3.taca4-0/+165
## Rails 3.1.3 (unreleased) ## * Perf fix: If we're deleting all records in an association, don't add a IN(..) clause to the query. *GH 3672* *Jon Leighton* * Fix bug with referencing other mysql databases in set_table_name. *GH 3690* * Fix performance bug with mysql databases on a server with lots of other databses. *GH 3678* *Christos Zisopoulos and Kenny J* ## Rails 3.1.2 (unreleased) ## * Fix problem with prepared statements and PostgreSQL when multiple schemas are used. *GH #3232* *Juan M. Cuello* * Fix bug with PostgreSQLAdapter#indexes. When the search path has multiple schemas, spaces were not being stripped from the schema names after the first. *Sean Kirby* * Preserve SELECT columns on the COUNT for finder_sql when possible. *GH 3503* *Justin Mazzi* * Reset prepared statement cache when schema changes impact statement results. *GH 3335* *Aaron Patterson* * Postgres: Do not attempt to deallocate a statement if the connection is no longer active. *Ian Leitch* * Prevent QueryCache leaking database connections. *GH 3243* *Mark J. Titorenko* * Fix bug where building the conditions of a nested through association could potentially modify the conditions of the through and/or source association. If you have experienced bugs with conditions appearing in the wrong queries when using nested through associations, this probably solves your problems. *GH #3271* *Jon Leighton* * If a record is removed from a has_many :through, all of the join records relating to that record should also be removed from the through association's target. *Jon Leighton* * Fix adding multiple instances of the same record to a has_many :through. *GH #3425* *Jon Leighton* * Fix creating records in a through association with a polymorphic source type. *GH #3247* *Jon Leighton* * MySQL: use the information_schema than the describe command when we look for a primary key. *GH #3440* *Kenny J* ## Rails 3.1.1 (October 7, 2011) ## * Raise an exception if the primary key of a model in an association is needed but unknown. Fixes #3207. *Jon Leighton* * Add deprecation for the preload_associations method. Fixes #3022. *Jon Leighton* * Don't require a DB connection when loading a model that uses set_primary_key. GH #2807. *Jon Leighton* * Fix using select() with a habtm association, e.g. Person.friends.select(:name). GH #3030 and \#2923. *Hendy Tanata* * Fix belongs_to polymorphic with custom primary key on target. GH #3104. *Jon Leighton* * CollectionProxy#replace should change the DB records rather than just mutating the array. Fixes #3020. *Jon Leighton* * LRU cache in mysql and sqlite are now per-process caches. * lib/active_record/connection_adapters/mysql_adapter.rb: LRU cache keys are per process id. * lib/active_record/connection_adapters/sqlite_adapter.rb: ditto *Aaron Patterson* * Database adapters use a statement pool for limiting the number of open prepared statments on the database. The limit defaults to 1000, but can be adjusted in your database config by changing 'statement_limit'. * Fix clash between using 'preload', 'joins' or 'eager_load' in a default scope and including the default scoped model in a nested through association. (GH #2834.) *Jon Leighton* * Ensure we are not comparing a string with a symbol in HasManyAssociation#inverse_updates_counter_cache?. Fixes GH #2755, where a counter cache could be decremented twice as far as it was supposed to be. *Jon Leighton* * Don't send any queries to the database when the foreign key of a belongs_to is nil. Fixes GH #2828. *Georg Friedrich* * Fixed find_in_batches method to not include order from default_scope. See GH #2832 *Arun Agrawal* * Don't compute table name for abstract classes. Fixes problem with setting the primary key in an abstract class. See GH #2791. *Akira Matsuda* * Psych errors with poor yaml formatting are proxied. Fixes GH #2645 and GH #2731 * Use the LIMIT word with the methods #last and #first. Fixes GH #2783 *Damien Mathieu* ## Rails 3.1.0 (August 30, 2011) ## * Add a proxy_association method to association proxies, which can be called by association extensions to access information about the association. This replaces proxy_owner etc with proxy_association.owner. *Jon Leighton* * Active Record's dynamic finder will now show a deprecation warning if you passing in less number of arguments than what you call in method signature. This behavior will raise ArgumentError in the next version of Rails *Prem Sichanugrist* * Deprecated the AssociationCollection constant. CollectionProxy is now the appropriate constant to use, though be warned that this is not really a public API. This should solve upgrade problems with the will_paginate plugin (and perhaps others). Thanks Paul Battley for reporting. *Jon Leighton* * ActiveRecord::MacroReflection::AssociationReflection#build_record has a new method signature. Before: def build_association(*options) After: def build_association(*options, &block) Users who are redefining this method to extend functionality should ensure that the block is passed through to ActiveRecord::Base#new. This change is necessary to fix https://github.com/rails/rails/issues/1842. A deprecation warning and workaround has been added to 3.1, but authors will need to update their code for it to work correctly in 3.2. *Jon Leighton* * AR#pluralize_table_names can be used to singularize/pluralize table name of an individual model: class User < ActiveRecord::Base self.pluralize_table_names = false end Previously this could only be set globally for all models through ActiveRecord::Base.pluralize_table_names. *Guillermo Iguaran* * Add block setting of attributes to singular associations: class User < ActiveRecord::Base has_one :account end user.build_account{ |a| a.credit_limit => 100.0 } The block is called after the instance has been initialized. *Andrew White* * Add ActiveRecord::Base.attribute_names to return a list of attribute names. This will return an empty array if the model is abstract or table does not exists. *Prem Sichanugrist* * CSV Fixtures are deprecated and support will be removed in Rails 3.2.0 * AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes! all accept a second hash as option that allows you to specify which role to consider when assigning attributes. This is built on top of ActiveModel's new mass assignment capabilities: class Post < ActiveRecord::Base attr_accessible :title attr_accessible :title, :published_at, :as => :admin end Post.new(params[:post], :as => :admin) assign_attributes() with similar API was also added and attributes=(params, guard) was deprecated. Please note that this changes the method signatures for AR#new, AR#create, AR#create!, AR#update_attributes and AR#update_attributes!. If you have overwritten these methods you should update them accordingly. *Josh Kalderimis* * default_scope can take a block, lambda, or any other object which responds to `call` for lazy evaluation: default_scope { ... } default_scope lambda { ... } default_scope method(:foo) This feature was originally implemented by Tim Morgan, but was then removed in favour of defining a 'default_scope' class method, but has now been added back in by Jon Leighton. The relevant lighthouse ticket is #1812. * Default scopes are now evaluated at the latest possible moment, to avoid problems where scopes would be created which would implicitly contain the default scope, which would then be impossible to get rid of via Model.unscoped. Note that this means that if you are inspecting the internal structure of an ActiveRecord::Relation, it will *not* contain the default scope, though the resulting query will do. You can get a relation containing the default scope by calling ActiveRecord#with_default_scope, though this is not part of the public API. *Jon Leighton* * If you wish to merge default scopes in special ways, it is recommended to define your default scope as a class method and use the standard techniques for sharing code (inheritance, mixins, etc.): class Post < ActiveRecord::Base def self.default_scope where(:published => true).where(:hidden => false) end end *Jon Leighton* * PostgreSQL adapter only supports PostgreSQL version 8.2 and higher. * ConnectionManagement middleware is changed to clean up the connection pool after the rack body has been flushed. * Added an update_column method on ActiveRecord. This new method updates a given attribute on an object, skipping validations and callbacks. It is recommended to use #update_attribute unless you are sure you do not want to execute any callback, including the modification of the updated_at column. It should not be called on new records. Example: User.first.update_column(:name, "sebastian") # => true *Sebastian Martinez* * Associations with a :through option can now use *any* association as the through or source association, including other associations which have a :through option and has_and_belongs_to_many associations *Jon Leighton* * The configuration for the current database connection is now accessible via ActiveRecord::Base.connection_config. *fxn* * limits and offsets are removed from COUNT queries unless both are supplied. For example: People.limit(1).count # => 'SELECT COUNT(*) FROM people' People.offset(1).count # => 'SELECT COUNT(*) FROM people' People.limit(1).offset(1).count # => 'SELECT COUNT(*) FROM people LIMIT 1 OFFSET 1' *lighthouse #6262* * ActiveRecord::Associations::AssociationProxy has been split. There is now an Association class (and subclasses) which are responsible for operating on associations, and then a separate, thin wrapper called CollectionProxy, which proxies collection associations. This prevents namespace pollution, separates concerns, and will allow further refactorings. Singular associations (has_one, belongs_to) no longer have a proxy at all. They simply return the associated record or nil. This means that you should not use undocumented methods such as bob.mother.create - use bob.create_mother instead. *Jon Leighton* * Make has_many :through associations work correctly when you build a record and then save it. This requires you to set the :inverse_of option on the source reflection on the join model, like so: class Post < ActiveRecord::Base has_many :taggings has_many :tags, :through => :taggings end class Tagging < ActiveRecord::Base belongs_to :post belongs_to :tag, :inverse_of => :tagging # :inverse_of must be set! end class Tag < ActiveRecord::Base has_many :taggings has_many :posts, :through => :taggings end post = Post.first tag = post.tags.build :name => "ruby" tag.save # will save a Taggable linking to the post *Jon Leighton* * Support the :dependent option on has_many :through associations. For historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association. *Jon Leighton* * Changed the behaviour of association.destroy for has_and_belongs_to_many and has_many :through. From now on, 'destroy' or 'delete' on an association will be taken to mean 'get rid of the link', not (necessarily) 'get rid of the associated records'. Previously, has_and_belongs_to_many.destroy(*records) would destroy the records themselves. It would not delete any records in the join table. Now, it deletes the records in the join table. Previously, has_many_through.destroy(*records) would destroy the records themselves, and the records in the join table. [Note: This has not always been the case; previous version of Rails only deleted the records themselves.] Now, it destroys only the records in the join table. Note that this change is backwards-incompatible to an extent, but there is unfortunately no way to 'deprecate' it before changing it. The change is being made in order to have consistency as to the meaning of 'destroy' or 'delete' across the different types of associations. If you wish to destroy the records themselves, you can do records.association.each(&:destroy) *Jon Leighton* * Add :bulk => true option to change_table to make all the schema changes defined in change_table block using a single ALTER statement. *Pratik Naik* Example: change_table(:users, :bulk => true) do |t| t.string :company_name t.change :birthdate, :datetime end This will now result in: ALTER TABLE `users` ADD COLUMN `company_name` varchar(255), CHANGE `updated_at` `updated_at` datetime DEFAULT NULL * Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. *Jon Leighton* * Added a create_association! method for has_one and belongs_to associations. *Jon Leighton* * Migration files generated from model and constructive migration generators (for example, add_name_to_users) use the reversible migration's `change` method instead of the ordinary `up` and `down` methods. *Prem Sichanugrist* * Removed support for interpolating string SQL conditions on associations. Instead, you should use a proc, like so: Before: has_many :things, :conditions => 'foo = #{bar}' After: has_many :things, :conditions => proc { "foo = #{bar}" } Inside the proc, 'self' is the object which is the owner of the association, unless you are eager loading the association, in which case 'self' is the class which the association is within. You can have any "normal" conditions inside the proc, so the following will work too: has_many :things, :conditions => proc { ["foo = ?", bar] } Previously :insert_sql and :delete_sql on has_and_belongs_to_many association allowed you to call 'record' to get the record being inserted or deleted. This is now passed as an argument to the proc. * Added ActiveRecord::Base#has_secure_password (via ActiveModel::SecurePassword) to encapsulate dead-simple password usage with BCrypt encryption and salting [DHH]. Example: # Schema: User(name:string, password_digest:string, password_salt:string) class User < ActiveRecord::Base has_secure_password end user = User.new(:name => "david", :password => "", :password_confirmation => "nomatch") user.save # => false, password required user.password = "mUc3m00RsqyRe" user.save # => false, confirmation doesn't match user.password_confirmation = "mUc3m00RsqyRe" user.save # => true user.authenticate("notright") # => false user.authenticate("mUc3m00RsqyRe") # => user User.find_by_name("david").try(:authenticate, "notright") # => nil User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user * When a model is generated add_index is added by default for belongs_to or references columns rails g model post user:belongs_to will generate the following: class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.belongs_to :user t.timestamps end add_index :posts, :user_id end end *Santiago Pastorino* * Setting the id of a belongs_to object will update the reference to the object. *#2989 state:resolved* * ActiveRecord::Base#dup and ActiveRecord::Base#clone semantics have changed to closer match normal Ruby dup and clone semantics. * Calling ActiveRecord::Base#clone will result in a shallow copy of the record, including copying the frozen state. No callbacks will be called. * Calling ActiveRecord::Base#dup will duplicate the record, including calling after initialize hooks. Frozen state will not be copied, and all associations will be cleared. A duped record will return true for new_record?, have a nil id field, and is saveable. * Migrations can be defined as reversible, meaning that the migration system will figure out how to reverse your migration. To use reversible migrations, just define the "change" method. For example: class MyMigration < ActiveRecord::Migration def change create_table(:horses) do t.column :content, :text t.column :remind_at, :datetime end end end Some things cannot be automatically reversed for you. If you know how to reverse those things, you should define 'up' and 'down' in your migration. If you define something in `change` that cannot be reversed, an IrreversibleMigration exception will be raised when going down. * Migrations should use instance methods rather than class methods: class FooMigration < ActiveRecord::Migration def up ... end end *Aaron Patterson* * has_one maintains the association with separate after_create/after_update instead of a single after_save. *fxn* * The following code: Model.limit(10).scoping { Model.count } now generates the following SQL: SELECT COUNT(*) FROM models LIMIT 10 This may not return what you want. Instead, you may with to do something like this: Model.limit(10).scoping { Model.all.size } *Aaron Patterson*
2011-12-15Changes 8.3.17:adam4-8/+11
* Fix bugs in information_schema.referential_constraints view * Correct collations for citext columns and indexes * Prevent possible crash when joining to a scalar function * Prevent transitory data corruption of GIN indexes after a crash * Prevent data corruption on TOAST columns when copying data * Fix failures during hot standby startup * Correct another "variable not found in subplan target list" bug * Fix bug with sorting on aggregate expressions in windowing functions * Multiple bug fixes for pg_upgrade * Change Foreign Key creation order to better support self-referential keys * Multiple bug fixes to CREATE EXTENSION * Ensure that function return type and data returned from PL/perl agree * Ensure that PL/perl strings are always UTF-8 * Assorted bug fixes for various Extensions * Updates to the time zone database, particularly to CST6
2011-12-15Changes 8.4.10:adam5-9/+15
* Fix bugs in information_schema.referential_constraints view * Correct collations for citext columns and indexes * Prevent possible crash when joining to a scalar function * Prevent transitory data corruption of GIN indexes after a crash * Prevent data corruption on TOAST columns when copying data * Fix failures during hot standby startup * Correct another "variable not found in subplan target list" bug * Fix bug with sorting on aggregate expressions in windowing functions * Multiple bug fixes for pg_upgrade * Change Foreign Key creation order to better support self-referential keys * Multiple bug fixes to CREATE EXTENSION * Ensure that function return type and data returned from PL/perl agree * Ensure that PL/perl strings are always UTF-8 * Assorted bug fixes for various Extensions * Updates to the time zone database, particularly to CST6
2011-12-15Update ruby-pg package to 0.12.0.taca3-25/+33
== v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org> - PGconn#wait_for_notify * send nil as the payload argument if the NOTIFY didn't have one. * accept a nil argument for no timeout (Sequel support) * Fixed API docs * Taint and encode event name and payload - Handle errors while rb_thread_select()ing in PGconn#block. (Brian Weaver). - Fixes for Win32 async queries (Rafa Bigaj) - Memory leak fixed: Closing opened WSA event. (rafal) - Fixes for #66 Win32 asynchronous queries hang on connection error. (rafal) - Fixed a typo in PGconn#error_message's documentation - fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson) - Build system bugfixes - Converted to Hoe - Updates for the Win32 binary gem builds (Lars Kanis)
2011-12-15Update ruby-sequel package to 3.30.0.taca3-7/+8
=== 3.30.0 (2011-12-01) * Handle usage of on_duplicate_key_update in MySQL prepared statements (jeremyevans) (#404) * Make after_commit and after_rollback respect :server option (jeremyevans) (#401) * Respect :connect_timeout option in the postgres adapter when using pg (glebpom, jeremyevans) (#402) * Make Dataset#destroy for model datasets respect dataset shard when using a transaction (jeremyevans) * Make :server option to Model#save set the shard to use (jeremyevans) * Move Model#set_server from the sharding plugin to the base plugin (jeremyevans) * Add :graph_alias_base association option for setting base name to use for table aliases when eager graphing (jeremyevans) * Make ILIKE work correctly on Microsoft SQL Server if database/column collation is case sensitive (jfirebaugh) (#398) * When starting a new dataset graph, assume existing selection is the columns to select from the current table (jeremyevans) * Allow specifying nanoseconds and offsets when converting a hash or array to a timestamp (jeremyevans, jfirebaugh) (#395) * Improve performance when converting Java types to ruby types in the jdbc adapter (jeremyevans, jfirebaugh) (#395) * Fix tinytds adapter if DB.identifier_output_method = nil (jeremyevans) * Explicitly order by the row number column when emulating offsets (jfirebaugh) (#393) * Fix Dataset#graph and #eager_graph modifying the receiver if the receiver is already graphed (jeremyevans) (#392) * Change dataset literalization to an append-only-all-the-way-down design (jeremyevans)
2011-12-14Update ruby-arel package to 2.2.1.taca3-38/+32
== 2.2.1 / 2011-09-15 * Enhancements * Added UpdateManager#key to access the key value * Added SelectManager#projections= to override any existing projections * Added SelectManager#source to get the source of the last select core in the AST == 2.2.0 / 2011-08-09 * Bug Fixes * The database connection caches visitors for generating SQL. * FALSE and TRUE nodes can be constructed. * Fixed ORDER BY / LIMIT clauses for UPDATE statements in Oracle. == 2.1.4 / 2011-07-25 * Bug Fixes * Fix depth-first traversal to understand ascending / descending nodes. * Parentheis are suppressed with nested unions in MySQL. Thanks jhtwong! == 2.1.3 / 2011-06-27 * Bug Fixues * Fixed broken gem build. == 2.1.2 / 2011-06-27 * Bug Fixes * Visitors can define their own cache strategey so caches are not shared. Fixes #57 * Informix support fixed. Thanks Khronos. * Ordering nodes broken to subclasses. Thanks Ernie Miller! * Reversal supported in ordering nodes. Thanks Ernie Miller! == 2.1.1 / 2011/05/14 * Bug fixes * Fixed thread safety bug in ToSql visitor. Thanks Damon McCormick and Cameron Walters! == 2.1.0 / 2011/04/30 * Enhancements * AST is now Enumerable * AND nodes are now n-ary nodes * SQL Literals may be used as Attribute names * Added Arel::Nodes::NamedFunction for representing generic SQL functions * Add Arel::SelectManager#limit= * Add Arel::SelectManager#offset * Add Arel::SelectManager#offset= * Added Arel::SelectManager#create_insert for building an insert manager. * SQL Literals are allowed for values in INSERT statements. * Math operations have been added to attributes, thanks to Vladimir Meremyanin. * Bug fixes * MSSQL adds TOP to sub selects * Assigning nil to take() removes LIMIT from statement. * Assigning nil to offset() removes OFFSET from statement. * TableAlias leg ordering fixed * Deprecations * Calls to `insert` are deprecated. Please use `compile_insert` then call `to_sql` on the resulting object and execute that SQL. * Calls to `update` are deprecated. Please use `compile_update` then call `to_sql` on the resulting object and execute that SQL. * Calls to `delete` are deprecated. Please use `compile_delete` then call `to_sql` on the resulting object and execute that SQL. * Arel::Table#joins is deprecated and will be removed in 3.0.0 with no replacement. * Arel::Table#columns is deprecated and will be removed in 3.0.0 with no replacement. * Arel::Table.table_cache is deprecated and will be removed in 3.0.0 with no replacement. * Arel::Nodes::And.new takes a single list instead of left and right. * Arel::Table#primary_key is deprecated and will be removed in 3.0.0 with no replacement. * Arel::SelectManager#where_clauses is deprecated and will be removed in 3.0.0 with no replacement. * Arel::SelectManager#wheres is deprecated and will be removed in 3.0.0 with no replacement.
2011-12-14Add and enable ruby-arel20.taca1-1/+2
2011-12-14Importing current ruby-arel version 2.0.10 as databases/ruby-arel20 totaca4-0/+167
keep version 2.0.x (for databases/ruby-activerecord3).
2011-12-13Update ruby-sequel package to 3.29.0.taca3-7/+24
Changes are too many to write here, pelase refer CHANGELOG file.
2011-12-13* Switch to use RUBY_RAILS_SUPPORTED.taca1-6/+8
* Correct some dependency. Bump PKGREVISION.