Download Plugin (zip)

Stats

Version

0.1

Wheels Compatibility

1.0

Downloads

144

Last Updated

April 11, 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.

Oracle Auto Increment

Simulates Auto Increment primary key field for Oracle using sequences

Author

Ryan Hoppitt

Description

Simulates an Auto Increment field for Oracle databases using sequences. Using this plugin means you don't need to setup triggers on each of your tables to do this.

Setup a sequence for each table in your database named [tableName]_seq. (This is done for you if you are using the DBMigrate plugin)

This plugin will get the next value from the sequence for that table and set the id field before creating new records.

Usage/Examples

Simply install the plugin and setup a sequence for each table in your database. Each time you create a new record using create() or new() and save(), the id field will be set to the next value in the sequence.

Change Log

Version 0.1—April 11, 2010 Download

  • Initial release.
  • Wheels compatibility: 1.0.