Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ronin/compiler

Package Overview
Dependencies
Maintainers
0
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ronin/compiler

Compiles RONIN queries to SQL statements.

  • 0.2.1-meta-files-experimental.2
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-6.16%
Maintainers
0
Weekly downloads
 
Created
Source

RONIN Compiler

This package compiles RONIN queries to SQL statements.

Usage

import { compileQueryInput } from '@ronin/compiler';

const query = {
  get: {
    accounts: null,
  },
};

const schemas = [
  {
    pluralSlug: 'accounts',
    slug: 'account',
  },
];

const { writeStatements, readStatement } = compileQueryInput(query, schemas);

console.log(readStatement);
// SELECT * FROM "accounts" ORDER BY "ronin.createdAt" DESC LIMIT 101

Testing

Use the following command to run the test suite:

bun test

Keywords

FAQs

Package last updated on 01 Nov 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