GithubHelp home page GithubHelp logo

esminc / adhoq Goto Github PK

View Code? Open in Web Editor NEW
109.0 28.0 26.0 873 KB

Rails engine to generate instant reports from adhoc SQL query.

License: MIT License

Ruby 70.15% JavaScript 3.72% CSS 1.64% HTML 19.78% Logos 0.51% SCSS 1.17% Sass 3.04%
rails-engine ruby

adhoq's People

Contributors

hanachin avatar htwroclau avatar joker1007 avatar junichiito avatar koic avatar masato-hi avatar mataki avatar moro avatar taki avatar takkanm avatar tkm-kj avatar tricknotes avatar ursm avatar walf443 avatar yucao24hours avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adhoq's Issues

"undefined method human" error

Hi.
After trying to mount this and use it in a project, I get this error:
"NoMethodError at /q/1
undefined method `human' for #<#Class:0x007f8b1c39e208:0x007f8b11e132c0>"

The issue is in line 29 of _query.html.slim, namely:
th.created_at= human(Adhoq::Execution, :created_at)

I want extract adhoc SQL extraction from engine.

Sometime I only want bohemian SQL execution only.
But current gem depends slim, bootstrap or so for engine view so that some projects rejects adding this gem not to grow Gemffile up too large.

Future plain is:

  • adhoq-core gem: includes lib/*, which covers SQL execution and store results.
  • adhoq gem: depends adhoq-core mount Rails engine (some behavior with current)

CI status is unstable

Rails-3.2 and Rails-4.2 (ActiveJob) test case is unstable.
But I cannot recreate this probrem on my machine. ๐Ÿ˜ž

ActionView::Template::Error (undefined method `edit_query_path'

When saving a query ,I get error like :

ActionView::Template::Error (undefined method `edit_query_path' for #<#<Class:0x007fa55c348470>:0x007fa564738140>):
    3:     h1
    4:       = query.name
    5:       .pull-right
    6:         = link_to [:edit, query], class: 'btn btn-default btn-sm' do
    7:           i.fa.fa-pencil.fa-pad-r
    8:           | Edit
    9:       .pull-right

actionpack (5.0.0.1) lib/action_dispatch/routing/polymorphic_routes.rb:216:in `polymorphic_method'
actionpack (5.0.0.1) lib/action_dispatch/routing/polymorphic_routes.rb:130:in `polymorphic_path'
actionview (5.0.0.1) lib/action_view/routing_url_for.rb:102:in `url_for'
actionview (5.0.0.1) lib/action_view/helpers/url_helper.rb:196:in `link_to'

Query filtering

Does this project have the ability to prevent destructive queries? (insert/update/drop etc)

scoping tables

Is there a way to scope the tables by default, e.g. append a where to every query that is submitted so select statements are applied only to data related to the current user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.