New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gritql

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gritql

The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it.

  • 3.0.0-beta.25
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-65.38%
Maintainers
2
Weekly downloads
 
Created
Source

gritql | A query library for your SQL ddatabase.

The library is built to query simple dimension/metric based tables. It allows to fetch data in the form you want it.

example

Query:

query customers{
  fetch(country: US){
    plan {
      revenue: sum(a: planPrice)
    }
  }
}

Response:

{
  free: {
    revenue: 0
  },
  small: {
    revenue: 9000
  },
  large: {
    revenue: 380
  },
  pro: {
    revenue: 500
  }
}

Table Schema: Customer Name, plan, planPrice

installation

query table

multiple queries

fetch an Array

sort

dates

group

aggregation functions

sum

divide

share

distinct

FAQs

Package last updated on 04 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc