Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Export Fixtures

Export Fixtures

= Description

This plugin is a super lightweight tool used to export data into the test/fixtures directory.

So if you want to export all your data from your production server into your development environment, this will simplify the process without having to load up your database manager.

[%] rake db:fixtures:export_all RAILS_ENV=development
[%] rake db:fixtures:load

= INSTALLATION

script/plugin discover script/plugin install export_fixtures

= USAGE

Create YAML test fixtures from data in an existing database. Defaults to development database. Set RAILS_ENV to override. rake db:fixtures:export_all

Create YAML test fixtures for a specific table(s) from data in an existing database. Defaults to development database. Set RAILS_ENV to override. rake db:fixtures:export_for_tables TABLES=foo,bar

Create YAML text fixtures based on a specific SQL query rake db:fixtures:export_using_query SQL=”select * from foo where id=’bar’” FIXTURE_NAME=foo

= AUTHORS

Chris McGrath Nathaniel Brown – nshb@inimit.com

= BUGS

Please report any bugs or feature enhancements to http://dev.toolbocks.com

= LICENSE

Copyright© 2006 Chris McGrath Copyright© 2006 Nathaniel Brown

This is the MIT license, the license Ruby on Rails itself is licensed under.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all details


Membership

+ Join this railsplugin

Record Maintainer

'None'