No commit activity in last 3 years
No release in over 3 years
Add page to your ActiveAdmin panel that allow execute raw SQL requests and show result in table
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 10.0
>= 0
 Project Readme

ActiveAdmin::SqlPage

This is rails dbconsole online

Add page to your ActiveAdmin panel that allow execute raw SQL requests and show result in table

Version

Installation

Add this line to your application's Gemfile:

gem 'activeadmin-sqlpage'

And then execute:

$ bundle

Or install it yourself as:

$ gem install activeadmin-sqlpage

Usage

To add SQL Page to your active admin place this peace of code for example to app/admin/sql.rb:

ActiveAdmin::SqlPage::register

Open your site at active admin page, navigate menu SQL, enter raw sql request in textarea, and press Ctrl-Enter hotkey or click submit.

Be carefull to execute sql requests. It may upset the consistent of your database. It is recomented to enable this page for worked project where only advanced user may have access to execute sql.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/oklas/activeadmin-sqlpage.

License

The gem is available as open source under the terms of the MIT License.

Copyright

Copyright (c) 2016-present Serguei Okladnikov oklaspec@gmail.com