Download Plugin (zip)

Stats

Version

0.4

Wheels Compatibility

1.0.5

Downloads

279

Last Updated

November 5, 2010

About Plugins

Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.

Read Using and Creating Plugins for more information.

DatabaseViews

Adds support for database views

Author

Per Djurner

Description

Note that this plugin is not needed on 1.1+ since the functionality that this plugin provides has been added to the core Wheels code.

Makes it possible to map Wheels models to views in the database. Since views do not have primary keys you need to use the new method "setPrimaryKey" to tell Wheels what column to use as the primary key.

Usage/Examples

Create a model file for the database view and then call setPrimaryKey("someColumn") from the "init" function.

Change Log

Version 0.4—August 24, 2010 Download

  • Fixed a major bug in the previous version.
  • Wheels compatibility: 1.0.5.

Version 0.3—August 14, 2010 Download

  • Overwrites primary key instead of appending to list.
  • Wheels compatibility: 1.0.5.

Version 0.2—May 26, 2010 Download

  • None recorded.
  • Wheels compatibility: 1.0.4.

Version 0.1—March 24, 2010 Download

  • Initial release.
  • Wheels compatibility: 1.0.2.