Giter Site home page Giter Site logo

gfleury / squaas Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 4.43 MB

sql query as a service

Makefile 0.30% Go 40.45% Shell 0.73% JavaScript 57.02% HTML 0.77% CSS 0.30% Dockerfile 0.44%
sql query queue authorization postgresql approval-process gdpr

squaas's Introduction

Build Status codecov

SQUAAS

SQUAAS (SQL query as a service). Despite the hipster name, this is all a mistake. An automated solution to a bad habit. However sometimes we need to look for a proper way of doing wrong things.

Query Flow

[On Hold] (Query can still be edited)
    |
[Ready] - After enough approvals -> [Approved] - Query is added to the running queue -> [Done/Failed]

Goals

  • Remove developers direct access to the databases (Only PostgreSQL support for now)
  • Enforce some behaviors on the queries (must have transactions, no delete/update without where, hehe)
  • Enforce queries to be run only with tickets (only Jira support for now)
  • Enforce a flow where the queries have to be 'reviewed/approved' by other developers
  • Prevent multiple 'user queries' from running in parallel in the database
  • Simple 'built in' SQL parser (users can't add broken queries, used https://github.com/xwb1989/sqlparser for a while and now using https://github.com/lfittl/pg_query_go)
  • Last but not least, learn some react

squaas's People

Contributors

foryah avatar gfleury avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

squaas's Issues

Better database errror handling

  • Take different actions for different database errors while connecting.
    • Network error should keep retry on the next worker run.
    • Authentication error should not (put the server in a permanent condition until restart).
  • Create runtime error/information aggregation counters for each database.

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.