CSC/ECE 517 Fall 2013/ch1 1w24 nv: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
* Other useful Ruby Gems here. [https://www.ruby-toolbox.com/projects/activerecord-sqlserver-adapter '''activerecord-sqlserver-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcmysql-adapter '''activerecord-jdbcmysql-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcpostgresql-adapter '''activerecord-jdbcpostgresql-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcderby-adapter '''activerecord-jdbcderby-adapter'''],.
* Other useful Ruby Gems here. [https://www.ruby-toolbox.com/projects/activerecord-sqlserver-adapter '''activerecord-sqlserver-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcmysql-adapter '''activerecord-jdbcmysql-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcpostgresql-adapter '''activerecord-jdbcpostgresql-adapter'''], [https://www.ruby-toolbox.com/projects/activerecord-jdbcderby-adapter '''activerecord-jdbcderby-adapter'''],.


'''Active Record Index Assistants'''


* [https://www.ruby-toolbox.com/projects/foreigner '''foreigner'''] Adds helpers to migrations and dumps foreign keys to schema.rb.
* [https://www.ruby-toolbox.com/projects/rails_indexes '''rails_indexes'''] A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.
* [https://www.ruby-toolbox.com/projects/schema_plus '''schema_plus'''] SchemaPlus is an ActiveRecord extension that provides enhanced capabilities for schema definition and querying, including: enhanced and more DRY index capabilities, support and automation for foreign key constraints, and support for views.
* [https://www.ruby-toolbox.com/projects/foreigner '''foreigner'''] Adds helpers to migrations and dumps foreign keys to schema.rb.




'''Data Persistence'''
'''Data Persistence'''

Revision as of 04:30, 14 September 2013

A Tour of Ruby Gems


Some important Gems that are useful in RAILS environment

There are many gems which provide easy of functionality that can be included in the rails development environment. Bundleris a useful gem that enables a developer to quickly add and manage gems in a few lines of code.

We can classify the Gems based on the usage in different layers Model, View and Controller.

MODEL layer

Active Record Plugins

  • oracle-enhanced Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases. This adapter is superset of original ActiveRecord Oracle adapter.
  • activerecord-jdbc-adapter AR-JDBC is a database adapter for Rails' ActiveRecord component designed to be used with JRuby built upon Java's JDBC API for database access. It allows to connect to virtually any JDBC-compliant database with your JRuby on Rails application.
  • nulldb A database backend that translates database interactions into no-ops. Using NullDB enables you to test your model business logic - without ever touching a real database.
  • oracle-enhanced-enhanced It includes several enhancements and customization to the standard ActiveRecord Oracle Enhanced adapter, which is still required. Any customization to this adapter's behavior or additional Oracle-specific utilities should be added here.

Active Record Index Assistants

  • foreigner Adds helpers to migrations and dumps foreign keys to schema.rb.
  • rails_indexes A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.
  • schema_plus SchemaPlus is an ActiveRecord extension that provides enhanced capabilities for schema definition and querying, including: enhanced and more DRY index capabilities, support and automation for foreign key constraints, and support for views.
  • foreigner Adds helpers to migrations and dumps foreign keys to schema.rb.


Data Persistence